本文发表在 rolia.net 枫下论坛安装以下几个软件包,全部是源码,需要编译安装(如果那位大侠能提供这些软件的binary包将感激不尽).
1. freetds
2. unixodbc
3. mozilla LDAP c-sdk
目前遇到的问题是:
1. freetds和unixodbc安装完成后(缺省路经安装),/usr/local/lib下没有相应的.so文件.我不了解AIX,难道AIX下.a就相当于其他unix下的.so? 其实在freetds和unixodbc的目录下有.so文件,但是为什么没有安装到/usr/local/lib?这两个软件包在HP和solaris下都编译安装很正常.
/usr/local/lib下的文件有:
-rwxr-xr-x 1 root system 149707 Dec 12 13:18 libtdssrv.a
-rwxr-xr-x 1 root system 801 Dec 12 13:18 libtdssrv.la
-rwxr-xr-x 1 root system 851 Dec 12 13:18 libtdsodbc.la
-rwxr-xr-x 1 root system 452481 Dec 12 13:18 libtdsodbc.a
-rwxr-xr-x 1 root system 473555 Dec 12 13:18 libsybdb.a
-rwxr-xr-x 1 root system 796 Dec 12 13:18 libsybdb.la
-rwxr-xr-x 1 root system 371030 Dec 12 13:18 libct.a
-rwxr-xr-x 1 root system 781 Dec 12 13:18 libct.la
-rwxr-xr-x 1 root system 2362 Dec 12 13:18 libtds.a
-rwxr-xr-x 1 root system 786 Dec 12 13:18 libtds.la
-rwxr-xr-x 1 root system 772 Dec 09 18:00 libboundparam.la
-rwxr-xr-x 1 root system 152490 Dec 09 18:00 libboundparam.a
-rwxr-xr-x 1 root system 37203 Dec 09 18:00 libgtrtst.a
-rwxr-xr-x 1 root system 694 Dec 09 18:00 libgtrtst.la
-rwxr-xr-x 1 root system 550505 Dec 09 18:00 libnn.a
-rwxr-xr-x 1 root system 674 Dec 09 18:00 libnn.la
-rwxr-xr-x 1 root system 2010599 Dec 09 18:00 libtemplate.a [ 相约加拿大:枫下论坛 www.rolia.net/forum ]
-rwxr-xr-x 1 root system 709 Dec 09 18:00 libtemplate.la
-rwxr-xr-x 1 root system 1956558 Dec 09 18:00 libodbcpsql.a
-rwxr-xr-x 1 root system 723 Dec 09 18:00 libodbcpsql.la
-rwxr-xr-x 1 root system 45734 Dec 09 18:00 libmimerS.a
-rwxr-xr-x 1 root system 694 Dec 09 18:00 libmimerS.la
-rwxr-xr-x 1 root system 42188 Dec 09 18:00 libsapdbS.a
-rwxr-xr-x 1 root system 694 Dec 09 18:00 libsapdbS.la
-rwxr-xr-x 1 root system 44282 Dec 09 18:00 liboraodbcS.a
-rwxr-xr-x 1 root system 704 Dec 09 18:00 liboraodbcS.la
-rwxr-xr-x 1 root system 44990 Dec 09 18:00 libodbctxtS.a
-rwxr-xr-x 1 root system 704 Dec 09 18:00 libodbctxtS.la
-rwxr-xr-x 1 root system 43658 Dec 09 18:00 libtdsS.a
-rwxr-xr-x 1 root system 684 Dec 09 18:00 libtdsS.la
-rwxr-xr-x 1 root system 694 Dec 09 18:00 libesoobS.la
-rwxr-xr-x 1 root system 49226 Dec 09 18:00 liboplodbcS.a
-rwxr-xr-x 1 root system 704 Dec 09 18:00 liboplodbcS.la
-rwxr-xr-x 1 root system 48055 Dec 09 18:00 libesoobS.a
-rwxr-xr-x 1 root system 41948 Dec 09 18:00 libodbcnnS.a
-rwxr-xr-x 1 root system 699 Dec 09 18:00 libodbcnnS.la
-rwxr-xr-x 1 root system 46036 Dec 09 18:00 libodbcmyS.a
-rwxr-xr-x 1 root system 699 Dec 09 18:00 libodbcmyS.la
-rwxr-xr-x 1 root system 43080 Dec 09 18:00 libodbcminiS.a
-rwxr-xr-x 1 root system 709 Dec 09 18:00 libodbcminiS.la
-rwxr-xr-x 1 root system 47768 Dec 09 18:00 libodbcpsqlS.a
-rwxr-xr-x 1 root system 709 Dec 09 18:00 libodbcpsqlS.la < r o l i a. n e t >
-rwxr-xr-x 1 root system 41698 Dec 09 18:00 libodbcdrvcfg2S.a
-rwxr-xr-x 1 root system 724 Dec 09 18:00 libodbcdrvcfg2S.la
-rwxr-xr-x 1 root system 42552 Dec 09 18:00 libodbcdrvcfg1S.a
-rwxr-xr-x 1 root system 724 Dec 09 18:00 libodbcdrvcfg1S.la
-rwxr-xr-x 1 root system 885950 Dec 09 18:00 libodbccr.a
-rwxr-xr-x 1 root system 694 Dec 09 18:00 libodbccr.la
-rwxr-xr-x 1 root system 2986106 Dec 09 18:00 libodbc.a
-rwxr-xr-x 1 root system 716 Dec 09 18:00 libodbc.la
-rwxr-xr-x 1 root system 941262 Dec 09 17:59 libodbcinst.a
-rwxr-xr-x 1 root system 709 Dec 09 17:59 libodbcinst.la
生成但未安装的.so文件
-bash-3.00# pwd
/usr/local
-bash-3.00# find . -name "*.so*" -exec ls -l {} ;
-rwxr-xr-x 1 root system 445678 Dec 12 13:13 ./freetds-0.63/src/odbc/.libs/libtdsodbc.so.0
-rwxr-xr-x 1 root system 1654 Dec 12 13:12 ./freetds-0.63/src/tds/.libs/libtds.so.4
-rwxr-xr-x 1 root system 364853 Dec 12 13:12 ./freetds-0.63/src/ctlib/.libs/libct.so.3
-rwxr-xr-x 1 root system 463369 Dec 12 13:12 ./freetds-0.63/src/dblib/.libs/libsybdb.so.5
-rwxr-xr-x 1 root system 147170 Dec 12 13:15 ./freetds-0.63/src/server/.libs/libtdssrv.so.2
-rw-rw-r-- 1 root system 417 Dec 21 1998 ./openssl-0.9.8a/crypto/des/times/486-50.sol
-rwxr-xr-x 1 root system 1908719 Dec 09 15:27 ./unixODBC-2.2.11/Drivers/PostgreSQL/.libs/libodbcpsql.so.1
-rwxr-xr-x 1 root system 1936136 Dec 09 15:29 ./unixODBC-2.2.11/Drivers/Postgre7.1/.libs/libodbcpsql.so.2
-rwxr-xr-x 1 root system 1997323 Dec 09 15:32 ./unixODBC-2.2.11/Drivers/template/.libs/libtemplate.so.1
-rwxr-xr-x 1 root system 542824 Dec 09 15:34 ./unixODBC-2.2.11/Drivers/nn/.libs/libnn.so.1 { 枫下论坛 www.rolia.net/forum }
-rwxr-xr-x 1 root system 935235 Dec 09 15:16 ./unixODBC-2.2.11/odbcinst/.libs/libodbcinst.so.1
-rwxr-xr-x 1 root system 2971134 Dec 09 15:22 ./unixODBC-2.2.11/DriverManager/.libs/libodbc.so.1
-rwxr-xr-x 1 root system 881766 Dec 09 15:25 ./unixODBC-2.2.11/cur/.libs/libodbccr.so.1
-rwxr-xr-x 1 root system 41653 Dec 09 15:25 ./unixODBC-2.2.11/DRVConfig/drvcfg1/.libs/libodbcdrvcfg1S.so.1
-rwxr-xr-x 1 root system 40799 Dec 09 15:25 ./unixODBC-2.2.11/DRVConfig/drvcfg2/.libs/libodbcdrvcfg2S.so.1
-rwxr-xr-x 1 root system 46872 Dec 09 15:25 ./unixODBC-2.2.11/DRVConfig/PostgreSQL/.libs/libodbcpsqlS.so.1
-rwxr-xr-x 1 root system 42184 Dec 09 15:25 ./unixODBC-2.2.11/DRVConfig/MiniSQL/.libs/libodbcminiS.so.1
-rwxr-xr-x 1 root system 45147 Dec 09 15:25 ./unixODBC-2.2.11/DRVConfig/MySQL/.libs/libodbcmyS.so.1
-rwxr-xr-x 1 root system 41078 Dec 09 15:25 ./unixODBC-2.2.11/DRVConfig/nn/.libs/libodbcnnS.so.1
-rwxr-xr-x 1 root system 47165 Dec 09 15:25 ./unixODBC-2.2.11/DRVConfig/esoob/.libs/libesoobS.so.1
-rwxr-xr-x 1 root system 48233 Dec 09 15:26 ./unixODBC-2.2.11/DRVConfig/oplodbc/.libs/liboplodbcS.so.1
-rwxr-xr-x 1 root system 42818 Dec 09 15:26 ./unixODBC-2.2.11/DRVConfig/tds/.libs/libtdsS.so.1
-rwxr-xr-x 1 root system 44095 Dec 09 15:26 ./unixODBC-2.2.11/DRVConfig/txt/.libs/libodbctxtS.so.1
-rwxr-xr-x 1 root system 43374 Dec 09 15:26 ./unixODBC-2.2.11/DRVConfig/Oracle/.libs/liboraodbcS.so.1
-rwxr-xr-x 1 root system 41351 Dec 09 15:26 ./unixODBC-2.2.11/DRVConfig/sapdb/.libs/libsapdbS.so.1
-rwxr-xr-x 1 root system 44884 Dec 09 15:26 ./unixODBC-2.2.11/DRVConfig/Mimer/.libs/libmimerS.so.1
-rwxr-xr-x 1 root system 36322 Dec 09 15:34 ./unixODBC-2.2.11/autotest/.libs/libgtrtst.so.1
-rwxr-xr-x 1 root system 150041 Dec 09 18:00 ./unixODBC-2.2.11/samples/.libs/libboundparam.so.1
-bash-3.00#
2. 编译Mozilla LDAP c-sdk时提示
ld: 0706-006 Cannot find or open library file: -l m
ld:open(): A file or directory in the path name does not exist.
google了一下,似乎是缺少libm.a.那位知道那里可以下载到bos.adt.libm? 要不那位有AIX5.3的安装盘借用一下或者做个镜象? < 相约加拿大 ROLIA.NET >
非常感谢!
(另外,你的OS 390有没有一个什么基本操作说明?汗,啥操作都不会啊)更多精彩文章及讨论,请光临枫下论坛 rolia.net