- 安装unixODBC
- 下载
- 解压到临时文件,用makepkg制作tgz安装包(执行脚本内容如下)或者解压到相应位置
- 执行脚本内容:
ln -s /usr/lib64/libodbc.so /usr/lib64/libodbc.so.1ln -s /usr/lib64libodbcinst.so/ /usr/lib64/libodbcinst.so.1
- 或者手动执行链接(本文操作需要root权限)
bash-4.2$ whoamivirhuiaibash-4.2$ suPassword: bash-4.2# whoamirootbash-4.2# cd /usr/lib64/bash-4.2# ln -s libodbc.so libodbc.so.1bash-4.2# ln -s libodbcinst.so libodbcinst.so.1
- 上面的创建软链接是必须的,否则会出现以下错误而无法运行
bash-4.2$ OpenSystemArchitect OpenSystemArchitect: error while loading shared libraries: libodbc.so.1: cannot open shared object file: No such file or directory和bash-4.2$ OpenSystemArchitect OpenSystemArchitect: error while loading shared libraries: libodbcinst.so.1: cannot open shared object file: No such file or directory