LINUX配置ODBC環境連線達夢資料庫常見錯誤

2021-10-13 23:11:45 字數 3346 閱讀 8094

checking for a bsd-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking for a thread-safe mkdir -p... /usr/bin/mkdir -p

checking for gawk... gawk

checking whether make sets $(make)... yes

checking whether make supports nested variables... yes

checking for gawk... (cached) gawk

checking for bison... no

checking for byacc... no

checking for style of include used by make... gnu

checking for gcc... no

checking for cc... no

checking for cl.exe... no

configure: error: in `/soft/unixodbc-2.3.9':

configure: error: no acceptable c compiler found in $path

see `config.log' for more details

可以看出是缺少gcc導致的。

解決辦法:安裝gcc

安裝完成後可以正常執行./configure

可以使用isql -v dm8來檢視錯誤資訊

[root@localhost unixodbc-2.3.9]# isql -v dm8

[01000][unixodbc][driver manager]can't open lib '/dm8/bin/libdodbc.so' : file not found

[isql]error: could not sqlconnect

檢查發現存在libdodbc.so,並且沒有缺少依賴包

[root@localhost log]# locate libdodbc.so

/dm8/bin/libdodbc.so

/dm8/drivers/odbc/libdodbc.so

[root@localhost log]# ldd /dm8/bin/libdodbc.so

linux-vdso.so.1 => (0x00007ffd4e7fa000)

libdmdpi.so => /dm8/bin/libdmdpi.so (0x00007fcd6c912000)

libdmfldr.so => /dm8/bin/libdmfldr.so (0x00007fcd6bcf3000)

libdmelog.so => /dm8/bin/libdmelog.so (0x00007fcd6baed000)

libdmutl.so => /dm8/bin/libdmutl.so (0x00007fcd6b8db000)

libdmclientlex.so => /dm8/bin/libdmclientlex.so (0x00007fcd6b688000)

libdmos.so => /dm8/bin/libdmos.so (0x00007fcd6b45c000)

libdmcvt.so => /dm8/bin/libdmcvt.so (0x00007fcd6ad7c000)

libdmstrt.so => /dm8/bin/libdmstrt.so (0x00007fcd6ab68000)

librt.so.1 => /lib64/librt.so.1 (0x00007fcd6a960000)

libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fcd6a744000)

libdl.so.2 => /lib64/libdl.so.2 (0x00007fcd6a540000)

libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007fcd6a239000)

libm.so.6 => /lib64/libm.so.6 (0x00007fcd69f37000)

libc.so.6 => /lib64/libc.so.6 (0x00007fcd69b6a000)

libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fcd69954000)

libdmmem.so => /dm8/bin/libdmmem.so (0x00007fcd69747000)

libdmcalc.so => /dm8/bin/libdmcalc.so (0x00007fcd694d6000)

/lib64/ld-linux-x86-64.so.2 (0x00007fcd6d791000)

執行source /home/dmdba/.bash_profile後解決

source /home/dmdba/.bash_profile
[dmdba@localhost ~]$ isql -v dm8

[s1000][unixodbc]使用者名稱或密碼錯誤

[isql]error: could not sqlconnect

修改使用者名稱或密碼後解決

Linux下通過ODBC連線SQL Server

一 測試環境 作業系統 fedora 8 資料庫 sqlserver2000 installed in windows xp professional,資料庫有使用者sa,密碼是syth7777,資料庫檔案是qjkzdb 注意 1 ms從來沒有提供過sqlserver for linux,所以也不要...

在Linux中如何配置ODBC連線達夢資料庫

最近一直在學習達夢資料庫的相關配置方法,如果想使用odbc方式連線達夢資料庫 dm7 的話,可參照下面步驟進行操作 檢查是否安裝了odbc root localhost rpm qa grep unixodbc 1 通過rpm包進行安裝 root localhost packages rpm ivh...

LINUX環境下,達夢資料庫8配置ODBC連線

1 檢查gcc包 root localhost rpm qa grep gcc 如若沒有安裝,則使用如下方式安裝。安裝gcc包 root localhost yum install y gcc 2 cd到unixodbc安裝包的目錄 3 解壓安裝包,執行指令 root localhost home ...