Skip to content
Create a gist now

Instantly share code, notes, and snippets.

curb x mac osx
macbook:foo $ sudo find / -name curl
macbook:curb-0.7.16 vpereira$ rake compile
WARNING: 'require 'rake/rdoctask'' is deprecated. Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead.
at /Users/foo/.rvm/gems/ruby-1.9.2-p290@global/gems/rake-
/Users/foo/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rdoc/task.rb:30: warning: already initialized constant Task
/Users/foo/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
checking for curl-config... yes
checking for curlinfo_redirect_time... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
Tasks: TOP => compile => ext/curb_core.bundle => ext/Makefile
(See full trace by running task with --trace)
macbook:~ foo$ more /Users/foo/.rvm/gems/ruby-1.9.2-p290/gems/curb-0.8.0/ext/mkmf.log
find_executable: checking for curl-config... -------------------- yes
"/usr/bin/gcc-4.2 -o conftest -I/Users/foo/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/x86_64-darwin10.8.0 -I/Users/foo/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward -I/Users/foo/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -fno-common -pipe -I/opt/local/include -g conftest.c -L. -L/Users/vpereira/.rvm/rubies/ruby-1.9.2-p290/lib -L. -L/usr/local/lib -lruby.1.9.1-static -lpthread -ldl -lobjc -L/opt/local/lib -lcurl -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -lidn -lssl -lcrypto -lssl -lcrypto -lz -lz"
gcc-4.2: error trying to exec '/usr/bin/i686-apple-darwin11-gcc-4.2.1': execvp: No such file or directory
checked program was:
/* begin */
1: #include "ruby.h"
3: int main() {return 0;}
/* end */
taf2 commented Jan 22, 2012

please try: brew install curl

and then retry installing curb

mckern commented Feb 2, 2012

This doesn't look like a curl issue and vpereira doesn't say that he has homebrew installed. Line 52 is telling:

gcc-4.2: error trying to exec '/usr/bin/i686-apple-darwin11-gcc-4.2.1': execvp: No such file or directory

vpereira, can you please provide the output of ls -lha /usr/bin/gcc* && which gcc && gcc --version? It looks like you're pointing to a version of gcc that isn't installed. Latest Xcode provided version of gcc is 4.2.1, but /usr/bin/gcc defaults to llvm, not gcc. You might have a stale macports configuration or something kicking around. Was this a system you upgraded from Snow Leopard to Lion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.