Hi all.. Thanks in advance for any help.......
I am trying to compile php71.....I found another post that i am trying to follow.
========================================================
This is what i am trying to do...here is the post.....
============================================================
If installing PHP from source, you need to pass several options to
1. You first need to make sure you have libgd, libjpeg, libpng and zlib installed. If installed from FreeBSD ports:
Make sure you have libgd.so, libjpeg.so and libpng.so in /usr/local/lib. zlib.h should be in /usr/include.
2. By default libraries are installed in /usr/local/lib. Make sure you create symbolic links in /usr/lib:
3. Compile PHP. You have to at least specify the following options:
Restart the httpd daemon and it should work.
===================================================================================
I have installed apache24 and did a make install on gd. I set the 3 symbolic links and all is well but when i do a ./configure i get permission denied.
I am logged in as root . I am using this format.
# /usr/ports/lang/php71 ./configure --prefix=/php --with-config-file-path=/php
I get the same thing when i type it like this..
#cd /usr/ports/lang/php71 ./configure --prefix=/php --with-config-file-path=/php
I need to compile php with the above options. Not sure what I am doing wrong . I am new to freebsd . can someone help me with this part of the code? Thanks ......
======================================================[/code]
I am trying to compile php71.....I found another post that i am trying to follow.
========================================================
This is what i am trying to do...here is the post.....
============================================================
If installing PHP from source, you need to pass several options to
./configure
in order to make the proper links. Essential are the --with-<library>-dir=/usr/lib/
, otherwise PHP cannot find the libraries.1. You first need to make sure you have libgd, libjpeg, libpng and zlib installed. If installed from FreeBSD ports:
Code:
# cd /usr/ports/graphics/gd
# make install clean
2. By default libraries are installed in /usr/local/lib. Make sure you create symbolic links in /usr/lib:
# ln -s /usr/local/lib/libjpeg.so /usr/lib/
# ln -s /usr/local/lib/libpng.so /usr/lib/
# ln -s /usr/local/lib/libxml2.so /usr/lib/
3. Compile PHP. You have to at least specify the following options:
# ./configure \
--prefix=<dir to install php> \
--with-config-file-path=<dir to install php.ini> \
--with-apxs2=<path to apache/bin/apxs> \
--with-zlib \
--with-mysql \
--with-pdo-mysql \
--with-gd \
--with-jpeg-dir=/usr/lib \
--with-png-dir=/usr/lib \
--with-libxml-dir=/usr/lib \
--with-zlib-dir=/usr/include/
# make
# make install
Restart the httpd daemon and it should work.
===================================================================================
I have installed apache24 and did a make install on gd. I set the 3 symbolic links and all is well but when i do a ./configure i get permission denied.
I am logged in as root . I am using this format.
# /usr/ports/lang/php71 ./configure --prefix=/php --with-config-file-path=/php
I get the same thing when i type it like this..
#cd /usr/ports/lang/php71 ./configure --prefix=/php --with-config-file-path=/php
I need to compile php with the above options. Not sure what I am doing wrong . I am new to freebsd . can someone help me with this part of the code? Thanks ......
======================================================[/code]