Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bash curl command not found on OS X. Where can I find it?

I have no idea what I am getting myself into, I am very new to programming and trying to learn on my own. I am trying to install homebrew with ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go) and this the outcome is "-bash: curl: command not found"

I have been searching Google but can't seem to find anything to help me. when I type which curl it just goes to the next line of terminal as if I just opened terminal...
I have xcode installed with command line tools installed, and even downloaded reinstalled it in case something was wrong with it. Not that it matters but the reason I am attempting to install homebrew is it is needed for libsodium which is needed for dnscrypt.

When I type curl-config it gives me available values for OPTION include:

  --built-shared says 'yes' if libcurl was built shared   --ca        ca bundle install path   --cc        compiler   --cflags    pre-processor and compiler flags   --checkfor [version] check for (lib)curl of the specified version   --configure the arguments given to configure when building curl   --features  newline separated list of enabled features   --help      display this help and exit   --libs      library linking information   --prefix    curl install prefix   --protocols newline separated list of enabled protocols   --static-libs static libcurl library linking information   --version   output version information   --vernum    output the version information as a number (hexadecimal) 

Then I try any of of those like curl --version and it does the same curl command not found

like image 594
user2821160 Avatar asked Sep 26 '13 20:09

user2821160


People also ask

Where is curl installed?

Inside the src folder you will find the curl executable file. At this point, you need to copy the executable file and paste it inside a local folder on your PC to be able to run the curl.

Does macOS include curl?

All versions of OS X starting with Jaguar (released ten years ago) come with curl/libcurl installed. They support TLS 1.0 through OpenSSL, but not SSH or newer versions of TLS. Also, in case you're wondering, iOS does not ship with curl/libcurl.


2 Answers

Install curl by:

sudo apt-get install curl 
like image 194
Chip Avatar answered Sep 20 '22 23:09

Chip


As an alternative you can use wget:

ruby -e "$(wget -qO - 'https://raw.github.com/mxcl/homebrew/go')" 
like image 37
konsolebox Avatar answered Sep 22 '22 23:09

konsolebox