LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-20-2009, 02:22 PM   #1
centosfan
Member
 
Registered: Jun 2003
Location: Golem city
Distribution: Server - Debian Desktop - Linux Mint
Posts: 219

Rep: Reputation: 32
GD not properly installed(No JPEG Support)


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 centosfan; 10-20-2009 at 05:46 PM.
 
Old 10-20-2009, 02:43 PM   #2
centosfan
Member
 
Registered: Jun 2003
Location: Golem city
Distribution: Server - Debian Desktop - Linux Mint
Posts: 219

Original Poster
Rep: Reputation: 32
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 centosfan; 10-20-2009 at 06:13 PM.
 
Old 10-20-2009, 08:16 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 12:43 AM.
 
Old 10-21-2009, 05:58 AM   #4
centosfan
Member
 
Registered: Jun 2003
Location: Golem city
Distribution: Server - Debian Desktop - Linux Mint
Posts: 219

Original Poster
Rep: Reputation: 32
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.
 
Old 10-21-2009, 01:54 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 01:57 PM.
 
Old 10-22-2009, 12:27 PM   #6
centosfan
Member
 
Registered: Jun 2003
Location: Golem city
Distribution: Server - Debian Desktop - Linux Mint
Posts: 219

Original Poster
Rep: Reputation: 32
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 centosfan; 10-22-2009 at 02:29 PM.
 
  


Reply

Tags
php5



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 10:05 AM
JPEG Support Ben.d Linux - General 3 03-10-2004 07:43 AM
no jpeg support arrruken Linux - Software 1 03-03-2004 01:11 AM
Recompiling RH 7.1 to disable DMA support - chipset doesn't support properly arby73 Linux - Newbie 0 06-13-2001 10:17 AM
How to build jpeg support into PHP Larry James Programming 4 10-14-2000 06:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:02 PM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration