View previous topic :: View next topic |
Author |
Message |
lateralus01 Tux's lil' helper
Joined: 24 Jan 2008 Posts: 86
|
Posted: Thu Jan 24, 2008 11:07 pm Post subject: How would you install Curl to work with PHP? |
|
|
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 |
|
|
Sadako Advocate
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Thu Jan 24, 2008 11:19 pm Post subject: |
|
|
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 |
|
|
lateralus01 Tux's lil' helper
Joined: 24 Jan 2008 Posts: 86
|
Posted: Fri Jan 25, 2008 12:02 am Post subject: |
|
|
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 |
|
|
Sadako Advocate
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Fri Jan 25, 2008 12:29 am Post subject: |
|
|
Are you sure you actually have php installed at present?
That output suggests otherwise... _________________ "You have to invite me in" |
|
Back to top |
|
|
lateralus01 Tux's lil' helper
Joined: 24 Jan 2008 Posts: 86
|
Posted: Fri Jan 25, 2008 1:21 am Post subject: |
|
|
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 |
|
|
Sadako Advocate
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Fri Jan 25, 2008 1:23 am Post subject: |
|
|
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 |
|
|
lateralus01 Tux's lil' helper
Joined: 24 Jan 2008 Posts: 86
|
Posted: Fri Jan 25, 2008 4:38 am Post subject: |
|
|
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 |
|
|
Sadako Advocate
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Fri Jan 25, 2008 5:45 am Post subject: |
|
|
No problem.
Edit your first post and add [SOLVED] to the title? _________________ "You have to invite me in" |
|
Back to top |
|
|
|