<?xml version="1.0" encoding="UTF-8"?><rss version="2.0">
<channel>
    <title>Dažādas piezīmes Debian  un stable versijā neesošie php moduļi</title>
    <link>https://tvertne.org/blogi/?itemid=2022</link>
    <description>Darbā uz jaunā servera bija nepieciešams php5-gmp un php5-mssql. Bet Debian pēdējā stable distributīvā nav tādas lietas... Rakājos pa netu, likās, ka būs jāpārkompilē krustām šķēr..</description>
    <language>lv</language>
    <image>
        <url>http://tvertne.org/logo-org.gif</url>
        <title>Debian  un stable versijā neesošie php moduļi</title>
        <link>https://tvertne.org/blogi/?itemid=2022</link>
    </image>
    <docs>http://backend.userland.com/rss</docs>
	    <item>
<title>Dažādas piezīmes Debian  un stable versijā neesošie php moduļi</title>
<link>https://tvertne.org/blogi/?itemid=2022</link>
<description>Darbā uz jaunā servera bija nepieciešams php5-gmp un php5-mssql. Bet Debian pēdējā stable distributīvā nav tādas lietas... Rakājos pa netu, likās, ka būs <a href="http://www.debian-database.org/?q=php5-gmp&amp;d=sarge" >jāpārkompilē</a> krustām šķērsām visa sistēma, kamēr atradu <a href="http://panthar.org/2006/06/15/php-with-mssql-on-ubuntu-606/">šo</a>:<br /><br /><p>First make sure you have the Debian package development tools:</p>
<p><code>apt-get install build-essential debhelper</code></p>
<p>(More tools might be needed depending on what you already have
installed, but you will tend to get warnings about what is missing)</p>
<p>Then, download the PHP sources:</p>
<p><code>apt-get source php5</code></p>
<p>(The current version in the Ubuntu repositories at this time is php5-5.1.2, so adjust for version numbers in the future.)</p>
<p>And you will need all the dependencies for building PHP:</p>
<p><code>apt-get build-dep php5</code></p>
<p>Change into the debian build directory for PHP:</p>
<p><code>cd php5-5.1.2/debian</code></p>
<p>The first step is to edit the "modulelist"? file. Insert a line above the one that says</p>
<p><code>mysql MySQL</code></p>
<p>with the contents:</p>
<p><code>mssql MSSQL</code></p>
<p>Next, edit the file “rules” and look for the section starting with “configure-apache2-stamp”. You will see a line similar to:</p>
<p><code>--with-mysql=shared,/usr</code></p>
<p>Open a line above this with the contents:</p>
<p><code>--with-mssql=shared,/usr</code></p>
<p>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 (NO SPACE after "shlibs:", "misc:", "php:"):</p>
<pre style="font-size: 11px;">Package: php5-mssql<br />Architecture: any<br />Depends: ${shlibs: Depends}, ${misc: Depends}, ${php: Depends}, php5-common (= ${Source-Version})<br />Description: MSSQL module for php5<br />This package provides a module for MSSQL using FreeTDS.<br />.<br />PHP5 is an HTML-embedded scripting language. Much of its syntax is borrowed<br />from C, Java and Perl with a couple of unique PHP-specific features thrown<br />in. The goal of the language is to allow web developers to write<br />dynamically generated pages quickly.</pre>
<p>Move up a directory.</p>
<p><code>cd ..</code></p>
<p>Now, run:</p>
<p><code>dpkg-buildpackage</code></p>
<p>And go get something to eat. This will do the whole
configure/compile for PHP and create debs in the parent directory. When
this process is done, move up to the parent directory:</p>
<p><code>cd ..</code></p>
<p>And, you will see all of the PHP debs, including the new php5-mssql_[version].deb</p>
<p>Run a dpkg -i on the ones you need, and you should be all set to connect to MSSQL databases.</p><p>* * * </p>
<p>MEGAPALDIES <a href="http://www.utterz.com/%7Eh-panthar/profile.php" >autoram</a> - tiešām strādā! Thank you!</p></description>
<pubDate></pubDate>
</item>
            </channel>
</rss>
        