LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   GD not properly installed(No JPEG Support) (http://www.linuxquestions.org/questions/linux-server-73/gd-not-properly-installed-no-jpeg-support-763267/)

centosfan 10-20-2009 02:22 PM

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?

centosfan 10-20-2009 02:43 PM

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.

knudfl 10-20-2009 08:16 PM

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.
.....

centosfan 10-21-2009 05:58 AM

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.

knudfl 10-21-2009 01:54 PM

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.
.....

centosfan 10-22-2009 12:27 PM

Quote:

Originally Posted by knudfl (Post 3727565)
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.


All times are GMT -5. The time now is 04:39 AM.