curb
curb copied to clipboard
curb installation mac osx-lion
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?
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.
Is this still an issue?
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.
brew install curl gem install curb
if that is failing
git [email protected]:taf2/curb.git cd curb rake compile
paste output
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.
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?
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 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
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
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
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.