note 35266 deleted from install.unix.solaris by bjori

From: Date: Wed, 22 Mar 2006 20:23:08 +0000
Subject: note 35266 deleted from install.unix.solaris by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-106359@lists.php.net to get a copy of this message
Note Submitter: Habib Valanejad (php at valanejad dot com) ---- This may be a little long, but here is how to compile php with openssl, libmcrypt, cURL, ncurses and ... on Solaris. This has worked on SPARC Solaris 9. I skipped explaining how to build zlib, gd lib, and pdflib assuming you already know how to do those(let me know if you have problems compiling them). I used SUN forte6 C compiler. Step 1: Building libtool: 1- Download, untar and unzip the file 2- Go to libtool directory 3- ./configure --prefix=/Path_To_Where_You_Want_To_Install_libtool 4- make 5- make check(optional) 6- make install Step 2: OpenSSL 1- gunzip open_ssl_tar.gz 2- tar xvf open_ssl_tar_file 3- cd open_ssl_dir 4- ./Configure solaris-sparcv9-cc --prefix=/your_install_dir 5- make 6- make test 7- make install Step 3: libmcrypt: 1- Make sure you are using the new libtool. 2- untar and gunzip the source file. 3- cd to libmcrypt directory (the one that you just untared) and do following: Modify following file: lib/libdefs.h: From: #ifdef USE_LTDL # include To: #ifdef USE_LTDL # include "../libltdl/ltdl.h" 4- Add /usr/ucblib and /your_libtool_installed/lib to your LD_LIBRARY_PATH if you do not have it. 5- mv libtool libtool.sav (we're going to use the newest one that we compiled, remember?) 6- ln -s /your_libtool_installed/bin/libtool ./libtool 7- ./configure --prefix=/your_installation_directory --enable-dynamic-loading 8- make 9- make check 10- make install STEP 4: cURL 1- gunzip and untar the tarfile. 2- cd to cURL directory 3- ./configure --prefix=/path_to_where_you_want_to_install --with-ssl=/path_to_your_insalled_open_ssl_directory 4- make 5- make install STEP 6: ncurses: 1- Extract the tarfile. 2- cd to extracted tarfile directory 3- ./configure --prefix=/path_to_where_you_install --without-debug 4- make 5- make install 6- Go to /path_to_ncurses_installed/include: 6.1- If you don't see include files here and you see them in ncurses directory then: ln -s ncurses/* . STEP 7: Building APACHE 1- gunzip and extract (tar -xvf) httpd_tar_file.gz 2- cd extracted apache directory 3- ./configure --prefix=/your_apache_dir --enable-module=so --enable-ssl --with-ssl=/your_open_ssl_dir 4- make 5- make install STEP 6: Configure and building PHP 1- gunzip and tar -xfv php tarfile 2- If you've created a new libtool, set your LD_LIBRARY_PATH to /your_libtool_path/lib directory 3- ./configure --prefix=/php_install_directory --enable-pcntl --enable-ftp --with-mysql --with-mcrypt=/libmcryp_dir --with-openssl=/open_ssl_dir --enable-bcmath --enable-calendar --with-curl=/curl_dir --with-curlwrappers --enable-ctype --enable-exif --with-ncurses=/ncurses_dir --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-shmop --enable-sockets --enable-sigchild --with-gd --with-jpeg-dir=/your_jpeg_dir --enable-yp --with-zlib-dir=/your_zlib_dir --enable-gd-native-ttf --enable-gd-jis-conv --with-pdflib=/your_pdf_lib_dir -with-apxs2=/apachedir/bin/apxs --with-config-file-path=/your_phpini_path Hope that helps, Habib

« previous php.notes (#106359) next »