Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GD2, PHP, Apache2 & Portage
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
victorius
n00b
n00b


Joined: 11 Feb 2003
Posts: 3
Location: Reykjavík, Iceland

PostPosted: Tue Aug 10, 2004 10:36 pm    Post subject: GD2, PHP, Apache2 & Portage Reply with quote

I have GD installed (gd-2.0.22). But apparently imagecreatefromJPEG(); does not work.

I have not tried this myself but a friend of mine who was trying to set up wordpress on my server complained about this. I guess the errror is:

Code:
Fatal error: Call to undefined function: imagecreatefromjpeg() ....


Here https://forums.gentoo.org/viewtopic.php?t=198636&highlight=imagecreatefromjpeg is a thread about that problem.

I was going to try the solution mentioned there. Compile mod_php with GD:

Code:
USE="-gd gd-external -java" emerge mod_php


But these are the dependencies for it and I would rather not update all of this on a online server. That is, I'd be in big trouble if things would break.

Code:
[ebuild     U ] sys-apps/sed-4.0.9 [4.0.7]
[ebuild     U ] sys-apps/texinfo-4.6 [4.5]
[ebuild     U ] sys-apps/portage-2.0.50-r9 [2.0.50-r8]
*** Portage will stop merging at this point and reload itself,
    recalculate dependencies, and complete the merge.
[ebuild     U ] sys-devel/gcc-config-1.3.5 [1.3.4]
[ebuild     U ] sys-devel/gcc-3.3.3-r6 [3.3.2-r5]
[ebuild     U ] sys-apps/baselayout-1.9.4-r3 [1.8.12]
[ebuild     U ] sys-libs/glibc-2.3.3.20040420-r1 [2.3.2-r9]
[ebuild     U ] sys-libs/zlib-1.2.1-r2 [1.1.4-r2]
[ebuild     U ] media-libs/libpng-1.2.5-r8 [1.2.5-r6]
[ebuild     U ] media-libs/fontconfig-2.2.2 [2.2.1]
[ebuild     U ] x11-base/opengl-update-1.7.2 [1.5]
[ebuild     U ] sys-devel/libperl-5.8.4 [5.8.2]
[ebuild     U ] dev-lang/perl-5.8.4 [5.8.2-r1]
[ebuild     U ] x11-base/xfree-4.3.0-r6 [4.3.0-r5]
[ebuild     U ] media-libs/gd-2.0.26 [2.0.22]


I have to get GD2 to work with apache + php. Any advice?
Back to top
View user's profile Send private message
psycovic
Apprentice
Apprentice


Joined: 23 Jun 2004
Posts: 172

PostPosted: Wed Aug 11, 2004 5:19 am    Post subject: Reply with quote

Well, I"ve installed Wordpress through the same process, but I compiled mod_php with gd libraries and such..just do -pv to make sure that it's the right version. And remember to edit the Apache2 conf's to allow mod_php.
Back to top
View user's profile Send private message
stuherbert
Retired Dev
Retired Dev


Joined: 17 Aug 2003
Posts: 47
Location: Pontypridd, South Wales

PostPosted: Wed Aug 11, 2004 4:08 pm    Post subject: Reply with quote

You shouldn't have to switch to the external gd library to enable jpeg support. Do you have the 'jpeg' USE flag switched on? If not, add that flag in, and then re-emerge mod_php.

You can use

Code:
emerge -av mod_php


to see what USE flags the mod_php ebuild supports, and which USE flags are switched on.

Best regards,
Stu
--
PS: You really should upgrade to new Portage versions as soon as they are marked stable. If you're not comfortable performing regular upgrades like that, then Gentoo probably isn't the right choice for you, sorry.[/code]
_________________
--
stuart@gentoo.org
Gentoo Developer
Trustee, Gentoo Foundation
http://blog.stuartherbert.com
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum