| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-09-2006, 07:01 PM
|
#1
|
|
LQ Newbie
Registered: Jan 2006
Posts: 19
Rep:
|
php image functions dont work
I am trying to use the Image functions within php.
example - imagefontwidth
I get this error
Fatal error: Call to undefined function: imagefontwidth() in _________ on line 10
So I read that I need to install the GD libraries when I configure PHP.
I have version 4.4.1 of PHP running.
the php documentation indicates the gd lib is included and I should use configure --with-gd so I did that.
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-gd
I then read this
To enable GD-support configure PHP --with-gd[=DIR], where DIR is the GD base install directory. To use the recommended bundled version of the GD library (which was first bundled in PHP 4.3.0), use the configure option --with-gd. GD library requires libpng and libjpeg to compile.
this is where I need help...where do I put these files and what should the list look like.
Let me start there.
Thanks
Brian
|
|
|
|
11-10-2006, 01:34 AM
|
#2
|
|
Member
Registered: Nov 2006
Location: horten, norway
Distribution: gentoo / slackware / suse / red hat
Posts: 30
Rep:
|
Which distro is it you're using?
You can get the libraries and configure && make && make install them, as usual programs. Or run emerge / apt-get / whatever is applicable to your distro to get them.
http://www.libpng.org/pub/png/libpng.html - libpng
http://www.ijg.org/ - libjpeg
http://www.remotesensing.org/libtiff/ - libtiff (can also come in handy  )
mARGO
|
|
|
|
11-11-2006, 01:10 PM
|
#3
|
|
LQ Newbie
Registered: Jan 2006
Posts: 19
Original Poster
Rep:
|
I have all these files downloaded along with zlib, as it is required also.
I did configure, make test, and make install for the zlib and the png...and the test passed. Now the JPEG part I am not sure about. I am uncertain what I need to do to get this configured right.
I did configure, make test...but I really dont know if it is working right....didnt say passed test like the other groups.
So if it is working what does my configure statement look like for the PHP....and how do I know it is working right.
./configure --with-gd --with-jpeg ????????????????
I am not good at this part unless the cookbook works and the details are exacting.
|
|
|
|
11-11-2006, 01:57 PM
|
#4
|
|
LQ Newbie
Registered: Jan 2006
Posts: 19
Original Poster
Rep:
|
OK, I have the functions working now.
I did
configure
make
make test
make -n install
for zlib, png, jpeg
then I used this configure statement for php
[root@localhost /php441]# ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql -with-gd --with-jpeg-dir=/usr/bin/install --with-zlib-dir=user/bin/install --with-png-dir=/usr/bin/install
I still get the following errors when I test the make.
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped : 76
Exts tested : 11
---------------------------------------------------------------------
Number of tests : 639
Tests skipped : 266 (41.6%)
Tests warned : 0 (0.0%)
Tests failed : 8 (1.3%)
Tests passed : 365 (57.1%)
---------------------------------------------------------------------
Time taken : 71 seconds
=====================================================================
=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Bug #22544 (TrueColor transparency in PNG images). [ext/gd/tests/bug22544.phpt]
Bug #24155 (gdImageRotate270 rotation problem). [ext/gd/tests/bug24155.phpt]
Bug #27582 (ImageFillToBorder() on alphablending image looses alpha on fill color) [ext/gd/tests/bug27582_1.phpt]
Bug #28984 (imagefill segfault using a transparent color). [ext/gd/tests/bug28984.phpt]
gif --> png conversion test [ext/gd/tests/gif2png.phpt]
jpeg <--> png conversion test [ext/gd/tests/jpeg2png.phpt]
png <--> gd1/gd2 conversion test [ext/gd/tests/png2gd.phpt]
Bug #27780 (strtotime(+1 xxx) returns a wrong date/time) [ext/standard/tests/time/bug27780.phpt]
=====================================================================
php image functions that I use work....but what are all these errors about?
Thanks for reading and thanks for helping
|
|
|
|
11-14-2006, 02:51 AM
|
#5
|
|
Member
Registered: Nov 2006
Location: horten, norway
Distribution: gentoo / slackware / suse / red hat
Posts: 30
Rep:
|
http://bugs.php.net/bug.php?id=22544
It has to do with the older version of libraries that don't support some things properly.
mARGO
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:11 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|