Google Glass-like Clip-On For Regular Glasses Developed by Sony

For the price of $2,000, a pair of glasses that can run apps, take pictures, … more

Micromax Takes OnePlus to Court! Android Wear Receives Lollipop – XDA TV

Android 5.0 Lollipop is available officially for the Moto 360! … more

Google Invites Selected Devs to Buy Project Tango Development Kit

Just about a month ago, the curious Project Tango development kit was … more

YU Yureka: Indian Handset with CyanogenMod

Thesoap opera involving Cyanogen Inc., OnePlus, and Micromax is one of the most talked about … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[HowTo] Install cURL and OpenSSL on Android

OP r3pwn

13th July 2013, 07:04 PM   |  #1  
r3pwn's Avatar
OP Recognized Contributor
Thanks Meter: 1,464
 
1,292 posts
Join Date:Joined: Jul 2012
Donate to Me
More
NOTE: YOU MUST BE ROOTED WITH BUSYBOX INSTALLED TO INSTALL cURL AND OpenSSL.
Recently, when looking to see if it was possible to get cURL on Android, I found something posted on June 22nd of 2013 on http://curl.haxx.se/. What was it, you may ask? It was an announcement of the curl binary version 7.31.0. This also came with a nice little surprise. cURL and openssl binaries for android! If you want, you can download them by going to http://curl.haxx.se/download.html and scrolling down until you see Linux - Android. Download the ".tar.gz" file and extract it. Inside, you will see a folder called data. To install, copy the data/local/ssl to /data/local/ssl on the device. Also, push the curl and openssl binaries from data/local/bin to /system/bin on the device. Be sure to chmod them to 0755. Once all that is done, have fun using curl!

I have confirmed this to be working on my Kindle Fire HD running android 4.2.2.

EDIT: Root is needed in order to run OpenSSL, but not cURL.

Sent from my Amazon Kindle Fire HD using xda app-developers app
Last edited by r3pwn; 15th July 2013 at 07:50 PM.
The Following 11 Users Say Thank You to r3pwn For This Useful Post: [ View ]
13th July 2013, 07:20 PM   |  #2  
r3pwn's Avatar
OP Recognized Contributor
Thanks Meter: 1,464
 
1,292 posts
Join Date:Joined: Jul 2012
Donate to Me
More
Screenshot!

Sent from my Amazon Kindle Fire HD using xda app-developers app
Last edited by r3pwn; 13th July 2013 at 07:37 PM.
The Following 2 Users Say Thank You to r3pwn For This Useful Post: [ View ]
13th July 2013, 11:13 PM   |  #3  
r3pwn's Avatar
OP Recognized Contributor
Thanks Meter: 1,464
 
1,292 posts
Join Date:Joined: Jul 2012
Donate to Me
More
I'm surprised I was the first person to post about this.

Sent from my Amazon Kindle Fire HD using xda app-developers app
Last edited by r3pwn; 14th July 2013 at 04:13 AM.
The Following User Says Thank You to r3pwn For This Useful Post: [ View ]
15th July 2013, 05:17 AM   |  #4  
kenshinta's Avatar
Senior Member
Thanks Meter: 57
 
314 posts
Join Date:Joined: Dec 2004
Quote:
Originally Posted by r3pwn

I'm surprised I was the first person to post about this.

Sent from my Amazon Kindle Fire HD using xda app-developers app

Since you did, you are an idol. Cheers!
16th July 2013, 09:10 AM   |  #5  
GoLfWRC's Avatar
Member
Flag Bangkok
Thanks Meter: 11
 
41 posts
Join Date:Joined: Nov 2012
More
Nicely done.
16th July 2013, 02:45 PM   |  #6  
r3pwn's Avatar
OP Recognized Contributor
Thanks Meter: 1,464
 
1,292 posts
Join Date:Joined: Jul 2012
Donate to Me
More
Quote:
Originally Posted by GoLfWRC

Nicely done.

Thanks. And in-progress is a MD4, MD5 checksum verifier app that will require OpenSSL.

Sent from my Amazon Kindle Fire HD using xda app-developers app
Last edited by r3pwn; 16th July 2013 at 06:46 PM.
17th July 2013, 02:16 AM   |  #7  
r3pwn's Avatar
OP Recognized Contributor
Thanks Meter: 1,464
 
1,292 posts
Join Date:Joined: Jul 2012
Donate to Me
More
If anyone cares, the link to the app is http://forum.xda-developers.com/show....php?t=2366638.
Enjoy checking checksums!

Sent from my Amazon Kindle Fire HD using xda app-developers app
1st November 2013, 07:53 AM   |  #8  
Member
Thanks Meter: 5
 
41 posts
Join Date:Joined: May 2013
Just tried to install this and didn't seem to get it running.

My purpose for getting curl on Android is so I can have SL4A run a script launched by tasker, but every time I run the script I get "Fatal error: Call to undefined function curl_init() in storage/emulated/0/sl4a/scripts/nest.class.php (a PHP script for controlling my Nest thermostat).

I followed all your steps to install, although I seemed to have to do most through Root Explorer, by pushing to a folder through adb, copying from there into /data/local/ssl (which I had to mkdir for) and /system/bin, then using Root Explorer to change the permissions. Could this install process be the issue? If not, any other tips on getting cURL installed so it can be used?

Thanks.
2nd November 2013, 01:39 AM   |  #9  
Member
Thanks Meter: 5
 
41 posts
Join Date:Joined: May 2013
Quote:
Originally Posted by heytcass

Just tried to install this and didn't seem to get it running.

My purpose for getting curl on Android is so I can have SL4A run a script launched by tasker, but every time I run the script I get "Fatal error: Call to undefined function curl_init() in storage/emulated/0/sl4a/scripts/nest.class.php (a PHP script for controlling my Nest thermostat).

I followed all your steps to install, although I seemed to have to do most through Root Explorer, by pushing to a folder through adb, copying from there into /data/local/ssl (which I had to mkdir for) and /system/bin, then using Root Explorer to change the permissions. Could this install process be the issue? If not, any other tips on getting cURL installed so it can be used?

Thanks.

I just installed adbd insecure. Should that help with the install?
2nd November 2013, 07:36 PM   |  #10  
Member
Thanks Meter: 5
 
41 posts
Join Date:Joined: May 2013
Quote:
Originally Posted by heytcass

I just installed adbd insecure. Should that help with the install?

Alright, so I followed the steps to a T on a freshly formatted phone, and I am still getting the "Call to undefined function curl_init()" Fatal error within sl4a's terminal. In my searching to get this problem resolved by my Nexus 5 getting here, I found this page: http://thesoftwarerogue.blogspot.com...-os-using.html.

It's a bit dated, but it seems like it should work. Is there a better chance that method will work better than this one?

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes