最近项目需要,在 mac 下折腾 rails,按照http://gorails.com/setup/osx/10.9-mavericks安装到rbenv install 2.1.0-dev
一步 出现
Cloning https://github.com/ruby/ruby.git...
Installing ruby-2.1.0-dev...
BUILD FAILED
Inspect or clean up the working tree at /var/folders/q4/fd_8w2vd4lx9p9k5gyjlvtfm0000gn/T/ruby-build.20140219100050.46383
Results logged to /var/folders/q4/fd_8w2vd4lx9p9k5gyjlvtfm0000gn/T/ruby-build.20140219100050.46383.log
Last 10 log lines:
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for cd using physical directory... cd -P
checking whether CFLAGS is valid... yes
checking whether LDFLAGS is valid... no
configure: error: something wrong with LDFLAGS="-L'/Users/apple/.rbenv/versions/2.1.0-dev/lib' "
BUILD FAILED
Inspect or clean up the working tree at /var/folders/q4/fd_8w2vd4lx9p9k5gyjlvtfm0000gn/T/ruby-build.20140219100050.46383
Results logged to /var/folders/q4/fd_8w2vd4lx9p9k5gyjlvtfm0000gn/T/ruby-build.20140219100050.46383.log
Last 10 log lines:
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for cd using physical directory... cd -P
checking whether CFLAGS is valid... yes
checking whether LDFLAGS is valid... no
configure: error: something wrong with LDFLAGS="-L'/Users/apple/.rbenv/versions/2.1.0-dev/lib' "
make: *** No targets specified and no makefile found. Stop.```
已经安装好:xcode 和 xcode的command line。