curb icon indicating copy to clipboard operation
curb copied to clipboard

curb installation mac osx-lion

Open vpereira opened this issue 13 years ago • 11 comments

I'm trying to install the curb gem in my Mac OSX Lion. I tried all solutions cited here already, like http://stackoverflow.com/questions/2350141/having-issues-with-curb-gem-on-mac-snow-leopard

my environment ruby 1.9.2 (rvm), mac OSX Lion, Xcode installed, lib curl (through sudo port install curl +universal command) installed.

the results from bundle install and my lib curl path is in this gist:

https://gist.github.com/1652989

based on my lib curl installation (as well on gist) I did try as well this compile command:

rake install EXTCONF_OPTS='--with-curl-dir=/opt/local/include/curl --prefix=/opt/local'

which failed. any idea? why it is so difficult to install it in mac osx? with linux it works like a charm... is the mac osx development environment?

vpereira avatar Jan 21 '12 14:01 vpereira

I am running OSX-Lion, ruby 1.9.3-p125 and have gotten this to work by specifying gem 'curb' and running bundle, but did nothing to install curl.

jonathan-mui avatar Jun 18 '12 21:06 jonathan-mui

Is this still an issue?

nijikon avatar Sep 25 '12 10:09 nijikon

Just happened on OS X 10.8.3, XCode installed as 4.6.2 with Command Line Tools, ruby 2.0.0-p195 via rvm 1.20.13 (master) and homebrew 0.9.4; trying to install curb 0.8.4. brew install curl do not solve the issue. At the moment I'm also stuck.

syntaxerrormmm avatar Jun 02 '13 22:06 syntaxerrormmm

brew install curl gem install curb

if that is failing

git [email protected]:taf2/curb.git cd curb rake compile

paste output

taf2 avatar Jun 03 '13 01:06 taf2

I had the same issue with a very similar setup as syntaxerrormmm. In my case, I found out that gcc-4.2 wasn't in the path so I did sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2 and this solved my issue. Not sure if that helps.

czarrar avatar Jun 10 '13 18:06 czarrar

Sorry for the delay. Here's results from manual compiling from git repository: https://gist.github.com/5913005 Probably it doesn't use really curl correct paths, latest curl is keg-only on homebrew. Here gem install curb results: https://gist.github.com/5913082

It does provide some information on what is the problem ("You have to install development tools") but it doesn't say what these tools are (Command line tools are installed, gcc-4.2 points to lvcc).

Any clues anyone?

syntaxerrormmm avatar Jul 02 '13 21:07 syntaxerrormmm

Ok, I investigated a little more. Finally, cleaning up the PATH environment variable solved the issue and I managed to compile it without any further problems. Thanks all for all the support.

syntaxerrormmm avatar Jul 02 '13 22:07 syntaxerrormmm

@syntaxerrormmm any further details about what you did to clean up your $PATH? I'm getting similar errors as you, but it's totally stumping me

dbchristopher avatar Oct 14 '13 20:10 dbchristopher

Not sure if this is helpful, but I was able to successful build curb with brew curl in OSX 10.11.2 (El Capitan)

brew install curl --with-openssl
brew link curl --force
export PATH=$PATH:/usr/local/bin
gem install curb

dhulihan avatar Apr 01 '16 17:04 dhulihan

In my case, ~/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/extensions/x86_64-darwin-15/2.3.0-static/curb-0.9.1/mkmf.log show me ld: library not found for -lnghttp2

So I tried brew install curl --with-openssl --with-nghttp2 and it works!

OS X: El Capitan 10.11.4 homebrew curl 7.48.0

hiroshi avatar Apr 13 '16 05:04 hiroshi

I followed this comment https://github.com/taf2/curb/issues/104#issuecomment-204483932 but got the error make: /usr/local/opt/coreutils/bin/gmkdir: No such file or directory After brew install coreutils, it works.

pololee avatar Oct 15 '17 23:10 pololee