LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Tags used in this thread
Popular LQ Tags

Reply
 
Thread Tools
Old 10-20-2009, 03:22 PM   #1
JACOBKELL
Member
 
Registered: Jun 2003
Location: Royal City
Distribution: Cent os latest version
Posts: 189
Thanked: 1
GD not properly installed(No JPEG Support)


[Log in to get rid of this advertisement]
For some reason script requirement checker reports how gd is not properly installed,how JPEG support missing.Operative system is cent os 64 bit 5.3.And i think same conf without libdir64 works perfectly fine on 32 bit version.
Here is my configure options:
./configure --enable-fastcgi --enable-fpm --with-mcrypt --with-zlib --enable-mbstring --disable-pdo --with-curl --disable-debug --disable-rpath --enable-inline-optimization --with-bz2 --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --with-mhash --enable-zip --with-pcre-regex --with-openssl --with-mysql --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir=/usr/include/freetype2 --with-gettext=/usr/bin/ --with-libdir=lib64
Any idea what i missed?

Last edited by JACOBKELL; 10-20-2009 at 06:46 PM..
windows_xp_2003 JACOBKELL is offline  
Tag This Post
Reply With Quote
Old 10-20-2009, 03:43 PM   #2
JACOBKELL
Member
 
Registered: Jun 2003
Location: Royal City
Distribution: Cent os latest version
Posts: 189
Thanked: 1

Original Poster
Actually it seems header files missing for libjpg,but libjpg-devel is installed over yum.Any idea why those header files are missing?

..
I tried to install rpm file devel which seems have those h files,even source of jpg,but still same result.
I tried --with-jpeg-dir=lib64 also,no effect.Still no sign of jpeg support in php info.

Last edited by JACOBKELL; 10-20-2009 at 07:13 PM..
windows_xp_2003 JACOBKELL is offline  
Tag This Post
Reply With Quote
Old 10-20-2009, 09:16 PM   #3
knudfl
Senior Member
 
Registered: Jan 2008
Location: Copenhagen, Denmark
Distribution: pclos2009.2, slack13, Debian Lenny (+30 others, for test only)
Posts: 2,935
Thanked: 277
Assume, this is all about php5 ... which version ? ?

.. From 'php.spec' , php-5.2.9-2.fc11.src.rpm
http://download.fedora.redhat.com/pu...2.fc11.src.rpm

--with-gd=shared --enable-gd-native-ttf
( + about 70 other --options included.)

%package gd
BuildRequires: \
libXpm-devel, libjpeg-devel, libpng-devel, freetype-devel, t1lib-devel
.....
.....
And why not build your preferred version from a 'src.rpm' ?
The patches + the spec file usually results in working packages.
.....
.....
Of course, the easy way is : # yum install php php-gd
.. which is also the correct way, if you want a consistent OS.
.....

Last edited by knudfl; 10-21-2009 at 01:43 AM..
linuxpclinuxos knudfl is online now     Reply With Quote
Old 10-21-2009, 06:58 AM   #4
JACOBKELL
Member
 
Registered: Jun 2003
Location: Royal City
Distribution: Cent os latest version
Posts: 189
Thanked: 1

Original Poster
It's php version php 5.2.9.Could be some kind of bug,beacuse nothing else have sense.I mean everything is properly installed,yet it still doesn't show JPG option in php info on GD section.And i cant use php-gd beacuse i using come custom configure options which is why is required to compile php from source.I tried with --with-gd=shared --enable-gd-native-ttf but then entire GD section gone.
windows_xp_2003 JACOBKELL is offline     Reply With Quote
Old 10-21-2009, 02:54 PM   #5
knudfl
Senior Member
 
Registered: Jan 2008
Location: Copenhagen, Denmark
Distribution: pclos2009.2, slack13, Debian Lenny (+30 others, for test only)
Posts: 2,935
Thanked: 277
Well, why not use the php-5.2.9-2.fc11.src.rpm ?
wget http://download.fedora.redhat.com/pu...2.fc11.src.rpm
And thus get advantage of the 14 patches.. ( bug fixing ? )

