LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Install/Configuration (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=11)
-   -   Error compiling php 5.3.21 (cannot find --ltdl) (http://www.litespeedtech.com/support/forum/showthread.php?t=6699)

nikoc1337 02-21-2013 07:58 AM

Error compiling php 5.3.21 & 5.2.17 (libiconv)
 
Hey. I have been using litespeed on my server for over a year.
I'am now trying to install litespeed on another server and after many issues im getting one more error while compiling php. I did search enough but haven't resolved it yet. Im having this problem both when i try to setup php 5.3.21 & 5.2.17

Code:

/
ext/iconv/iconv.o:/usr/local/lsws/phpbuild/php-5.3.21/ext/iconv/iconv.c:2545: more undefined references to `libiconv' follow
ext/iconv/iconv.o: In function `php_iconv_stream_filter_ctor':
/usr/local/lsws/phpbuild/php-5.3.21/ext/iconv/iconv.c:2499: undefined reference to `libiconv_open'
ext/xmlrpc/libxmlrpc/encodings.o: In function `convert':
/usr/local/lsws/phpbuild/php-5.3.21/ext/xmlrpc/libxmlrpc/encodings.c:73: undefined reference to `libiconv_open'
/usr/local/lsws/phpbuild/php-5.3.21/ext/xmlrpc/libxmlrpc/encodings.c:81: undefined reference to `libiconv'
/usr/local/lsws/phpbuild/php-5.3.21/ext/xmlrpc/libxmlrpc/encodings.c:101: undefined reference to `libiconv_close'
collect2: ld returned 1 exit status
make: *** [sapi/litespeed/php] Error 1
**ERROR** Could not compile PHP


webizen 02-21-2013 10:09 AM

http://www.litespeedtech.com/support...ead.php?t=2019

nikoc1337 02-21-2013 10:22 AM

Quote:

Originally Posted by webizen (Post 49870)

Hi.. I have already done that. Still getting the same error.

webizen 02-21-2013 12:53 PM

Quote:

Originally Posted by nikoc1337 (Post 49872)
Hi.. I have already done that. Still getting the same error.


Try ldconfig.

Also, try exclude iconv from compile with '--without-iconv' to work around if you don't really need iconv.

If still problem, pm your server temp access if you like us to look further.

nikoc1337 02-21-2013 12:58 PM

Quote:

Originally Posted by webizen (Post 49885)
Try ldconfig.

Also, try exclude iconv from compile with '--without-iconv' to work around if you don't really need iconv.

If still problem, pm your server temp access if you like us to look further.

I need to run a wordpress blog on the server. Also i had tried ldconfig before.
Im now trying to compile php without-iconv. I think i'am able to install php modules without recompiling php. Ill edit this soon for more news.
Thanks for the fast responses mate.

Edit: I did add --without-iconv and it's still giving the same error.


All times are GMT -7. The time now is 03:43 PM.