Originally posted by tsinka
Which problem do you have installing the packages (sunfreeware.com) ?
btw ... it isn't an article, rather just a list of the steps, but it should be sufficient to get PHP up and running with the features you need. I had some heavy work to do so I hadn't the time to send it. I think I can post it as soon as I finish work today 🙂
Thomas
I don't kno if it's so much a problem installing the packages...but more of a problem with me specifying the correct paths for installation and specifying the paths where certain other packages can be found....for my installation all packages that I download must be installed in a directory called /export not /usr/local which apparently is the usuall.....
The last time I tried the installation (PHP 5 installation)....I got this
.
.
.
Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... /export/libxml2-2.6.12
checking whether libxml build works... yes
checking for OpenSSL support... no
checking for ZLIB support... yes
checking if the location of ZLIB install directory is defined... no
configure: error: Cannot find libz
Where would I find that libz thing ?
I'm nevertheless going to try to rebuild the following before I again try to rebuild PHP 5
Theze are the packages I would want to rebuild
zlib-1.2.1.tar.gz
openssl-0.9.7d.tar.gz
libxml2-2.6.12.tar.gz
mhash-0.9.1.tar.gz
libtool-1.5.6.tar.gz
libpng-1.2.6-config.tar.gz
libmcrypt-2.5.7.tar.gz (BTW is there a bug in this libraray ? Ok I jus checked...there is, is there an alternative)
gd-2.0.28.tar.gz
This is how I'm configuring the the packages to be built:
./configure --prefix=/export --libexecdir=/export/libexec -libdir=/export/lib --includedir=/export
/include
make
make install
I get this whenever I do it for it for zlib
mkdir: illegal option -- l
mkdir: illegal option -- i
mkdir: illegal option -- b
mkdir: illegal option -- d
mkdir: illegal option -- i
mkdir: illegal option -- r
mkdir: illegal option -- =
mkdir: illegal option -- /
mkdir: illegal option -- e
mkdir: illegal option -- x
mkdir: illegal option -- o
mkdir: illegal option -- r
mkdir: illegal option -- t
mkdir: illegal option -- /
mkdir: illegal option -- l
mkdir: illegal option -- i
mkdir: illegal option -- b
mkdir: usage: mkdir [-m mode] [-p] dirname ...
Error code 2 (ignored)
cp zlib.h zconf.h /export/include
chmod 644 /export/include/zlib.h /export/include/zconf.h
cp libz.a -libdir=/export/lib
cp: cannot create -libdir=/export/lib: No such file or directory
Error code 2
make: Fatal error: Command failed for target `install'
I get this whenever I do it for it for libxml2-2.6.12
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
Error code 1
make: Fatal error: Command failed for target libxml2.la'
Current working directory /export/libxml2-2.6.12
*** Error code 1
make: Fatal error: Command failed for target
all-recursive'
Current working directory /export/libxml2-2.6.12
Error code 1
make: Fatal error: Command failed for target `all'