TurnKey Linux Virtual Appliance Library

Installing Curl in apache?

I need the extension curl for php and cant find any documentation online on how to install it. Normally the libaries are there from what I have read. This is the message I get when I try to install it fromn the commad shell.

> sudo apt-get install curl libcurl3 libcurl3-dev php5-curl
Reading package lists...
Building dependency tree...
Reading state information...
E: Couldn't find package curl
 
Please note I am not a linux guru hence the reason for trying turnkey linux. If ayone has an idea or knows of a tutorial to install curl that would be great. I was able to find the libary online but not sure where to put it and how to install it.
Alon Swartz's picture

You need to synchronize your package index

Try this:
apt-get update
apt-get install curl libcurl3 libcurl3-dev php5-curl
L. Arnold's picture

You need to drop the middle libcul3-dev Now

Took quite a while but two parts here:

Do this in WebShell (not issue a Command from Webmin)

drop the middle libcurl2-dev from this command

apt-get install curl libcurl3 libcurl3-dev php5-curl

be sure to do both lines:  (needed for MageBridge Joomla)

apt-get update
apt-get install curl libcurl3 php5-curl

Still need now to upgrade php version to 5.2.8 or greater.  How to do that in Turnkey Joomla install (most recent version).

Worked on Turnkey Joomla too

Needed Curl for Yootheme Zoo - did what you said and rebooted machine and done!  Thanks

tried it no good

> apt-get update apt-get install curl libcurl3 libcurl3-dev php5-curl 
E: The update command takes no arguments

also tried this...

> apt-get install curl libcurl3 libcurl3-dev php5-curl 
Reading package lists... 
Building dependency tree... 
Reading state information... 
E: Couldn't find package curl

also tired this

Sent this first....
 
> apt-get update 
Get:1 http://archive.turnkeylinux.org hardy-security Release.gpg [481B] 
Get:2 http://archive.turnkeylinux.org hardy Release.gpg [481B] 
Get:3 http://archive.turnkeylinux.org hardy-security Release [1926B] 
Get:4 http://archive.ubuntu.com hardy-security Release.gpg [189B] 
Get:5 http://archive.ubuntu.com hardy Release.gpg [189B] 
Get:6 http://archive.turnkeylinux.org hardy Release [1899B] 
Get:7 http://archive.ubuntu.com hardy-updates Release.gpg [189B] 
Get:8 http://archive.ubuntu.com hardy-security Release [58.5kB] 
Get:9 http://archive.turnkeylinux.org hardy-security/main Packages [29B] 
Get:10 http://archive.turnkeylinux.org hardy-security/universe Packages [3350B]
Get:11 http://archive.turnkeylinux.org hardy/main Packages [4377B] 
Get:12 http://archive.turnkeylinux.org hardy/universe Packages [47.9kB] 
Get:13 http://archive.ubuntu.com hardy Release [65.9kB] 
Get:14 http://archive.ubuntu.com hardy-updates Release [58.5kB] 
Get:15 http://archive.ubuntu.com hardy-security/main Packages [204kB] 
Get:16 http://archive.ubuntu.com hardy-security/universe Packages [102kB] 
Get:17 http://archive.ubuntu.com hardy/main Packages [1518kB] 
Get:18 http://archive.ubuntu.com hardy/universe Packages [5607kB] 
Get:19 http://archive.ubuntu.com hardy-updates/main Packages [566kB] 
Get:20 http://archive.ubuntu.com hardy-updates/universe Packages [251kB] 
Fetched 8491kB in 14s (592kB/s) Reading package lists...

then sent this...

> apt-get install curl libcurl3 libcurl3-dev php5-curl 
Reading package lists... 
Building dependency tree... 
Reading state information... 
Package libcurl3-dev is a virtual package provided by: libcurl4-openssl-dev 7.18.0-1ubuntu2.1 
You should explicitly select one to install. 
E: Package libcurl3-dev has no installation candidate

L. Arnold's picture

see my prior post (drop the "dev" stuff"

apt-get update
apt-get install curl libcurl3 php5-curl

I have done this a few times and gotten Curl to post well.  Has worked w/ Hardy Joomla and lucid Lamp from the command

Also this is working to install GD (which I need for Magento - don't know what it is)  (need to drop the 5 in PHP to install php-apc  (accelerator) -- thanks to Adrian for his Magento Posts re GD and APC.

apt-get install php5-gd

drop the "dev" out of the libaries and use the text above -- I did this awhile back and was having the same trouble you were/or are.

Thank you very much

Thank you very much Arnold.

It works.

Thanks

Many thanks that sorted my curl prob, incidently, it didnt seem like curl was shipped with my default PHP5 install? (Ubuntu -s 64b)

Still not working

I'm runing the latest Joomla 1.6 on EC2.  Tried the above (without the dev part) and still get:

E: Couldn't find package libcurl13

 

Any ideas?

Jeremy's picture

Typo...

It's libcurl3 not libcurl13! Try that! :)

ethanthekiwi's picture

Where is WebShell

 

Jeremy's picture

Webshell is available from your browser

Just like Webmin but you use port 12320 (instead of 12321 like you do for Webmin) eg https://<appliance-name-or-IP>:12320

Alternatively you can use an SSH connection eg using a SSH client such as PuTTY.

Webshell is at the default start screen

Hello,

if you browse to the default start screen when you first boot up your LAMP stack VM, you will find a WebShell icon there which will take you to the webshell where you login with the root password you set up while installing the stack.

how to use fopen

i have absolutely no idea about fopen() in php and php , however i suppose i am trobuled by this thing only... initially i was unaware about such thingh when i started this thread

http://www.turnkeylinux.org/forum/support/20111212/joomla-cannot-interact-internet

however this problem is now turning like a beast... webmin can esiely interact to external internet, however joomla is getting mad day by day.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)