Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Installing gd library in Fedora 1

Status
Not open for further replies.

egmweb

Programmer
Mar 19, 2004
147
0
0
EU
Hi all.

I'm trying to install the gd library in fedora but I can't.

Here is what I'm doing:

root@zeus [~]# yum -y install gd
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
core [1/3]
updates [2/3]
extras [3/3]
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
Nothing to do
root@zeus [~]#

would you please help me to install this as I've installed an php script and it needs to use gd for thumbnail creation?

Thanks in advance.
Regards.
Eduard
 
It sounds like it's already installed. Try: [!]yum list gd[/!]
 
I had that problem too. Some folks were telling me I didn't have it when I knew better. I did the only sane thing. I had yum erase it then had it put it back. Everyone's happy now. :)

 
Hi Smah, Thanks for your reply.

Here is the output for the command you've suggested.

root@zeus [~]# yum list gd
Loading "installonlyn" plugin
Setting up repositories
core [1/3]
core 100% |=========================| 1.1 kB 00:00
updates [2/3]
updates 100% |=========================| 1.2 kB 00:00
extras [3/3]
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Installed Packages
gd.i386 2.0.33-8.fc5 installed
root@zeus [~]#

It seems to be installed, but when I go through phpinfo() and try to see the gd installation doesn't appear nothing.

I also tried to test with the php script for thumbnail creation and it doesn't work either.

Do you know how to fix / enable this Issue?

Thanks in advance.

Regards.

Eduard
 
I do, I do, pick me, pick me! Look to see if you have php-gd installed.
 
Hi RhytmAce,

Thanks very much for your help, but I dont understand your point.

I ran yum list php-gd and here is the output:

root@zeus [~]# yum list php-gd
Loading "installonlyn" plugin
Setting up repositories
core [1/3]
core 100% |=========================| 1.1 kB 00:00
updates [2/3]
updates 100% |=========================| 1.2 kB 00:00
extras [3/3]
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
root@zeus [~]#

I really don't know what to do... because still not working.

Please help me to install it.

Thanks in advance.
Regards.

Eduard
 
I suspect that you'll need to recompile php. In the 'Configure Command' section of phpinfo, do you see that it was configured with the option: '--with-gd' ?
 
Hi smah,

No I didn't see this, look the output:

Configure Command './configure' '--prefix=/usr' '--with-xml' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-magic-quotes' '--with-mysqli' '--with-mysql=/usr' '--enable-discard-path' '--with-pear' '--enable-sockets' '--enable-track-vars' '--with-zlib'

If I need to recompile php, what should I do?? can you help me with this, please?

Thanks in advance.

Eduard
 
you shouldn't have to recompile php do do this. Since fedora uses rpm packages, you can quiry for it:

Code:
rpm -q php-gd

If it isn't there, you can use yum to install it:

Code:
yum install php-gd

Sorry for the confusion. I thought you were having a problem with gd. This is the one used by Gimp and other graphics programs. The php-gd package is the one php plays with. Once installed you will see it show up in phpinfo().


 
Hi RhythmAce, thanks very much for your reply.

I've ran the commands you shows me and here is the output:

root@zeus [~]# rpm -q php-gd
package php-gd is not installed
root@zeus [~]# yum install php-gd
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
core [1/3]
updates [2/3]
extras [3/3]
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
No Match for argument: php-gd
Nothing to do
root@zeus [~]#

It seems like it cant find the package itself, but to be honest I don't know about itand how to do it.

Please what should I have to do next?

Thanks in advance.

Eduard
 
Here is a link to the package. Download the one best for your system. To install the rpm file, issue this command as root:

Code:
rpm -ivh filename

In this case filename would be the name of the rpm file. If you download it to a directory that has no other file with the extention of .rpm, you can use the wildcard i.e. "rpm -ivh *.rpm". If you are using the browser on the server, you may be asked what you want to do with the file. The options are to download it or install. You can choose install and it will be taken care of automatically. I hope this works for you. Here's the link:
 
Hi RhythmAce,

I couldn't find the version for my system...

I have: Fedora core release 5 and php 4.4.3

Would you please tell me which rpm would suit with my configuration?

Thanks again.

Eduard

 
Does
Code:
yum search php-gd
yum search gd
yum search php
return anything useful?

php v4.x is about to be deprecated, why not upgrade to php v5.x? From rpmfind, I saw gd packages for php v5.

--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
This one should work for all intel based machines: ftp://rpmfind.net/linux/fedora/core/development/i386/os/Fedora/php-gd-5.2.2-3.i386.rpm

Notice the "i386". That tells you that the code was compiled for intel processors back as far as the intel 80386. The os is fedora which means that the rpm package was created using fedora's directory structure. There are a few distros out there that use the rpm package manager. There major differences are where they place their files. If it turns out that you need to compile a tarball, the naming convention is the same but the filename ends with filename.tar.gz.

 
Hi RhythmAce, Thanks again for your patience.

But it doesn't works. Here is the output:

root@zeus [/]# rpm -ivh php-gd-5.2.2-3.i386.rpm
error: Failed dependencies:
libpng12.so.0(PNG12_0) is needed by php-gd-5.2.2-3.i386
php-common = 5.2.2-3 is needed by php-gd-5.2.2-3.i386
rtld(GNU_HASH) is needed by php-gd-5.2.2-3.i386
root@zeus [/]#

Should I need to have more files?

Thanks

Eduard
 
Hi RhythmAce, thank yue very much for your help!!

I figure it out the problem.

Best regards.

Eduard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top