473,842 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Installing GD2 with PHP on linux

usafshah
104 New Member
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_g d2.dll

but in vain
Feb 21 '07 #1
9 25683
Motoma
3,237 Recognized Expert Specialist
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 New Member
i dont know about yum, how can i do this with yum ?
Feb 22 '07 #3
Motoma
3,237 Recognized Expert Specialist
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 New Member
[PHP][root@linuxserve r ~]# yum install php-gd
Loading "installonl yn" 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@linuxserve r ~]#[/PHP]


What should i do after this ? caz i still dont see any GD section in phpinfo();
Feb 24 '07 #5
Motoma
3,237 Recognized Expert Specialist
[PHP][root@linuxserve r ~]# yum install php-gd
Loading "installonl yn" 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@linuxserve r ~]#[/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 New Member
[PHP][root@linuxserve r tickets]# yum search php-gd
Loading "installonl yn" 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@linuxserve r tickets]#
[/PHP]
Feb 24 '07 #7
usafshah
104 New Member
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 New Member
[PHP][root@linuxserve r tickets]# yum insatll gd*
Loading "installonl yn" 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@linuxserve r tickets]#
[/PHP]
Feb 24 '07 #9
Motoma
3,237 Recognized Expert Specialist
[PHP][root@linuxserve r tickets]# yum search php-gd
Loading "installonl yn" 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@linuxserve r 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
2486
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
2192
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 i try to run db2icrt to create an instance: SQL10007N Message "-1390" could not be retrieved. Reason code: "2" IBM's site says reason code 2 means it doesnt have permissions to the /usr/IBMdb2/V7.1/msg folder, but I set the permissions to...
5
1728
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 wanted your humbel opinion to jump out of my problem? Question:2
3
1489
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 LINUX.we are using wampp for windows wampp,php apache server.so how to install LINUX. WHAT IS THE SYSTEM CONFIGURATION FOR INSTALLING LINUX.
11
1784
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 "What's Tkinter?" message. IDLE's no where to be found. What's not in the instructions is what directory should I be in when I download? Where should I put the ".bz2" file? What dir for running the make files? At present I'm working on a Windows...
7
3103
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 ... is this easy? Is this the only way to do it? Thanks
5
3566
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
1846
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
9870
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10942
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10671
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10310
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9452
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7855
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4499
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4088
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3142
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.