Install DB2 in Ubuntu

Source: Internet
Author: User
Tags nameserver

1. Install Ubuntu 12.04 In the VM
2. Set the IP address in the same segment as the local machine and ping the IP address.
If the Windows host and Ubuntu virtual machine can communicate with each other, they must be in the same network segment, while Ubuntu is dynamically loaded and must be manually changed to the same network segment. There are many ways to change the website on the internet. After verification, the following methods are the best.
1. Configure static IP addresses
$ Sudo VI/etc/Network/interfaces
The original content contains only the following two lines:
Auto loiface Lo
Inet loopback

Auto eth0 iface
Eth0 Inet static
Address 192.168.0.33
Gateway 192.168.0.1
Netmask 255.255.255.0
Manually set the DNS server: # Vim/etc/resolv. conf Add the following content (all Linux releases are generic ):
Nameserver 192.168.80.2
Save and exit nameserver 8.8.8.8. Note: After you restart Ubuntu, you will find that you cannot access the Internet again. The problem lies in/etc/resolv. conf. After the file is restarted, the DNS configured in this file is automatically changed to the default value. Therefore, you need to modify DNS permanently. The method is as follows:
# Sudo VI/etc/resolvconf/resolv. conf. d/base
Nameserver 192.168.80.2
Nameserver 8.8.8.8

Restart the networking service to make it take effect:
#/Etc/init. d/networking restart.

Enable the sshserver service.
View service -- Status-all
Enable: sudo apt-Get install OpenSSH-Server
Error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package openssh-server is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
Is only available from another source
Solution:
Sudo apt-Get update
Sudo apt-Get Install SSH-Server
Success!

PS-E | grep SSH
If you see sshd, it indicates that the ssh-server has been started.
If not, start sudo/etc/init. d/ssh start.
The SSH-server configuration file is located in/etc/ssh/sshd_config. Here, you can define the SSH service port. The default port is 22. You can define other port numbers, such as 222.
Then restart the SSH service:
Sudo/etc/init. d/ssh stop
Sudo/etc/init. d/ssh start

The following error occurs during SSH installation in Ubuntu today.
 
Reading package lists... Done
Building dependency tree... Done
Package SSH is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
Is only available from another source

 
The cause of this problem is that the source in/etc/APT/source. List of Ubuntu is old, and you need to update it. The update method is as follows:
$ Sudo apt-get-y update
After the update, you can use apt-Get.

Reference: http://icesquare.com/wordpress/package-ssh-is-not-available-but-is-referred-to-by-another-package-this-may-mean-that-the-package-is-missing-has-been-obsoleted-or-is-only-available-from-another-source/

4. Use the SSH client to upload DB2 files to ubutu.
Install DB2

# Cd/tmp
# Tar zxvf db2_v101_linuxx64_expc.tar.gz

# Cd expc

#./Db2_install

If you cannot find libaio. So and libstdc ++. So during installation, download and install the corresponding software package.

Normally, you can see it in a few minutes.

Successfully Information
5. Continue the installation. If any problem occurs:
# Strings/etc/hosts
The program 'strings 'can be found in the following packages:
* Binutils
* Binutils-multiarch
Try: APT-Get install <Selected Package >== still error. binutils and binutils-multiarch cannot be found
# Apt-Get install binutils
Root @ Ubuntu:/tmp/expc # apt-Get install binutils === install binutils
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
Binutils-Doc
The following new packages will be installed:
Binutils
0 upgraded, 1 newly installed, 0 to remove and 58 not upgraded.
Need to get 2,643 KB of archives.
After this operation, 8,770 KB of additional disk space will be used.
Get: 1 http://us.archive.ubuntu.com/ubuntu/ precise/main binutils amd64 2.22-6ubuntu1 [2,643 KB]
Fetched 2,643 kb in 12 S (218 kb/s)
Selecting previusly unselected package binutils.
(Reading database... 50079 files and directories currently installed .)
Unpacking binutils (from.../binutils_2.22-6ubuntu1_amd64.deb )...
Processing triggers for man-DB...
Setting up binutils (2.22-6ubuntu1 )...
Processing triggers for libc-bin...
Ldconfig deferred processing now taking place
# Apt-Get install binutiks-multiarch ===== install binutiks-multiarch
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following new packages will be installed:
Binutils-multiarch
0 upgraded, 1 newly installed, 0 to remove and 58 not upgraded.
Need to get 2,242 KB of archives.
After this operation, 7,520 KB of additional disk space will be used.
Get: 1 http://us.archive.ubuntu.com/ubuntu/ precise/Universe binutils-multiarch amd64 2.22-6ubuntu1 [2,242 KB]
Fetched 2,242 kb in 6 S (355 KB/s)
Selecting previusly unselected package binutils-multiarch.
(Reading database... 50216 files and directories currently installed .)
Unpacking binutils-multiarch (from.../binutils-multiarch_2.22-6ubuntu1_amd64.deb )...
Adding 'diversion of/usr/bin/nm to/usr/bin/nm. Single by binutils-multiarch'
Adding 'diversion of/usr/bin/objdump to/usr/bin/objdump. Single by binutils-multiarch'
Adding 'diversion of/usr/bin/objcopy to/usr/bin/objcopy. Single by binutils-multiarch'
Adding 'diversion of/usr/bin/strings to/usr/bin/strings. Single by binutils-multiarch'
Adding 'diversion of/usr/bin/strip to/usr/bin/strip. Single by binutils-multiarch'
Adding 'diversion of/usr/bin/size to/usr/bin/size. Single by binutils-multiarch'
Adding 'diversion of/usr/bin/AR to/usr/bin/AR. Single by binutils-multiarch'
Adding 'diversion of/usr/bin/ranlib to/usr/bin/ranlib. Single by binutils-multiarch'
Adding 'diversion of/usr/bin/addr2line to/usr/bin/addr2line. Single by binutils-multiarch'
Adding 'diversion of/usr/bin/GPROF to/usr/bin/GPROF. Single by binutils-multiarch'
Adding 'diversion of/usr/bin/readelf to/usr/bin/readelf. Single by binutils-multiarch'
Setting up binutils-multiarch (2.22-6ubuntu1 )...
Processing triggers for libc-bin...
Ldconfig deferred processing now taking place
# Strings/etc/hosts ====== execute strings again
127.0.0.1 localhost
127.0.1.1 Ubuntu
# The following lines are desirable for IPv6 capable hosts
: 1 ip6-localhost ip6-loopback
Fe00: 0 ip6-localnet
Ip6-mcastprefix ff00: 0
Ff02: 1 ip6-allnodes
Ff02: 2 ip6-allrouters
#./Db2_install ============= try again to install DB2
Requirement not matched for DB2 database "server". Version: "db10.1.0.2 ".
Summary of prerequisites that are not met on the current system:
Dbt3514w the db2prereqcheck utility failed to find the following 32-bit library file: "/dblibbpam. So *".

Dbi1324w support of the db2_install command is deprecated.
More information, see the DB2 Information Center.

Default directory for installation of products-/opt/ibmlib2/v10.1

**************************************** *******************
Install into default directory (/opt/ibmdb2/v10.1 )? [Yes]
Yes ===================== enter Yes
Wait for installation. The installation is successful.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.