我的最终目标是安装当前版本的
Ruby on Rails.我在OS X Mountain Lion上运行.到目前为止,这是我的流程:
已安装的RVM
$\curl -L https://get.rvm.io | bash -s stable
检查已知(并且我认为已批准)安装
$rvm list kNown
我看到目前稳定的版本可用
[ruby-]2.0.0[-p247]
键入安装命令
$rvm install 2.0.0-p247
注意:我也尝试过这些安装命令
$rvm install ruby-2.0.0-p247 $rvm install ruby=2.0.0-p247
我无处可去.结果:
$rvm install 2.0.0-p247 Searching for binary rubies,this might take some time. No binary rubies available for: osx/10.8/x86_64/ruby-2.0.0-p247. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. Installing requirements for osx,might require sudo password. Certificates in '/usr/local/etc/openssl/cert.pem' already are up to date. Requirements installation successful. Installing Ruby from source to: /Users/xxxxx/.rvm/rubies/ruby-2.0.0-p247,this may take a while depending on your cpu(s)... ruby-2.0.0-p247 - #downloading ruby-2.0.0-p247,this may take a while depending on your connection... ruby-2.0.0-p247 - #extracted to /Users/xxxxx/.rvm/src/ruby-2.0.0-p247 (already extracted) ruby-2.0.0-p247 - #configuring........ Error running './configure --prefix=/Users/xxxxx/.rvm/rubies/ruby-2.0.0-p247 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libksba:/usr/local/opt/openssl --disable-install-doc --without-tcl --without-tk --enable-shared',please read /Users/xxxxx/.rvm/log/ruby-2.0.0-p247/1375141206_configure.log There has been an error while running configure. Halting the installation.
我也在调试模式下运行此命令.为避免混乱,您可以访问它here.
此外,这是日志:
./configure current path: /Users/xxxxx/.rvm/src/ruby-2.0.0-p247 command(7): ./configure --prefix=/Users/xxxxx/.rvm/rubies/ruby-2.0.0-p247 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libksba:/usr/local/opt/openssl --disable-install-doc --without-tcl --without-tk --enable-shared configure: WARNING: unrecognized options: --without-tcl,--without-tk checking build system type... x86_64-apple-darwin12.2.1 checking host system type... x86_64-apple-darwin12.2.1 checking target system type... x86_64-apple-darwin12.2.1 checking whether the C compiler works... no configure: error: in `/Users/xxxxx/.rvm/src/ruby-2.0.0-p247': configure: error: C compiler cannot create executables See `config.log' for more details
这是我第一次通过RVM安装. $rvm list不返回任何宝石.
请询问是否有任何其他信息可能有所帮助.
编辑 – HERE是可以帮助任何人的日志.
解决方法
我的Xcode或我的命令行工具安装肯定有问题.重新安装两者使一切运行得很漂亮.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。