You are not logged in.

#1 2005-06-20 16:56:21

rasat
Forum Fellow
From: Finland
Registered: 2002-12-27
Posts: 2,296
Website

Compile PHP with support for libmcrypt, libmhash, libxml

I have installed PHP Web Toolkit (phpwebtk) - a web application framework and toolkit for rapid development in PHP 5.
http://phpwebtk.sourceforge.net/

Install document says: "You must compile PHP with support for your web server, libmcrypt, libmhash, libxml and mysql at a bare minimum".

To add in /var/abs/daemons/php PKGBUILD, is this correct way to configure (not sure if --with or --enable or shared):
--enable-libmcrypt=shared
--enable-libmhash=shared
--enable-libxml=shared

Is "--with-apxs2 --prefix=/usr" for apache or does it require to add "--with-apache"?


Markku

Offline

#2 2005-06-21 05:35:08

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Compile PHP with support for libmcrypt, libmhash, libxml

try adding the following to the php pkgbuild:

 --with-mcrypt --with-mhash  --with-libxml-dir=/usr/include/libxml2/libxml 

You will need to add mcrypt (which pulls in libmcrypt and mhash), and libxml2 to the depends section.
If mcrypt and mhash error out during the phpbuild, then you might need to specify the directories they get installed to.

--with-mcrypt=/usr/something --with-mhash=/usr/something --with-libxml-dir=/usr/include/libxml2/libxml 

Good luck.

PS. There is a note on the php docs site (http://us4.php.net/mcrypt) that you  need to recompile libmcrypt with an additional flag. --disable-posix-threads

Not sure if it is truly needed, but I have never built it, so I don't know.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2005-06-21 09:47:16

rasat
Forum Fellow
From: Finland
Registered: 2002-12-27
Posts: 2,296
Website

Re: Compile PHP with support for libmcrypt, libmhash, libxml

cactus wrote:

try adding the following to the php pkgbuild:

 --with-mcrypt --with-mhash  --with-libxml-dir=/usr/include/libxml2/libxml 

Thanks, it works. Requires to have libmcrypt and mhash packages installed.


Markku

Offline

#4 2005-06-21 18:05:42

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Compile PHP with support for libmcrypt, libmhash, libxml

cactus wrote:

You will need to add mcrypt (which pulls in libmcrypt and mhash), and libxml2 to the depends section.

wink


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

Board footer

Powered by FluxBB