unixODBC 64位安装及注意事项

http://unixodbc.13851.n7.nabble.com/unixODBC-manager-and-MySQL-connector-td350.html


If you have installed a 64 bit driver, you need to build the driver manager as 64 bit also.

export CFLAGS=-m64
./configure
make
make install



error while loading shared libraries: libodbc.so.2: 


ldd /sasapps/unixODBC/odbc1/lib/libodbc.so.2

And see if its 32 or 64 bit.

If its 32 bit build as 64 bit.
If its 64 bit, check the lib can be found

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:[yourpath]/unixODBC/odbc1/lib/


-- 

你可能感兴趣的:(技术文章)