问题
This is the error I am getting when typing ./configure :
checking build system type... x86_64-apple-darwin11.3.0
checking host system type... x86_64-apple-darwin11.3.0
checking target system type... x86_64-apple-darwin11.3.0
checking whether the C compiler works... no
configure: error: in `/opt/ruby-1.9.3-p125':
configure: error: C compiler cannot create executables
See `config.log' for more details
As is obvious by above, I am trying to compile the Ruby source code. I did some research but doesn't look like anybody has attempted compiling the code themselves on Lion. I am currently running 10.7.3 OS X Lion, Macbook Pro.
回答1:
If you have Xcode 4.3+, did you install the command-line tools? You can download them from within Xcode's preference pane, or from here.
来源:https://stackoverflow.com/questions/9812505/why-am-i-getting-a-c-compiler-cannot-create-executables-successfully-written