PHP設定option問題



贊助商連結


psetarn
2006-11-05, 12:43 PM
請問好心的Linux大俠們:

我要用ODBC連到一台MS-SQL

爬了些文找到要安裝freetds.

我安裝freetds, 有個步驟不會做, 它說:
you'll need configure your PHP server adding this new option to the usual ones:
--with-mssql=/usr/local/
應該是指phpinfo() 裡的Configure Command那一長串要加入上面那一列.

爬了一些文, 我想應該是要去下載PHP的Sorce自行編譯, 我已經下載了PHP的Source, 但有些問題不懂:

1. 如果已經安裝了PHP的Server, 要 configure,make,make install前, 要先移除目前的PHP嗎? 還是直接configure,make,make install就好, 要怎麼做?

2.如果是未安裝PHP 的Server , 要 configure,make,make install, configure 時要加上哪些參數, 因為裝了PHP的Configure Command有很多, 在不裝前怎知哪些是必要的?

謝謝好心大大的解惑!

贊助商連結


repsol
2006-11-05, 04:23 PM
--with-mssql=/usr/local/
這各應該是跟你說要安裝好freetds之後
要安裝php的時候要指定的參數
--with-mssql[=DIR] Include MSSQL-DB support. DIR is the FreeTDS home

安裝php的時候要指定你 FreeTDS的安裝路徑

psetarn
2006-11-06, 12:02 PM
謝謝repsol大大, 那我要執行./configure --with .......之前, 要做原有PHP的刪除動作, 還是直接執行就好了? 謝謝!



--with-mssql=/usr/local/
這各應該是跟你說要安裝好freetds之後
要安裝php的時候要指定的參數
--with-mssql[=DIR] Include MSSQL-DB support. DIR is the FreeTDS home

安裝php的時候要指定你 FreeTDS的安裝路徑

repsol
2006-11-08, 11:30 PM
make clean 或是 make distclean(這兩各的差別只是在刪除檔案程度上的不同) 可以幫你把之前make過(不包含make install),也就是 Build過的檔案刪除.