[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] GD 1.8.4 on RAQ3



>Any tips on installing GD 1.8.4 on a RAQ 3?  When running 'make' I get the 
>... error(s):

I think you first need to install LIB JPEG. Try the following instructions, which worked ok for me. It 
actually refers to GD 1.3, but should work also with 1.8.4. Also, search the archives for GD 1.8.4


-- Install zlib
wget ftp://ftp.info-zip.org/pub/infozip/zlib/zlib.tar.gz
tar -xvzf zlib.tar.gz
cd zlib-1.1.3
make
make install
cd ..

-- Install LIB PNG
wget http://www.libpng.org/pub/png/src/libpng-1.2.1.tar.gz
tar -xvzf libpng-1.2.1.tar.gz
cd libpng-1.2.1
mv scripts/makefile.linux makefile
change in makefile: zlib-path (ZLIBLIB=/usr/local/lib - ZLIBINC=/usr/local/include)
make
make install
cd ..

-- Install LIB JPEG
wget ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz
tar -xvzf jpegsrc.v6b.tar.gz
cd jpeg-6b
./configure --prefix=/usr/local --exec-prefix=/usr --enable-shared
make
make install

edit the /etc/ld.so.conf. Add the following line at the bottom:

/usr/local/lib

Save the file, and reload the libs:

/sbin/ldconfig

cd ..

-- Install GD 1.3 (this version support GIFs)
wget ftp://ftp.e-gineer.com/pub/gd/gd1.3.tar.gz
tar -xvzf gd1.3.tar.gz
mv gd1.3 /usr/local/gd
cd /usr/local/gd
Edit MakefileLIBS=-lgd -lpng -lz -lm
change into:
LIBS=-lm -lgd -lpng -lz -ljpeg
make
Test with ./gddemo
Make install not needed as we'lll just run gd from this directory
(you may want it otherwise though...)
cd ..



Per Magne Knutsen

Department of Neurobiology
Weizmann Institute of Science
Rehovot, Israel

Phone: +972 (0)8 934 2604
Fax: +972 (0)8 934 4140
Cellular: +972 (0)55 675 289