设为首页 加入收藏

TOP

DB2 v9.5在Ubuntu10.x下安装
2014-11-24 02:45:06 来源: 作者: 【 】 浏览:2
Tags:DB2 v9.5 Ubuntu10.x 安装

以前用的是Ubuntu9.0.4,装DB2 v9.5非常轻松,一路下去,什么问题也没有。

这次情况不妙,Ubuntu升级到10.04以后,缺了libstdc++.so.5,系统中只有.so.6,

使用apt-get intall libstdc++5,也找不到安装包。无奈,只能在网上苦苦搜索,找了半天也没找到可下载的源。

最后在http://ishare.iask.sina.com.cn/f/14409917.html retcode=0 上找到一个。

再补充后边的几个步骤:

1. dpkg -x libstdc++5_3.3.6-10_i386.deb libstdc++5
cd libstdc++5/usr/lib
mv * /usr/lib

结果如下:
root@linux11:/usr/lib# ls -al libstdc++*
lrwxrwxrwx 1 root root 18 2010-12-09 11:54 libstdc++.so.5 -> libstdc++.so.5.0.7
-rw-r--r-- 1 root root 737496 2005-10-26 20:25 libstdc++.so.5.0.7
lrwxrwxrwx 1 root root 19 2010-11-26 00:02 libstdc++.so.6 -> libstdc++.so.6.0.14
-rw-r--r-- 1 root root 930044 2010-09-28 05:01 libstdc++.so.6.0.14

补充安装gcc-3.3-base和openssh, rsh-server:
wget -c http://up.2cto.com/2012/0312/20120312102512573.rar
dpkg -i gcc-3.3-base_3.3.6-15ubuntu4_i386.deb
apt-get install openssh-server

export DB2USELOCALJRE=yes

3. 运行db2setup开始安装,选择install a Product,进入DB2 Setup Wizard

后边基本上不会碰到什么问题。


作者 iihero

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇批处理JDBC语句以提高处理速度 下一篇db2根据错误进行排除的经验之谈

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: