public
Created

curb x mac osx

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
macbook:foo $ sudo find / -name curl
/Developer/SDKs/MacOSX10.7.sdk/usr/include/curl
/opt/local/bin/curl
/opt/local/include/curl
/opt/local/share/doc/curl
/opt/local/var/macports/distfiles/curl
/opt/local/var/macports/software/curl
/opt/local/var/macports/sources/rsync.macports.org/release/ports/net/curl
/Users/foo/.rvm/gems/ruby-1.9.2-p290/gems/curb-0.7.16/lib/curl
/Users/foo/.rvm/gems/ruby-1.9.2-p290/gems/curb-0.8.0/lib/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-0.9.2.2/lib/rake/rdoctask.rb
/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:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/foo/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
--with-curl-dir
--without-curl-dir
--with-curl-include
--without-curl-include=${curl-dir}/include
--with-curl-lib
--without-curl-lib=${curl-dir}/lib
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"
2:
3: int main() {return 0;}
/* end */
 
macbook:~foo$

please try: brew install curl

and then retry installing curb

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?

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.