[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] GD 2.x install on Cobalt Raq4?
- Subject: Re: [cobalt-users] GD 2.x install on Cobalt Raq4?
- From: "Steve Bassi" <steve@xxxxxxxxx>
- Date: Thu Jan 2 11:09:01 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
> Has anyone successfully gotten GD 2.0 (and all its dependencies) installed
> and working on a Cobalt Raq4, and have PHP recognize the new libraries?
>
Yes ..
I actually have php 4.3.0 with gd2 (inc gif support - a patched version)
If you are in the US, you should not have the patched version.
But in case you are Australian then you can apparently.
I am a Brit so I think I can have it as Australia is a colony.
wget http://downloads.rhyme.com.au/gd/gd-2.0.7gif.tar.gz
In the past I have had to amend the makefile for the RAQ, but with the
latest version, it installs no problem
just follow the instructions in the README.
Then . here is how I upgraded php to 4.3.0 and have it pick up the GD stuff.
You may need to amend the php config lines and remove things you do not
have .. like curl.
Hope that helps
Rgds Bassi
#To upgrade a previous version of php to php-4.2.3
#Logged in as 'root' perform the following commands
cd /usr/local/download
wget http://php.net/distributions/php-4.3.0.tar.gz
tar -xvzf php-4.3.0.tar.gz
cd php-4.3.0
mkdir /usr/local/php
mv * /usr/local/php
cd /usr/local/php
rmdir /usr/local/download/php-4.3.0
#(this is my configure line, and I use gd2 with gif support, you will need
to remove any elements you do not have installed on your RAQ)
./configure --prefix=/usr --with-apxs=/usr/sbin/apxs --with-config-file-path
=/etc/httpd \
--with-exec-dir=/usr/bin --with-libdir=/usr/lib --with-zlib \
--with-gd=/home/local --enable-gd-native-ttf --with-jpeg-dir=/usr/lib \
--with-freetype-dir=/usr/include/freetype2 --with-ttf --with-t1lib \
--with-gettext=/usr --with-png-dir=/usr/lib --with-regex=system --with-db \
--with-gdbm --with-mbstring --with-mbstr-enc-trans --with-ldap \
--with-curl --with-imap-ssl --with-mysql=/usr --with-interbase=shared \
--with-pgsql=shared --with-pdflib=shared --enable-ftp --enable-safe-mode \
--enable-trans-sid --enable-inline-optimization --enable-track-vars --enable
-wddx=shared \
--enable-mm=shared --enable-magic-quotes --enable-xml --disable-debug
make
make install
cp php.ini-dist /etc/httpd/php.ini (RAQ4)
cp php.ini-dist /usr/local/lib/php.ini (RAQ3)
#Before restarting you will need to edit the php.ini file. (subject to your
needs)
#zlib.output_compression = On (is set to off in the new install)
#magic_quotes_runtime = On (default is set to off)
#register_globals = On (is set to off and some say should remain off , mine
is on)
/etc/rc.d/init.d/httpd stop
/etc/rc.d/init.d/httpd start
#Now to test the installation
#cp /usr/local/php/sapi/servlet/jinfo.php /home/sites/home/web/jinfo.php
#(you can place the jinfo.php in any suitable web directory)
#Then open jinfo.php in your browser and you will see details of the
installed programme.