[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Cofiguring or recopiling PHP package



On Sat, Apr 02, 2005 at 10:35:23AM +1000, Bruce Ward wrote:
> New to Debian (and linux) and trying to install an open source system built
> on PHP, Apache and PostgreSQL. The syetm requires a particular
> configiguration of PHP and comes with a suggested configuration script for
> use prior to compiling PHP. That is a script something like:
> 
> 	./configure -- with php -- with many more with statements
> 	make
> 	make install
> 
> I have installed Apache, PHP and PostgreSQL for the Debian package system,
> but have not been able to work out where I can run the config script within
> the debian file system.
> 
> I also tried downloading a generic PHP package from the PHP world, but that
> fails about halfway through the configiration process, with a message like:
> 
> 	checking for OpenSSL support... yes
> 	checking for pkg-config... /usr/bin/pkg-config
> 	configure: error: Cannot find OpenSSL's <evp.h>


In almost all cases, when header files are not found, you need a *-dev
debian package.  Those provide the stuff required for development
(building a package from source is 'development' in that sense, even if
you don't code yourself).  So, in this particular case, it's likely you
have not installed the package libssl-dev.
Once it's installed, the configuration process should normally be able
to locate the relevant header files itself -- if not, you'd typically
have to specify an additional argument to configure, telling it where
to look (i.e. /usr/include/openssl/, in this case).

I don't know how 'particular' that PHP configuration really needs to
be, but before I would build PHP from source, I'd check twice whether
the given debian packages are not sufficient (you'd lose the advantages
of debian package management, etc., otherwise).
Same thing holds here: you'll most likely need php4-dev, to build any
other software '--with php' ...

We might provide more details, if you let us know what software you're
trying to install :)

Good luck,
Almut



Reply to: