|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
gd2 on FreeBSD, PHP/4.3.6
How on earth do I install the GD2 library for PHP on FreeBSD? I have PHP 4.3.6 already installed.
Do I have to reinstall or re configure to get graphics working in PHP? I installed the port of "gd-2.0.33_1,1" but this did nothing as far as I can see. All I get is Code:
Call to undefined function: imagecreatefromjpeg() Thanks FreeBSD 4.9
__________________
regards, pgudge |
|
#2
|
||||
|
||||
|
I'm pretty certain this message is because PHP doesn't know about libgd yet. You'll need to recompile/reinstall PHP to tell it about libgd. I don't normally install PHP from ports, but the command line should include --with-gd as a configuration option when building PHP:
Code:
./configure --with-gd ... rest of options ... or ./configure --with-gd=/path/to/libdir ...rest of options... Normally, you shouldn't have to specify the path if you installed libgd to a standard dir.
__________________
Up the Irons What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home. "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest Down with Sharon Osbourne Puzzle of the Month solved by sizeablegrin, etienne141 and L7Sqr, superior C/C++ programmers of the month |
|
#3
|
|||
|
|||
|
Does your system have a port called "lang/php4-extensions"? If yes, reinstall this. It should detect the new gd library and use it.
If no, then your system is from a time before the split (I think 4.9 is). You have to reconfigure www/mod_php4 (or the one you installed). I think you need a "make clean" so it removes your old compile options first. The configuration interface (looking similar to the FreeBSD /stand/sysinstall tool) should be started on the next "make" then. M.
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > BSD Help > gd2 on FreeBSD, PHP/4.3.6 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|