解压文件 tar xvf odbc-sqlserver-1.4.27-linux-x86-glibc.tar
# cd odbc-sqlserver-1.4.27-linux-x86-glibc
# ls
all.tar dsn_template_ssl install_intro licenses_template unixodbc.tar.md5sum
all.tar.md5sum echo install_license license.txt unixodbc.tar.sum
all.tar.sum essqlservertarerr install_linkpaths licshell unixODBC_version.txt
check_root.txt ident install_other_products OSname.txt uodbc
cmpver install install_paths sqlserver_create_dsn.sh uodbcinstall.txt
config.log install_check_linux INSTALL.txt SQLSERVER_uodbcinstall.txt uodbc_tmp
drv_template install_check_products install_versioned tables_22189.sql versioned
drv_template_2236 install_check_root intro.txt tee
drv_template_ssl install_check_sunos licclient testlib
dsn_22189 install_check_tools license_request.txt unixODBC
dsn_template install_init licenses.out unixodbc.tar
执行install文件安装ODBC驱.(用root用户执行)
#./install
集合操作.每步都弹提示让进入步.
第步提示Press the return key to read license,按车即.
接刷license信息.Do you accept the license? (q=quit, yes, no):
接受,输入yes.
执行些检查命令,查看系统否基本些命令工具安装.按车进入步.
紧接着检查些包否安装.按车进入步.
提示安装unixODBC需要依赖ODBC driver manager.按RETURN进入步.
让输入些信息.想输直接车跳.
接步让选择licence.三OPTION.
[0] Exit
[1] View existing licenses
[2] SQLServer ODBC Driver V1.2
Please choose the product you would like a license for by entering its item number or enter one of the other options.
选择2,选择发现license收费..想钱买.我直接quit.进入步.
按要求步步输入IP址,端口,用户名,密码,实例.自测试提供东西否确.足够信息连接数据库,提示输入DSN名字.即数据库起名字,便边登陆候使用.
步完,配置基本完.
别高兴太早,要配置环境变量.
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/easysoft/sqlserver:/usr/local/easysoft/lib export LD_LIBRARY_PATH写入用户profile文件.注意路径要确.
现验证啦.
#cd /usr/local/easysoft/unixODBC/bin
#./isql -v dsn_name
连接OK啦.
odbc是微软的啊!