Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PHP and imagecreatefromjpeg errors
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
dangerweasel
n00b
n00b


Joined: 15 Aug 2002
Posts: 47
Location: Outer Rim

PostPosted: Thu Apr 24, 2003 5:32 pm    Post subject: PHP and imagecreatefromjpeg errors Reply with quote

I am trying to get a site up and running. My developer needs to be able to use the function imagecreatefromjpeg(). He is telling me it is not working. I cannot find a way to make it work. According to some comments on the PHP page I need to pass --with-jpeg-dir=DIR during the compile. It looks like the ebuild script for mod_php does pass the option, but it passes
Code:
--with-jpeg-dir=/usr

but shouldn't it be

--with-jpeg-dir=/usr/lib

as that is where the actually libjpeg.so file actually is. I have been reading and fighting with this one for days now. Can someone shed some light for me.
Back to top
View user's profile Send private message
dangerweasel
n00b
n00b


Joined: 15 Aug 2002
Posts: 47
Location: Outer Rim

PostPosted: Thu Apr 24, 2003 8:28 pm    Post subject: Solved Reply with quote

I had to maually edit the ebuild script to include
Code:
--with-gd

so that it would build in the native gd support.
Back to top
View user's profile Send private message
Muggen
n00b
n00b


Joined: 14 Apr 2003
Posts: 20
Location: Sweden/Göteborg

PostPosted: Thu May 01, 2003 1:01 pm    Post subject: Reply with quote

Where in the ebuild did you put "--with-gd" ?
_________________
newbie
Back to top
View user's profile Send private message
Muggen
n00b
n00b


Joined: 14 Apr 2003
Posts: 20
Location: Sweden/Göteborg

PostPosted: Thu May 01, 2003 1:12 pm    Post subject: Reply with quote

I searched in my ebuild and found:
Code:
        use gd && myconf="${myconf} --with-gd=/usr"



..now what? :(
_________________
newbie
Back to top
View user's profile Send private message
rizzo
Retired Dev
Retired Dev


Joined: 30 Apr 2002
Posts: 1067
Location: Manitowoc, WI, USA

PostPosted: Thu May 01, 2003 1:44 pm    Post subject: Reply with quote

Yes apache and mod_php worked fine for me (and many others) right out of the ebuild.

Code:
emerge apache mod_php


If you plan to use apache >= 2, you'll need to add "apache2" to your USE vars.
Back to top
View user's profile Send private message
viperlin
Veteran
Veteran


Joined: 15 Apr 2003
Posts: 1319
Location: UK

PostPosted: Mon Jun 09, 2003 9:33 pm    Post subject: Reply with quote

they didn't work strait away for me.
i have GD installed and stuff but after re-emerging PHP and mod_php i still get the error:
http://zion.alturl.com/test/autogallery/

hopefully you can help me by telling me if the above works and a little more detail on how to edit (e.g what files as since the portage update things have changed a little.)
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