-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Giovanni Maruzzelli wrote:
> Congratulations for this great project!

Thanks.  It's nice to know that people really find Ports useful.

> I would like to use mod-php5 for apache1 with sqlite3 extension.

BTW, is mod_php5 working in general?  I don't have either apache
actually running, hence I haven't tested it; I would like to hear
feedback either way.

> You can find it at:
> http://php-sqlite3.sourceforge.net/pmwiki/pmwiki.php/Main/HomePage
> It gives also the DB interface needed for pear/DB.
> 
> So, I downloaded and compiled it, but I'm not able to build the dll
> needed to load it (I end up with just a .a and .la libraries, neither
> a .so).

FYI, on Cygwin, PHP extensions have a .dll extension.

> Can you give me some instruction, or better yet, upload it ready-made
> in the repository ;-) ?

First, make sure you have libsqlite3-devel installed.  Then there are a
few alternatives:

With /usr/bin/pecl (in php-pear):
1) Download sqlite3-0.5.tgz from their SourceForge project.
2) pecl install /path/to/sqlite3-0.5.tgz
3) echo "extension = sqlite3.dll" >> /etc/php5/php.ini

With cygport (0.3.6 or CVS):
1) While a PECL-hosted package would require a simple one-liner 'inherit
php', in this case you need to specify the HOMEPAGE and SRC_URI as well:
cat >> php-sqlite3-0.5-1.cygport <<_EOF
inherit php
HOMEPAGE="http://php-sqlite3.sourceforge.net/pmwiki/pmwiki.php";
SRC_URI="mirror://sourceforge/${PN}/${ORIG_PN}-${PV}.tgz"
_EOF
[This is now in ports/php/sqlite3 in Ports CVS.]
2) cygport php-sqlite3-0.5-1 fetch prep compile install list
3) cp -r php-sqlite3-0.5-1/inst/* /

In general, 'pear install' or 'pecl install' should successfully install
any PEAR or PECL package, whether or not its actually hosted there, as
long as the code does not require any patches.  Some PECL extensions are
very old and may not compile with gcc-3.4, such as oggvorbis (see
ports/php/oggvorbis in Ports CVS for a patch), or the code may not be
correctly written in the first place (cairo_wrapper for example, see
http://pecl.php.net/bugs/bug.php?id=12302 for details).

I'm currently considering my plans for packaging "simple" PECL
extensions, as well as extending cygport for PEAR packages as well.


Yaakov
Cygwin Ports
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHJMkupiWmPGlmQSMRCEQyAKCgu90STZc2d2WSGBDItFn1uKaMIACbBWW8
NPu+7rICEHOOx1g9RJSlh/c=
=xCr7
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Cygwin-ports-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cygwin-ports-general

Reply via email to