Installing DB2 9.5 on Ubuntu 7.10

The official IBM site now has DB2 Express-C 9.5 available for download. Like its previous versions it’s entirely free, so why don’t you give it a try?

When running db2setup, after extracting the archive you downloaded, you may be disappointed to see that on Ubuntu 7.10 the setup program gives you the following error right out of the box:

ERROR:
 The required library file libstdc++.so.5 is not found on the system.
ERROR:
 The required library file libaio.so.1 is not found on the system.
 Check the following web site for the up-to-date system requirements
 of IBM DB2 9.5
 https://www.ibm.com/software/data/db2/udb/sysreqs.html
 https://www.software.ibm.com/data/db2/linux/validate
/home/antonio/Desktop/exp/db2/linux/install/../bin/db2usrinf:
error while loading shared libraries: libstdc++.so.5:
cannot open shared object file: No such file or directory
[: 609: 0: unexpected operator
/home/antonio/Desktop/exp/db2/linux/install/../bin/db2langdir:
error while loading shared libraries: libstdc++.so.5:
cannot open shared object file: No such file or directory
/home/antonio/Desktop/exp/db2/linux/install/../bin/db2langdir:
error while loading shared libraries: libstdc++.so.5:
cannot open shared object file: No such file or directory
DBI1055E The message file db2install.cat cannot be found.

Explanation:  The message file required by this
script is missing from the system; it may have been
deleted or the database products may have been loaded
incorrectly.

User Response:  Verify that the product option containing
the message file is installed correctly.  If there are
verification errors; reinstall the product option.

Here is a handy tip, just in case you get stuck with this error. You can install the prerequisites and run the DB2 setup program simply by executing the three commands below (in order).

sudo apt-get install libstdc++5
sudo apt-get install libaio-dev
sudo ./db2setup

I hope this quick tip saves you some time and a headache.

Get more stuff like this

Subscribe to my mailing list to receive similar updates about programming.

Thank you for subscribing. Please check your email to confirm your subscription.

Something went wrong.

15 Comments

  1. Nicola Larosa November 11, 2007
  2. brad clements November 11, 2007
  3. Antonio Cangiano November 11, 2007
  4. David Cesarano December 6, 2007
  5. kaare January 5, 2008
  6. Morten March 5, 2008
  7. scampbell March 12, 2008
  8. rohith March 28, 2008
  9. Gigi May 22, 2008
  10. Hong January 12, 2009
  11. smdelfin March 12, 2009
  12. WBRB April 2, 2009
  13. Antonio Cangiano April 2, 2009
  14. Hannes May 13, 2009
  15. Hannes Eva August 10, 2009

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.