Help, Installing GD Library and Enabling.


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Help, Installing GD Library and Enabling.
# 1  
Old 04-03-2006
Data Help, Installing GD Library and Enabling.

Hi All,

I am a newbbie at UNIX/LINUX and recently installed GD library and all the jpeg6b and libpng successfuly. I have also added the extension=gd.so in the php.ini file under "Dynamic Extensions"

The issue I am having now is enabling GD library. I am suppose to now add a few lines to the php.ini file. I do not know where and how to drop these lines in that file, I am sure that I just don't drop the lines anywhere. I am also assuming I must re-compile that file or PHP, the lines must be added below:

./configure \
--with-gd \
--with-jpeg
--with-jpeg-dir=/usr/local \
--with-png
--with-png-dir=/usr/local \

make
make install

Can someone guide me

Thank-you.
# 2  
Old 04-03-2006
If GD is statically compiled into the PHP binary, then you don't need to change php.ini to load any .so as dynamic extension. Just restart Apache or whatever Web server you have should work.

Are you sure your GD is really dynamically compiled? It appears to me that it is statically compiled instead from your ./configure command. Try restarting Apache without loading any gd.so and fire a phpinfo page to check whether it is enabled.
# 3  
Old 04-04-2006
hi cbkihong,

Thank-you for your reply. How would I know if GD is statically installed or dynamically?
Anyhow I removed that line extension=gd.so form php.ini and restarted Apache.

I fired up a test php page, still no success, GD library is not listed as installed.
PHP verison on my server is 4.3.9

Any other steps I should take. I have have followed to my best that I can the instructions found here:http://www.boutell.com/gd/manual2.0.33.html
# 4  
Old 04-15-2006
It has been warned that only the GD shipped with PHP should be used. If you install GD with an external package, it may not work with PHP.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Add shared members from library to same library in a different directory

I'm trying to install libiconv to AIX 7.1 from an rpm off of the perzl site. The rpm appears to install but I get this error message. add shr4.o shared members from /usr/lib/libiconv.a to /opt/freeware/lib/libiconv.a add shr.o shared members from /usr/lib/libiconv.a to ... (5 Replies)
Discussion started by: kneemoe
5 Replies

2. Red Hat

Manully installing a shared library

I'm working with a 64 bit RedHat based Linux (Oracle EL 6.1). # uname -r 2.6.32-100.34.1.el6uek.x86_64 I have extracted a 32 bit shared library from within a RPM (rpm2cpio xx.rpm | cpio -idmv) and copied it to /lib. Then ran the ldconfig to update the cache. I can see the symbolic link is... (9 Replies)
Discussion started by: gheibia
9 Replies

3. Linux

./configure problem for libsf library due to apparently missing libdb library.

Hello, ./configure script fails to configure libsf. Please check the following last few lines of configure script error. checking for db1/db.h... no checking for db.h... yes checking for dbopen in -ldb1... no configure: error: No libdb? No libsf. But find command shows the following; ... (4 Replies)
Discussion started by: vectrum
4 Replies

4. UNIX for Dummies Questions & Answers

Installing a library of php in solaris 10

People i want to install a library on a solaris 10 x64 with a opteron. The library asks for a another library called libxcb-xlib.so.0. Does Anybody know where i can find this library? the complete error is root@webserver # php PHP Warning: PHP Startup: Unable to load dynamic library... (1 Reply)
Discussion started by: enkei17
1 Replies

5. UNIX for Dummies Questions & Answers

Installing device driver for TSM library

I am installing an lin_tape-1.38.0-1.src.rpm file but it won't install Linux version Linux 2.6.18-164.el5xen #1 SMP Thu Sep 3 04:41:04 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux but I am getting issues when installing # rpmbuild --rebuild lin_tape-1.38.0-1.src.rpm Installing... (1 Reply)
Discussion started by: karlochacon
1 Replies

6. Shell Programming and Scripting

How to change a Makefile from building static library to shared library?

Hi: I have a library that it only offers Makefile for building static library. It built libxxx.a file. How do I in any way build a shared library? (either changin the Makefile or direct script or command to build shared library) Thanks. (1 Reply)
Discussion started by: cpthk
1 Replies

7. UNIX for Dummies Questions & Answers

Installing Webalizer and GD Library

I tried to install webalizer on my Solaris Unix server so I can look at some webserver logs. I did not have libgd installed so I installed it and I think it went ok (not sure how to tell). But when I try and install webalizer I still get the message: Any ideas? Thanks. (0 Replies)
Discussion started by: Sepia
0 Replies

8. Linux

Installing GNU C library

I m working on a project of making a boot/root pendrive linux from source. I have got the basic working root filesystem with busybox. Now i wish to install GNU C library. But couldnt find a proper document to refer to. Also i tried the steps in LFS with just specifying the installation directory... (2 Replies)
Discussion started by: amu
2 Replies

9. Linux

Installing Firefox and now ended up installing latest glibc

Hi all, I wanted to install the latest version of firefox 2 but it seems when I attempt to install it, it seems to be saying it is looking for c libraries version 2.3? I believe I currently have an older version of the c libraries. I am currently running Sun's JDS Linux 2003. My Mozilla web... (1 Reply)
Discussion started by: scriptingmani
1 Replies
Login or Register to Ask a Question