I am trying to install php 4.3.0 on FreeBSD 4.7 with apache 2.0.43. When I compiled apache, I used:
./configure \
--enable-so \
--enable-ssl=shared \
--enable-info=shared \
--enable-usertrack=shared \
--enable-speling=shared \
--enable-headers=shared \
--enable-expires=shared
make
make install
I started apache and everything worked. Now, I am trying to install php and am having difficulties. The first thing that I did was to install the pth port.
Configuring php:
./configure \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-tsrm-pth \
--with-openssl \
--with-zlib \
--with-gd \
--with-pgsql=/usr/local/pgsql
After configure runs, I still get the WARNING message that I have to configure with the --with-tsrm-pth. I finally got the configure to find pth and get rid of the warning message by adding --enable-experimental-zts.
Now after running make, I run 'make install' and the machine hangs when trying to install pear. Here is the last few lines of the output.
root@bluestreak% make install
Installing PHP CLI binary: /usr/local/bin/
Installing PHP SAPI module
/usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp4.la /usr/local/apache2/modules
/usr/local/apache2/build/libtool --mode=install cp libphp4.la /usr/local/apache2/modules/
cp .libs/libphp4.so /usr/local/apache2/modules/libphp4.so
cp .libs/libphp4.lai /usr/local/apache2/modules/libphp4.la
libtool: install: warning: remember to run `libtool --finish /usr/local/src/php-4.3.0/libs'
chmod 755 /usr/local/apache2/modules/libphp4.so
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-zts-20020429/
Installing PEAR environment: /usr/local/lib/php/
Does anyone have any ideas on how to fix this? I have searched the web to find the answer, but have had no luck. Thanks in advance.
Also this appears at the end when running 'make'. Is this something that I should be concerned with?
/usr/lib/libc.so.4: WARNING! setkey(3) not present in the system!
/usr/lib/libc.so.4: warning: this program uses gets(), which is unsafe.
/usr/lib/libc.so.4: warning: mktemp() possibly used unsafely; consider using mkstemp()
/usr/lib/libc.so.4: WARNING! des_setkey(3) not present in the system!
/usr/lib/libc.so.4: WARNING! encrypt(3) not present in the system!
/usr/lib/libc.so.4: warning: tmpnam() possibly used unsafely; consider using mkstemp()
/usr/lib/libc.so.4: warning: this program uses f_prealloc(), which is not recommended.
/usr/lib/libc.so.4: WARNING! des_cipher(3) not present in the system!