LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > PHP > PHP 5.3.x and Ubuntu 11.04

Reply
 
Thread Tools Display Modes
  #1  
Old 05-26-2011, 07:36 PM
tininho tininho is offline
Member
 
Join Date: May 2011
Posts: 17
Default PHP 5.3.x and Ubuntu 11.04

I was trying to build PHP 5.3.4 through the admin panel while I got the following error:
Code:
checking for the location of libjpeg... no
checking for the location of libpng... no
checking for the location of libXpm... no
checking for FreeType 2... no
checking for T1lib support... no
checking whether to enable truetype string function in GD... no
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... yes
checking for floorf... yes
If configure fails try --with-jpeg-dir=<DIR>
configure: error: libpng.(a|so) not found.
**ERROR** Could not configure PHP build
(ADDED: So obviously I had the libraries and they just didn't work)

My solution to the problem was to create symlinks for both libjpeg.so and libpng.so to the /usr/lib directory.

In summary, here are the 2 simlinks that were required when building PHP on Ubuntu 11.04 64bit:

ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/libjpeg.so
ln -s /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/libpng.so

Last edited by tininho; 05-26-2011 at 08:06 PM..
Reply With Quote
  #2  
Old 05-26-2011, 07:54 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
you can also try
Quote:
apt-get install libjpeg-dev
apt-get install libpng-dev
more details at http://www.litespeedtech.com/support...i:troubleshoot
Reply With Quote
  #3  
Old 05-26-2011, 08:04 PM
tininho tininho is offline
Member
 
Join Date: May 2011
Posts: 17
Yeah, well that was already done. The problem lies in new locations of the libraries and a bug in earlier version of ROOT (http://goo.gl/jaEx2) so it is not possible for the system to find automatically the libraries even if they were installed (like in my case, at least so I understood).

The problem is known (http://goo.gl/FJDmF)

Another problem is the fact that the new version of ROOT is not easily accessible for 64-bit users ATM of Ubuntu 11.04. (http://goo.gl/iYDkt)

Hence this work around. Thanks for those links, though.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:13 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.