php5 compile woes: undefined function imagettftext
well, that's pretty much the problem, I get: [CODE]Fatal error: Call to undefined function imagettftext()[\CODE] when I run, eg. the following
Code:
<?php Code:
./configure --with-apxs --with-mysql=/usr/share/mysql --with-unixODBC --with-pgsql Thanks, Brian |
A quick guess would be php looking for libfreetype in the wrong place.
|
Quote:
Brian |
ask the mighty ldd if it is where it thinks it is
ldd /path/to/php <-- this will tell you if, what and where the libs php knows about reside or if you just want to see if it knows about libfreetype.so ldd /path/to/php | grep libfreetype |
Indeed I get
Code:
libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0xb7e17000) Thanks for teaching me the ldd command. :=) Brian |
after all that......
I also had this very same problem. Even though i compiled/linked against the freetype library (many-many times!) and verified it using ldd (as described above) I still received the error.
The problem, it turns out, is that I had two php executables, one in "/usr/bin" and one in "/usr/local/bin" after "make install" the output was being installed in "/usr/bin" but my path was picking up the "/usr/local/bin" which had an older (non-freetype linked) php executable. If, like me, you have tried everything suggested on the internet (including the previous posts here), then check you don't have two copies of php... A. |
All times are GMT -5. The time now is 12:53 AM. |