Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

impossible to obtain php_gd2.so for PHP

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
Milos
n00b
n00b
User avatar
Posts: 15
Joined: Tue Dec 03, 2002 10:56 am

impossible to obtain php_gd2.so for PHP

  • Quote

Post by Milos » Wed Aug 13, 2003 3:34 pm

Hello

I read lots of threads on the forum about gd for php.

I have my USE="gd" in the make.conf.
I add

Code: Select all

myconf="${myconf} --with-gd=/usr"
to my mod_php-4.3.2-r3.ebuild in the src_compile section.

I have the GDGraph and GDTextUtil ebuild merged.

Then, I emerge php and mod_php.
I modify my php.ini to add the extension php_gd2.so

But I never obtain this library after compilation !!!!!!!!! :evil:

So I am unable to render any pictures with php.

When I use phpinfo, I see in the Configure Command part:

"
'./configure' '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--without-readline' '--with-apxs2=/usr/sbin/apxs2' '--without-db3' '--without-db4' '--without-db2' '--with-mcrypt=/usr' '--with-mhash' '--with-gdbm=/usr' '--with-java=/opt/blackdown-jdk-1.4.1' '--without-pgsql' '--with-xpm-dir=/usr/X11R6' '--with-pdflib=/usr' '--without-gd' '--with-png-dir=/usr' '--with-jpeg' '--with-jpeg-dir=/usr' '--enable-exif' '--without-jpeg' '--with-tiff-dir=/usr' '--with-mysql=/usr' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--with-ttf' '--with-t1lib' '--with-gettext' '--with-qtdom' '--with-pspell' '--with-openssl' '--without-curl' '--without-imap' '--without-ldap' '--with-dom' '--with-dom-xslt' '--without-kerberos' '--with-pam' '--disable-memory-limit' '--disable-ipv6' '--enable-dbx' '--with-zlib' '--with-zlib-dir=/usr/lib' '--with-sablot=/usr' '--enable-xslt' '--with-xslt-sablot' '--with-xmlrpc' '--enable-wddx' '--with-xml' '--enable-mbstring=all' '--enable-mbregex' '--with-bz2' '--with-crack' '--with-ndbm' '--with-cdb' '--enable-bcmath' '--enable-calendar' '--enable-dbase' '--enable-filepro' '--enable-ftp' '--with-mime-magic' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvipc' '--with-iconv' '--enable-shmop' '--enable-dio' '--enable-inline-optimization' '--enable-track-vars' '--enable-trans-sid' '--enable-versioning' '--with-config-file-path=/etc/php/apache2-php4'
"

8O Where do all these parameters come from ???? 8O
I dunno what to do... could you please help me ???? ( I already lost 2 days browsing the forum looking for an answer) :?

Thanks in advance

Milos
Top
mdtn
n00b
n00b
User avatar
Posts: 33
Joined: Mon Jun 30, 2003 8:11 pm

  • Quote

Post by mdtn » Wed Aug 13, 2003 8:05 pm

have you try restarting apache?

then checking phpinfo()
The ';' Semicolon Monster Strike Again!!!
Top
Milos
n00b
n00b
User avatar
Posts: 15
Joined: Tue Dec 03, 2002 10:56 am

  • Quote

Post by Milos » Wed Aug 13, 2003 9:18 pm

Yep, at each recompilation (around 10 times... If I post here, it is because I finally gave up...)
-== FuCa CS powa ==-
Top
mdtn
n00b
n00b
User avatar
Posts: 33
Joined: Mon Jun 30, 2003 8:11 pm

  • Quote

Post by mdtn » Wed Aug 13, 2003 11:43 pm

'--with-jpeg' '--with-jpeg-dir=/usr' '--enable-exif' '--without-jpeg'
I find it odd that you have the '--with-jpeg' and '--without-jpeg'. This may not have anything to do with your problem though.

Post both your 'make.conf' and the ebuilds (php and mod_php)? And you type at command prompt.

This is how I got my gentoo box to work:
I use the following command WITHOUT any modification to my 'make.conf' or my ebuilds or any other files.

Code: Select all

USE="gd" emerge php mod_php
Inside my phpinfo.php

Code: Select all

'./configure' '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--without-readline'  '--with-apxs2=/usr/sbin/apxs2' '--without-db3' '--without-db4' '--without-db2' '--with-mcrypt=/usr' '--with-mhash' '--with-gdbm=/usr' '--with-java=/opt/blackdown-jdk-1.4.1' '--without-pgsql' '--with-xpm-dir=/usr/X11R6' '--with-pdflib=/usr' '--with-gd' '--with-png-dir=/usr' '--with-jpeg' '--with-jpeg-dir=/usr' '--enable-exif' '--with-tiff-dir=/usr' '--with-mysql=/usr' '--with-ttf' '--with-t1lib' '--with-gettext' '--with-qtdom' '--with-pspell' '--with-openssl' '--without-curl' '--without-imap' '--without-ldap' '--with-dom' '--with-dom-xslt' '--without-kerberos' '--with-pam' '--disable-memory-limit' '--disable-mbstring' '--disable-mbregex' '--disable-ipv6' '--enable-dbx' '--with-zlib' '--with-zlib-dir=/usr/lib' '--with-sablot=/usr' '--enable-xslt' '--with-xslt-sablot' '--with-xmlrpc' '--enable-wddx' '--with-xml' '--with-bz2' '--with-crack' '--with-ndbm' '--with-cdb' '--enable-bcmath' '--enable-calendar' '--enable-dbase' '--enable-filepro' '--enable-ftp' '--with-mime-magic' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvipc' '--with-iconv' '--enable-shmop' '--enable-dio' '--enable-inline-optimization' '--enable-track-vars' '--enable-trans-sid' '--enable-versioning' '--with-config-file-path=/etc/php/apache2-php4'
also inside the phpinfo i have a section for GD

Code: Select all

gd

GD Support => enabled
GD Version => bundled (2.0.12 compatible)
FreeType Support => enabled
FreeType Linkage => with TTF library
T1Lib Support => enabled
GIF Read Support => enabled
JPG Support => enabled
PNG Support => enabled
WBMP Support => enabled
XBM Support => enabled
But since you did modify your 'make.conf' by adding USE="gd", you should only have to

Code: Select all

emerge php mod_php
Hope you get it working.
The ';' Semicolon Monster Strike Again!!!
Top
Post Reply

4 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic