Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How would you install Curl to work with PHP?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
lateralus01
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jan 2008
Posts: 86

PostPosted: Thu Jan 24, 2008 11:07 pm    Post subject: How would you install Curl to work with PHP? Reply with quote

I had Curl and PHP installed. I got an error in a php script that said:

Notice: Use of undefined constant CURLOPT_CONNECTTIMEOUT

after googleing around a bit i found that this particular variable is defined in libcurl and that I don't have libcurl installed to work with PHP:

The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.

So there has to be some command to emerge curl or php so the extension is compiled into php but I really have no clue how.

here's where i got that: http://theserverpages.com/php/manual/en/ref.curl.php

can anyone help me?

thanks,
lateralus
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Thu Jan 24, 2008 11:19 pm    Post subject: Reply with quote

I believe all your are missing is the curl USE flag for php, or perhaps curlwrapper.

What does `emerge -pv php` return?
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
lateralus01
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jan 2008
Posts: 86

PostPosted: Fri Jan 25, 2008 12:02 am    Post subject: Reply with quote

Hopeless wrote:
I believe all your are missing is the curl USE flag for php, or perhaps curlwrapper.

What does `emerge -pv php` return?


Xbox lib # emerge -pv php

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild N ] dev-lang/php-5.2.5-r1 USE="apache2 berkdb calendar cli crypt exif ftp gdbm iconv imap ipv6 mysql ncurses nls pcre posix readline reflection session spell spl ssl threads tokenizer truetype unicode xml zlib -adabas -bcmath -birdstep -bzip2 -cdb -cgi -cjk -concurrentmodphp -ctype -curl -curlwrappers -db2 -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob -fastbuild -fdftk -filter -firebird -flatfile -force-cgi-redirect -frontbase -gd -gd-external -gmp -hash -inifile -interbase -iodbc (-java-external) -json -kerberos -ldap -ldap-sasl -libedit -mcve -mhash -msql -mssql -mysqli -oci8 -oci8-instant-client -odbc -pcntl -pdo -pic -postgres -qdbm -recode -sapdb -sharedext -sharedmem -simplexml -snmp -soap -sockets -solid -sqlite -suhosin -sybase -sybase-ct -sysvipc -tidy -wddx -xmlreader -xmlrpc -xmlwriter -xpm -xsl -yaz -zip -zip-external" 0 kB

Total: 1 package (1 new), Size of downloads: 0 kB
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Fri Jan 25, 2008 12:29 am    Post subject: Reply with quote

Are you sure you actually have php installed at present?

That output suggests otherwise...
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
lateralus01
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jan 2008
Posts: 86

PostPosted: Fri Jan 25, 2008 1:21 am    Post subject: Reply with quote

Hopeless wrote:
Are you sure you actually have php installed at present?

That output suggests otherwise...


no I don't but i can install it, i just thought i had to emerge it with some different command but i'll reinstall it, then what?
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Fri Jan 25, 2008 1:23 am    Post subject: Reply with quote

First you should add "curl curlwrappers" to your USE flags in /etc/make.conf (or package.use), and then re-install, and you should be all set.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
lateralus01
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jan 2008
Posts: 86

PostPosted: Fri Jan 25, 2008 4:38 am    Post subject: Reply with quote

Hopeless wrote:
First you should add "curl curlwrappers" to your USE flags in /etc/make.conf (or package.use), and then re-install, and you should be all set.


thankyou so much it worked!!
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Fri Jan 25, 2008 5:45 am    Post subject: Reply with quote

No problem.

Edit your first post and add [SOLVED] to the title?
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum