- 安裝unixODBC
- 下載OpenSystemArchitect-4.0.0-linux-x86-64bit.tar.gz
- 解壓到臨時文件,用makepkg製做tgz安裝包(執行腳本內容以下)或者解壓到相應位置
- 執行腳本內容:
ln -s /usr/lib64/libodbc.so /usr/lib64/libodbc.so.1
ln -s /usr/lib64libodbcinst.so/ /usr/lib64/libodbcinst.so.1
- 或者手動執行連接(本文操做須要root權限)
bash-4.2$ whoami
virhuiai
bash-4.2$ su
Password:
bash-4.2# whoami
root
bash-4.2# cd /usr/lib64/
bash-4.2# ln -s libodbc.so libodbc.so.1
bash-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