close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": /usr/lib/python2.7/dist-packages/libsvn/_fs.so: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.
更新 PHP5 使支援 MSSQL
- [備忘]
- [參考] PHP connect to MS SQL 2000
$ sudo apt-get build-dep php5
$ sudo apt-get source php5
$ vi php5-5.2.0/debian/rules
-
|
old
|
new
|
|
| 72 | 72 | --disable-rpath \ |
| 73 | 73 | --disable-static \ |
| 74 | 74 | --with-pic \ |
| | 75 | --with-mssql \ |
| 75 | 76 | --with-layout=GNU \ |
| 76 | 77 | --with-pear=/usr/share/php \ |
| 77 | 78 | --enable-calendar \ |
$ cd php5-5.2.0
php5-5.2.0$ dpkg-buildpackage
- 為了避免以後又遇到類似的問題,我們需要暫時把 php5 相關的套件全部設成 hold
$ sudo dpkg -i *.deb
$ dpkg --get-selections | grep php5 | sed 's#install#hold#' > php5-on-hold.pkg.lst
$ sudo dpkg --set-selections < php5-on-hold.pkg.lst
- [檢查] 可以用 phpinfo() 去查是否有支援 mssql
Download in other formats: