473,396 Members | 1,789 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,396 software developers and data experts.

Attempt to compile PHP 5.2.0 with mysql and gd (2.0.33)

Hello newsgroup members,

I had an install of php without gd, this seemed to work ok. I decided
I would like to use the gd package with php. I have Redhat 3.0AS, and
php 5.2.0, and gd-2.0.33. the phpinfo file looks like it has gd (shows
up in info page).

I get a failure running one of the gd functions:
Fatal error: Call to undefined function imagecreatefromjpeg() in
usr/local/apache2/htdocs/thumbnail_generator.php on line 42

That function is supposed to be ok in gd.

I assume that I must start all over. What directory should I be using
for --with-gd=/??????
I have tried the unzipped location (gd-2.0.33) where i do the
../configure, etc - the php config fails, saying it cannot find
libgd.(a|so) (which is in .libs) or at times gd.h. I have used
/usr/lib as well - seems everything fails in some form. I am using
apache 2.0. How can I remove php 5.2, and gd, and start over
"correctly".

I followed the install and readmes for both php and gd - but no luck.

Any tips or experience with help.

Thanks
ewholz

Dec 13 '06 #1
1 1875
There are 2 possible solutions :

1. The simple one: The PHP source tree contains a GD library. If you want
to use it (and I don't see why you wouldn't), just add '--with-gd' or
'--with-gd=shared' to your configure line. Then run 'make' and the
embedded GD library will be compiled and linked with your PHP.

2. The more complex one. If you don't want to use the embedded GD library,
you will have to expand the GD sources, run configure in this directory,
compile, link , install GD, and only after this, you will run configure in
the PHP source tree and add '--with-gd=<dir>' where <diris the directory
GD was installed in (not the directory of the sources).

Now, something else: if you want to use imagecreatefromjpeg, you will need
the jpeg library, even if you link PHP with its embedded GD library.
There, it becomes quite complex to explain here.

Read the document at
http://www.tekwire.net/joomla/buildi...ache_rhel3.htm : it
is a step by step tutorial explaining how to build a complete Apache/PHP
environment on Linux RHEL 3. The document was validated with PHP 5.1.6 but
it should be OK for 5.2.

Francois

Le Wed, 13 Dec 2006 07:16:20 +0100, eholz1 <ew****@gmail.coma écrit:
Hello newsgroup members,

I had an install of php without gd, this seemed to work ok. I decided
I would like to use the gd package with php. I have Redhat 3.0AS, and
php 5.2.0, and gd-2.0.33. the phpinfo file looks like it has gd (shows
up in info page).

I get a failure running one of the gd functions:
Fatal error: Call to undefined function imagecreatefromjpeg() in
usr/local/apache2/htdocs/thumbnail_generator.php on line 42

That function is supposed to be ok in gd.

I assume that I must start all over. What directory should I be using
for --with-gd=/??????
I have tried the unzipped location (gd-2.0.33) where i do the
./configure, etc - the php config fails, saying it cannot find
libgd.(a|so) (which is in .libs) or at times gd.h. I have used
/usr/lib as well - seems everything fails in some form. I am using
apache 2.0. How can I remove php 5.2, and gd, and start over
"correctly".

I followed the install and readmes for both php and gd - but no luck.

Any tips or experience with help.

Thanks
ewholz


--
Utilisant le client e-mail révolutionnaire d'Opera :
http://www.opera.com/mail/
Dec 14 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: paul dallaire | last post by:
I have some PHP files that need to be compile with MySQL support How do we do this?. I am using IIS 5.1 and I installed MySQL 4.1 Server 4.1 as a Development system. Paul
0
by: renniw one | last post by:
Hi, I have been trying to compile mysql on a solaris 8 machine. However, I am getting internal compiler errors. What compiler and version did anyone use to successfully compile mysql on a solaris...
0
by: B. Fongo | last post by:
Hi! I know older versions of MySQL do not support foreign keys. Find out weather your version do. If not, you may have to do without the foreign keys in your definitions. Best regards Babs ...
0
by: lmckaha | last post by:
Hi, Mysql version: 3.23.49 Solaris version: 2.7 gcc compiler version: 2.95.2 Python : 2.2.2 I'm evaluating the C and C++ API to decide which one to bye but I have many troubles.
0
by: Wojtek Z | last post by:
Hi ! What do I need to compile MySql source? I want to create MySql with SSL, and AFAIK i need to compile it. Do I need MS Visual C++ or something like that ( I work in Delphi )? Best Regards...
2
by: anne001 | last post by:
I think I have php 4.4, mysql 5 and fast-cgi from curl -O http://fastcgi.com/dist/fcgi-2.4.0.tar.gz tar xvzf fcgi-2.4.0.tar.gz Here are the instructions I am trying to follow. Compile php as...
0
by: George R. Kasica | last post by:
Hello: Trying to upgrade from MySQL 3.23.40 to 4.1.16 and am having no luck getting the sources compiled. If you need further information or output please ask, I would be happy to provide it,...
5
by: inetquestion | last post by:
when I try to compile php-5.2.1 it gives an error about not being able to find mysqlclient and that it isn't included with mysql anymore. I've checked on the system and indeed they do not exist. ...
0
by: byron | last post by:
I've been unable to compile PHP 5.2.4 on HP-UX 11.11 with the mysql extension against a 64bit mysql installation. configure:59871: gcc -o conftest -I/usr/local/include -g -O2 -...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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.