View previous topic :: View next topic |
Author |
Message |
dangerweasel n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Simpsons/Simpsons_-_Homer.jpg)
Joined: 15 Aug 2002 Posts: 47 Location: Outer Rim
|
Posted: Thu Apr 24, 2003 5:32 pm Post subject: PHP and imagecreatefromjpeg errors |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
dangerweasel n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Simpsons/Simpsons_-_Homer.jpg)
Joined: 15 Aug 2002 Posts: 47 Location: Outer Rim
|
Posted: Thu Apr 24, 2003 8:28 pm Post subject: Solved |
|
|
I had to maually edit the ebuild script to include
so that it would build in the native gd support. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Muggen n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 14 Apr 2003 Posts: 20 Location: Sweden/Göteborg
|
Posted: Thu May 01, 2003 1:01 pm Post subject: |
|
|
Where in the ebuild did you put "--with-gd" ? _________________ newbie |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Muggen n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 14 Apr 2003 Posts: 20 Location: Sweden/Göteborg
|
Posted: Thu May 01, 2003 1:12 pm Post subject: |
|
|
I searched in my ebuild and found:
Code: | use gd && myconf="${myconf} --with-gd=/usr" |
..now what? ![Sad :(](images/smiles/icon_sad.gif) _________________ newbie |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rizzo Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/7070208983e8345b9651f5.png)
Joined: 30 Apr 2002 Posts: 1067 Location: Manitowoc, WI, USA
|
Posted: Thu May 01, 2003 1:44 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
viperlin Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 15 Apr 2003 Posts: 1319 Location: UK
|
Posted: Mon Jun 09, 2003 9:33 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|