1)
Code:
# yum install bzip2-devel curl-devel db4-devel gmp-devel httpd-devel pam-devel pcre-devel libc-client-devel cyrus-sasl-devel openldap-devel postgresql-devel unixODBC-devel libxml2-devel libxslt-devel libxml2-devel libXpm-devel libjpeg-devel libpng-devel freetype-devel t1lib-devel libmcrypt-devel mhash-devel libtidy-devel freetds-devel aspell-devel recode-devel
May be you missed one of the above packages ?

2) .. adding a few empty files, asked for ...
# touch /usr/share/aclocal/ltoptions.m4
# touch /usr/share/aclocal/ltsugar.m4
# touch /usr/share/aclocal/ltversion.m4
# touch /usr/share/aclocal/lt~obsolete.m4

3) php.spec , line 10 was edited to : Release: 2el5%{?dist}
4) # rpmbuild -bb php.spec
.. which runs with no errors on CentOS 5.x and provides
the 28 packages : /usr/src/redhat/RPMS/<arch>/php-*
.. php-5.2.9-2el5.i386.rpm, php-gd-5.2.9-2el5.i386.rpm, etc. etc.
.....

Last edited by knudfl; 10-21-2009 at 02:57 PM..
linuxredhat knudfl is online now  
Tag This Post
Reply With Quote
Old 10-22-2009, 01:27 PM   #6
JACOBKELL
Member
 
Registered: Jun 2003
Location: Royal City
Distribution: Cent os latest version
Posts: 189
Thanked: 1

Original Poster
Quote:
Originally Posted by knudfl View Post
Well, why not use the php-5.2.9-2.fc11.src.rpm ?
wget http://download.fedora.redhat.com/pu...2.fc11.src.rpm
And thus get advantage of the 14 patches.. ( bug fixing ? )

1)
Code:
# yum install bzip2-devel curl-devel db4-devel gmp-devel httpd-devel pam-devel pcre-devel libc-client-devel cyrus-sasl-devel openldap-devel postgresql-devel unixODBC-devel libxml2-devel libxslt-devel libxml2-devel libXpm-devel libjpeg-devel libpng-devel freetype-devel t1lib-devel libmcrypt-devel mhash-devel libtidy-devel freetds-devel aspell-devel recode-devel
May be you missed one of the above packages ?

2) .. adding a few empty files, asked for ...
# touch /usr/share/aclocal/ltoptions.m4
# touch /usr/share/aclocal/ltsugar.m4
# touch /usr/share/aclocal/ltversion.m4
# touch /usr/share/aclocal/lt~obsolete.m4

3) php.spec , line 10 was edited to : Release: 2el5%{?dist}
4) # rpmbuild -bb php.spec
.. which runs with no errors on CentOS 5.x and provides
the 28 packages : /usr/src/redhat/RPMS/<arch>/php-*
.. php-5.2.9-2el5.i386.rpm, php-gd-5.2.9-2el5.i386.rpm, etc. etc.
.....
Look like that rpm file again contain bundled php,which means it cannot be used.I didn't missed install of any yum file.
Perhaps you could try to install php 5.2.9 and php fpm on virtual machine?I see this problem repeat every time.

Actually it doesn't matter,i simply used version 5.2.10 and it works fine.Seems this is bug in php 5.2.9 version.

Last edited by JACOBKELL; 10-22-2009 at 03:29 PM..
windows_xp_2003 JACOBKELL is offline     Reply With Quote
Thanked by:

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
JPEG support for PHP5 GD on RHEL 5 beac0n Linux - Software 4 07-08-2009 11:05 AM
JPEG Support Ben.d Linux - General 3 03-10-2004 08:43 AM
no jpeg support arrruken Linux - Software 1 03-03-2004 02:11 AM
Recompiling RH 7.1 to disable DMA support - chipset doesn't support properly arby73 Linux - Newbie 0 06-13-2001 11:17 AM
How to build jpeg support into PHP Larry James Programming 4 10-14-2000 07:10 PM


All times are GMT -5. The time now is 07:38 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration