Operating System - Linux
1753831 Members
9475 Online
108806 Solutions
New Discussion юеВ

PB adding libcurl library to php (web server suite)

 
Biker007
Advisor

PB adding libcurl library to php (web server suite)

Hi
I have installed the hp-gcc 4.0 package to compilate libcurl library (7.15 for HP-UX 11.11).
The compilation returned no error but when I tried to integrate the lib in php via php.ini file (extension=libcurl.sl), impossible to run apache with php (phpinfo.php is not working anymore). The path to extensions is correct.
Any idea ??

Regards
10 REPLIES 10
mirco_1
Valued Contributor

Re: PB adding libcurl library to php (web server suite)

hi,

do you have the
PHSS_22514 for the ld?

DM.
mirco_1
Valued Contributor

Re: PB adding libcurl library to php (web server suite)

Biker007
Advisor

Re: PB adding libcurl library to php (web server suite)

Seems that the PHSS_22514 patch is for the HP-UX 11.0 ... How could I get the name of the equivalent patch on HP-UX 11.11 ?
TKS
mirco_1
Valued Contributor

Re: PB adding libcurl library to php (web server suite)

hi,

there is in the link!

PHSS_26560

DM.
Biker007
Advisor

Re: PB adding libcurl library to php (web server suite)

Sorry...
I installed PHSS_26560, reboot the system.
Now I can see phpinfo.php (with extension=libcurl in php.ini) but I don't have any curl or libcurl module appearing in phpinfo.
When I try to use curl functions, PHP sends me a fatal error: call to undefined function curl_init().
So the libcurl is definitely not loaded.
Daavid Turnbull
Frequent Advisor

Re: PB adding libcurl library to php (web server suite)

cURL is something I investigated many moons ago but it all got too hard under HP-UX even though it seemed like the right way to go. I ended up changing tack completely and using Java and JNI.

That said I found that the response from the cURL mailing list was great. If you have no joy here I suggest you post your question to:

curl-library@lists.sourceforge.net

(http://thinkgeek.com/sf)
Behold the turtle for he makes not progress unless he pokes his head out.
Biker007
Advisor

Re: PB adding libcurl library to php (web server suite)

TKS all but still need some help...
I posted lists.sourceforge.net.

In error_log Apache file I get this message :
PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) 'libcurl.sl
' in Unknown on line 0

Why my libcurl.sl is invalid? The compilation was correct and returned no error (see below the result of ├в make test├в cmd)├в ┬ж

******** System characteristics ********
* curl 7.15.0 (hppa2.0w-hp-hpux11.11)
* libcurl/7.15.0 OpenSSL/0.9.7d
* Features: Largefile NTLM SSL
* Host: PS1WEB01
* System: HP-UX PS1WEB01 B.11.11 U 9000/800 1020574079 unlimited-user license
* Server SSL: OFF
* libcurl SSL: ON
* libcurl debug: OFF
* valgrind: OFF
* HTTP IPv6 OFF
* FTP IPv6 OFF
* HTTP port: 8990
* FTP port: 8992
* FTP port 2: 8995
* TFTP port: 8997
* SSL library: OpenSSL
*****************************************

TESTDONE: 268 tests out of 268 reported OK: 100%
TESTDONE: 298 tests were considered during 132 seconds.
TESTINFO: 30 tests were skipped due to these restraints:
TESTINFO: "no stunnel" 8 times (300, 301, 302, 303, 304, 305, 306, 509)
TESTINFO: "curl lacks ipv6 support" 9 times (212, 240, 241, 242, 252,
253, 254, 255, 263)
TESTINFO: "curl lacks libz support" 5 times (220, 221, 222, 223, 224)
TESTINFO: "rlimit problems" 1 times (518)
TESTINFO: "curl lacks idn support" 1 times (165)
TESTINFO: "curl lacks netrc_debug support" 6 times (130, 131, 132,
133, 134, 257)

Emanuele De Angelis
Frequent Advisor

Re: PB adding libcurl library to php (web server suite)

Hi,
we have same problem.
There is anyone that have a solution?
Please Help we.

Thanks in advance.
Daavid Turnbull
Frequent Advisor

Re: PB adding libcurl library to php (web server suite)

Just an educated guess but have you checked all the basic things such as:

permissions
environment (SHLIB_PATH in particular)
file locations

The error indicates that it is not able to find or read the library for some reason.
Behold the turtle for he makes not progress unless he pokes his head out.