Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am a fairly new used and was looking for a way to install Ruby on my laptop and came across this link: https://rvm.io/rvm/install/

When I use the command specified there, it says curl is not installed. So can anyone tell me what exactly curl is? Thanks!

Note: Reading this guide is highly recommended before you install Ruby (thanks Damien).

share|improve this question
3  
The question has been answered but id suggest looking at this guide instead before installing ruby rubypluspl.us/2012/06/… –  damien Jun 25 '12 at 10:15
add comment

1 Answer

up vote 10 down vote accepted

CURL is needed for rvm, specifically it is used for the installer script (which is made to be 'run everywhere'), and since Mac doesn't ship with wget but does with curl, they use curl.

From CURL man page

curl is a tool to transfer data from or to a server, using one of the supported protocols (DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP,LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, TELNET and TFTP). The command is designed to work without user interaction.

You can install it by sudo apt-get install curl

share|improve this answer
    
@ Programming Noob- You should definitely consider the link provided by damien above. –  tijybba Jun 25 '12 at 10:27
2  
Installing Ruby from the package manager is a recipe for disaster if you start getting serious with Ruby. As for why it is actually needed for rvm, it is used for the installer script (which is made to be 'run everywhere', and since Mac doesn't ship with wget but does with curl... you get the picture). –  jrg Jun 26 '12 at 1:16
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.