PHP扩展安装mssql

时间:2015-09-03 08:56:39

标签: php installation

我正在尝试在RedHat linux服务器上安装mssql扩展。我无法理解为配置扩展而应该给出哪条路径。下面的代码示例如下:

- 与-MSSQL =的/ usr /本地

路径是什么" / usr / local"在我的情况下,我应该放弃哪条路。

感谢。

1 个答案:

答案 0 :(得分:2)

PREPARE SOURCE CODE
step 1: download latest php version
step 2: un-tar the php source code
step 3: download latest freetds version
step 4: un-tar the freetds source code

INSTALL THE FREETDS
step 5: make sure there is a writable directory at /usr/local/freetds
step 6: "cd" to the freetds source directory
step 7: run "sudo ./configure --prefix=/usr/local/freetds --enable-msdblib"
step 8: run "sudo make"
step 9: run "sudo make install"
step 10: run "touch /usr/local/freetds/include/tds.h" (add blank, but necessary files)
step 11: run "touch /usr/local/freetds/lib/libtds.a" (add blank, but necessary files)

INSTALL THE PHP
step 11: "cd" to the php source directory
step 12: run "sudo ./configure --disable-all --with-mssql=/usr/local/freetds"
step 13: run "sudo make"
step 14: run "sudo make install"
相关问题