2013-03-31 68 views
0

我试图重新安装红宝石,但出现错误。我已经包含了下面的错误和日志。使用RVM重新安装Ruby时出错

错误:

rvm install ruby-1.9.3-p362 
Searching for binary rubies, this might take some time. 
No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p362. 
Continuing with compilation. Please read 'rvm mount' to get more information on binary  rubies. 
Installing requirements for osx, might require sudo password. 
Already up-to-date. 
Installing required packages: libtool, libyaml, libxml2, libxslt, libksba, openssl, sqlite............ 
Error running 'requirements_brew_libs_install libtool libyaml libxml2 libxslt libksba openssl sqlite', 
please read /Users/Henry/.rvm/log/ruby-1.9.3-p362/package_install_libtool_libyaml_libxml2_libxslt_libksba_openssl_sqlite.log 
There were package installation errors, make sure to read the log. 
Check Homebrew requirements https://github.com/mxcl/homebrew/wiki/Installation 

日志文件:

cat package_install_libtool_libyaml_libxml2_libxslt_libksba_openssl_sqlite.log 
[2013-03-30 21:07:08] requirements_brew_libs_install 
==> Downloading http://ftpmirror.gnu.org/libtool/libtool-2.4.2.tar.gz 
Already downloaded: /Library/Caches/Homebrew/libtool-2.4.2.tar.gz 
==> ./configure --prefix=/usr/local/Cellar/libtool/2.4.2 --program-prefix=g --enable- ltdl-install 
checking whether make sets $(MAKE)... ./configure: /usr/local/Library/ENV/4.3/sed: /bin/bash^M: bad interpreter: No such file or directory 
no 
configure: error: cannot run /bin/sh libltdl/config/config.sub 
./configure: /usr/local/Library/ENV/4.3/sed: /bin/bash^M: bad interpreter: No such file or directory 
./configure: /usr/local/Library/ENV/4.3/sed: /bin/bash^M: bad interpreter: No such file or directory 

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting 

回答

1

它看起来像你正在使用的sed =>/usr/local/Library/ENV/4.3/sed一个定制版本,它打破家当/bin/bash^M - 无论是使用原生OSX工具或确保您提供的工具按预期工作。

+0

感谢您的帮助! – Henry