develooper Front page | perl.php.sandwich.dev | Postings from November 2008

Re: [svn:PHP-Sandwich] r12059 - PHP-Sandwich/trunk

Thread Previous
From:
David E. Wheeler
Date:
November 10, 2008 09:47
Subject:
Re: [svn:PHP-Sandwich] r12059 - PHP-Sandwich/trunk
Message ID:
FEF204C7-09A0-4686-A1ED-DB5B23924075@kineticode.com
On Nov 10, 2008, at 2:46 AM, aff@cvs.perl.org wrote:

> +=head1 TROUBLESHOOTING
> +
> +=head2 PHP5 LIBRARIES NOT FOUND
> +
> +If the php5 libraries cannot be found, then the install will not
> +work:
> +
> +  Note (probably harmless): No library found for -lphp5
> +
> +You can resolve this problem by setting I<PHP_PREFIX> to the root
> +directory of you PHP install.  Do also make sure that your install of
> +PHP is supported by this version of PHP::Interpreter (see the README
> +file).

FYI, this isn't always true. For example, for me, on Mac OS X, I had  
to use the LIBS environment variable. This doesn't work:

% PHP_PREFIX=/usr/libexec/apache2 perl Makefile.PL
using php version 5.2.6
using prefix /usr/libexec/apache2
using includes -I/usr/libexec/apache2/include -I/usr/include/php -I/ 
usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend - 
I/usr/include/php/ext -I/usr/include/php/ext/date/lib
using lddlflags  -bundle -undefined dynamic_lookup -L/usr/local/lib -L/ 
usr/lib/mysql -L/usr/libexec/apache2/lib -L/usr/libexec/apache2/lib
using libs -L/usr/libexec/apache2/lib -lphp5
Checking header files...
No such directory: '/usr/libexec/apache2/include' at Makefile.PL line  
30.

But this does:

% perl Makefile.PL LIBS=-L/usr/libexec/apache2/
using php version 5.2.6
using prefix /usr
using includes -I/usr/include -I/usr/include/php -I/usr/include/php/ 
main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/ 
php/ext -I/usr/include/php/ext/date/lib
using lddlflags  -bundle -undefined dynamic_lookup -L/usr/local/lib -L/ 
usr/lib/mysql -L/usr/lib -L/usr/lib
using libs -L/usr/lib -lphp5
Checking header files...
using incdir '/usr/include'
using incdir '/usr/include/php'
using incdir '/usr/include/php/main'
using incdir '/usr/include/php/TSRM'
using incdir '/usr/include/php/Zend'
using incdir '/usr/include/php/ext'
using incdir '/usr/include/php/ext/date/lib'
Found /usr/include/php/main/php.h
Found /usr/include/php/main/php_config.h
Found /usr/include/php/main/php_ini.h
Found /usr/include/php/main/php_main.h
Found /usr/include/php/main/SAPI.h
Found /usr/include/php/TSRM/TSRM.h
Found /usr/include/php/Zend/zend.h
Found /usr/include/php/Zend/zend_API.h
Found /usr/include/php/Zend/zend_compile.h
Found /usr/include/php/Zend/zend_ini.h
Found /usr/include/php/Zend/zend_interfaces.h
Writing Makefile for PHP::Interpreter

Not that `make` works, but I'll get to that later.

Thanks,

David



Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About