kompilace php5-mssql



Podle postu:
http://ubuntuforums.org/showthread.php?t=350269#post_thanks_box_2087818
http://panthar.org/2006/06/15/php-with-mssql-on-ubuntu-606/

Install the Debian Package tools:
Code:
apt-get install build-essential debhelper
Then, download the PHP5 Source Files:
Code:
apt-get source php5
Get the dependencies for building PHP5:
Code:
apt-get build-dep php5
cd to the directory php5-5.1.2/debian and vi the file modulelist. Insert a line above the one that says:
Code:
mysql MySQL
with the contents
Code:
mssql MSSQL
Next, edit the file rules and search for
Code:
–with-mysql=shared,/usr
Insert the following above it:
Code:
–with-mssql=shared,/usr
Make sure not to forget the backslash on the end.Now, we must edit the “control” file in the same directory. Add this to the end of the file:
Code:
Package: php5-mssql
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, ${php:Depends}, php5-common (= ${Source-Version})
Description: MSSQL module for php5
 This package provides a module for MSSQL using FreeTDS.
 .
 PHP5 is an HTML-embedded scripting language. Much of its syntax is borrowed
 from C, Java and Perl with a couple of unique PHP-specific features thrown
 in. The goal of the language is to allow web developers to write
 dynamically generated pages quickly.
Move up a directory:
Code:
cd ..
Now run:
Code:
dpkg-buildpackage
This will compile PHP5 and create the debs in the parent directory. This process takes a while, so relax.

When that is finished, cd to the parent directory and you will see your deb files.

Now, to install php5-mssql:
Code:
dpkg -i php5-mssql_5.1.6-1ubuntu2.1_i386.deb
Last update:
2008-04-07 09:11
Author:
Daniel
Revision:
1.62
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.