473,403 Members | 2,293 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Installing GD2 with PHP on linux

usafshah
104 100+
Hi guys


I'm using fedora core 6, php5 and apache2, i downloaded gd2 compiled and test with gddemo and its working fine...

php is located: /usr/local/php
gd is located: /usr/local/gd


how should i make it working with php, i have tried to recompile php with the following command

./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --enable-track-vars --with-gd=/usr/local/gd

last time i compiled php with the following command:

./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql
but still when i see through phpinfo();

i'm getting

Configure Command './configure' '--prefix=/usr/local/php' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql=/usr/local/mysql'

I have put the line in php.ini

extension=gd.so
and
also un-commented the line
extension=php_gd2.dll

but in vain
Feb 21 '07 #1
9 25639
Motoma
3,237 Expert 2GB
Is there a reason you decided you would like to compile PHP and GD from source, as opposed to using a package manager such as yum?
Feb 21 '07 #2
usafshah
104 100+
i dont know about yum, how can i do this with yum ?
Feb 22 '07 #3
Motoma
3,237 Expert 2GB
i dont know about yum, how can i do this with yum ?
Expand|Select|Wrap|Line Numbers
  1. # yum install php-gd
  2.  
Feb 22 '07 #4
usafshah
104 100+
[PHP][root@linuxserver ~]# yum install php-gd
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
core 1.1 kB 00:00
updates 100% |=========================| 1.2 kB 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 509 kB 00:05
updates : ################################################## 1288/1288
primary.xml.gz 100% |=========================| 1.9 MB 00:08
extras : ################################################## 6006/6006
Parsing package install arguments
Nothing to do
[root@linuxserver ~]#[/PHP]


What should i do after this ? caz i still dont see any GD section in phpinfo();
Feb 24 '07 #5
Motoma
3,237 Expert 2GB
[PHP][root@linuxserver ~]# yum install php-gd
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
core 1.1 kB 00:00
updates 100% |=========================| 1.2 kB 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 509 kB 00:05
updates : ################################################## 1288/1288
primary.xml.gz 100% |=========================| 1.9 MB 00:08
extras : ################################################## 6006/6006
Parsing package install arguments
Nothing to do
[root@linuxserver ~]#[/PHP]


What should i do after this ? caz i still dont see any GD section in phpinfo();
The Nothing to do message means it did not install...
Odd...this worked for me.
Could you post the results of the following commands for me?

Expand|Select|Wrap|Line Numbers
  1. yum search php-gd
  2.  
  3. yum search gd
  4.  
  5. yum install gd*
  6.  
Feb 24 '07 #6
usafshah
104 100+
[PHP][root@linuxserver tickets]# yum search php-gd
Loading "installonlyn" plugin
Setting up repositories
core 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 1.2 kB 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 1.9 MB 00:08
extras : ################################################## 6087/6087



php-gd.i386 5.1.6-3 core
Matched from:
php-gd
The php-gd package contains a dynamic shared object that will add
support for using the gd graphics library to PHP.



php-gd.i386 5.1.6-3.3.fc6 updates
Matched from:
php-gd
The php-gd package contains a dynamic shared object that will add
support for using the gd graphics library to PHP.



php-gd.i386 5.1.6-3.4.fc6 updates
Matched from:
php-gd
The php-gd package contains a dynamic shared object that will add
support for using the gd graphics library to PHP.



php-gd.i386 5.1.6-3.4.fc6 installed
Matched from:
php-gd
The php-gd package contains a dynamic shared object that will add
support for using the gd graphics library to PHP.

[root@linuxserver tickets]#
[/PHP]
Feb 24 '07 #7
usafshah
104 100+
The result of yum search gd is very large can't post here , text size increased then allowed.


is there any simple text file uploading server when i upoad the file for you ?
Feb 24 '07 #8
usafshah
104 100+
[PHP][root@linuxserver tickets]# yum insatll gd*
Loading "installonlyn" plugin
usage: yum [options] < grouplist, localinstall, groupinfo, localupdate, resolvedep, erase, deplist, groupremove, makecache, upgrade, provides, shell, install, whatprovides, groupinstall, update, groupupdate, info, search, check-update, list, remove, clean, grouperase >

options:
-h, --help show this help message and exit
-t, --tolerant be tolerant of errors
-C run entirely from cache, don't update cache
-c [config file] config file location
-R [minutes] maximum command wait time
-d [debug level] debugging output level
-e [error level] error output level
-y answer yes for all questions
--version show Yum version and exit
--installroot=[path] set install root
--enablerepo=[repo] enable one or more repositories (wildcards allowed)
--disablerepo=[repo] disable one or more repositories (wildcards allowed)
-x [package], --exclude=[package]
exclude package(s) by name or glob
--obsoletes enable obsoletes processing during updates
--noplugins disable Yum plugins
None
[root@linuxserver tickets]#
[/PHP]
Feb 24 '07 #9
Motoma
3,237 Expert 2GB
[PHP][root@linuxserver tickets]# yum search php-gd
Loading "installonlyn" plugin
Setting up repositories
core 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 1.2 kB 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 1.9 MB 00:08
extras : ################################################## 6087/6087



php-gd.i386 5.1.6-3 core
Matched from:
php-gd
The php-gd package contains a dynamic shared object that will add
support for using the gd graphics library to PHP.



php-gd.i386 5.1.6-3.3.fc6 updates
Matched from:
php-gd
The php-gd package contains a dynamic shared object that will add
support for using the gd graphics library to PHP.



php-gd.i386 5.1.6-3.4.fc6 updates
Matched from:
php-gd
The php-gd package contains a dynamic shared object that will add
support for using the gd graphics library to PHP.



php-gd.i386 5.1.6-3.4.fc6 installed
Matched from:
php-gd
The php-gd package contains a dynamic shared object that will add
support for using the gd graphics library to PHP.

[root@linuxserver tickets]#
[/PHP]

Strange...Try running "yum install php-gd" again...I have no idea why it didn't work.
Feb 24 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

26
by: Simon | last post by:
I'm doing a survey. When do you think GNU/Linux will be ready for the average Joe? What obstacles must it overcome first?
4
by: Jae | last post by:
I've been having major problems installing Linux Runtime on slackware, but i think im close. My current problem is strange and I've searched the net and found very little im getting the error when...
5
by: Nirjhar Oberoi | last post by:
Hi, Question 1: I want your help on choosing what OS should one use to learn C Programming? I was thinking of installing Linux because a large no of tools are preconfigured in it.. I just...
3
by: radhak | last post by:
Anyone can help me.how to install LINUX.here we are using windows xp professional,is it possible to install linux in windows xp professional, or otherwise what is the SYSTEM configuration to install...
11
by: MartinRinehart | last post by:
I went to Python.org, DL'd Python 2.5 source code per the usual inadequate instructions and ran the make files successfully (sort of). Python 2.5 works fine. But "from Tkinter import *" gets a...
7
by: fordie1000 | last post by:
hi, Anyone have advice on installing a linux distro on a new computer with no optical drive or network connection? I have heard you can put the live CDs onto a USB key and boot from that ......
5
by: bob2044 | last post by:
hi , I couldnt install linux in mp laptop.There is no problem in installation of windows xp but it does not support linux .Please help me to solve this problem. Regards
2
by: gk11 | last post by:
i have tried for installing linux on sata but it gives error that disk does not found. i want to know which version is suitable for client server architechure and having sata disks?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.