2012-10-10 48 views
5

我是一个单独的机器上做一些修改,以我的应用程序,我部署到生产在Heroku上造成一些错误,现在我的全部上收到一堆错误的突然的我主机。麻烦安装Ruby 1.9.3-P194

根据命令行,我的问题是,我没有安装红宝石1.9.3-P194做。我不知道我能做些什么来解决这个问题。

$ rvm install ruby-1.9.3-p194 
No binary rubies available for: osx/10.7/x86_64/ruby-1.9.3-p194. 
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. 

Installing Ruby from source to: /Users/glider/.rvm/rubies/ruby-1.9.3-p194, this may take a while depending on your cpu(s)... 
ruby-1.9.3-p194 - #downloading ruby-1.9.3-p194, this may take a while depending on your connection... 
ruby-1.9.3-p194 - #extracted to /Users/glider/.rvm/src/ruby-1.9.3-p194 (already extracted) 
ruby-1.9.3-p194 - #configuring 
Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include -L/Users/glider/.rvm/usr/lib ./configure --enable-shared --disable-install-doc --prefix=/Users/glider/.rvm/rubies/ruby-1.9.3-p194', 
please read /Users/glider/.rvm/log/ruby-1.9.3-p194/configure.log 
There has been an error while running configure. Halting the installation. 
+1

请尽量熟悉的格式化工具,让您可以直观地改善你的问题。我做了一个单独的编辑来演示它。 – hakre

+0

该错误告诉你阅读一个文件,做一个它的要点,并包含一个链接。 – mpapis

+0

这是相关的:http://stackoverflow.com/questions/12878458/rvm-install-ruby-1-9-3-p286-error-running-make-j-9-osx-mountain-lion? – Alexey

回答

0

这将有助于看到你在说什么其他错误,但我也建议你重新安装RVM,每:https://stackoverflow.com/a/12851198/1019369

我最近买了一台新机器,并有一堆的RVM我带来了所有数据的问题。卸载和重新安装RVM的确有窍门。

0

我不得不用RVM安装Ruby 1.9.3类似的问题。我原来使用Rails安装程序安装了ruby和rails。这个神奇的软件使用SM框架来管理ruby和rails所需的所有本地库。它通过修改LDFLAGS和CFLAGS来完成。

你可以看到,从您的错误运行。

我从OSX

移除SM
rm -rf /opt/sm 
rm /etc/rvmrc 
rm /etc/profile.d/sm.sh 

也删除文件/ etc/profile文件线,源sm.sh,你都整齐的.bashrc,.bash_profile中,.zshrc等。

解决了这个问题

然后试试rvm install ruby​​ .. Voila !!工作

5

如果使用railsinstaller.org安装导轨,有在/ etc/rvmrc的错误。打开该文件并将rvm_configure_env定义的单个字符串更改为三个单独的字符串。

这是默认的代码的bug:

rvm_configure_env=('LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include') 

这是纠正代码:

rvm_configure_env=('LDFLAGS=-L/opt/sm/pkg/active/lib' 'CFLAGS=-I/opt/sm/pkg/active/include' 'CPATH=/opt/sm/pkg/active/include') 
+0

谢谢,刚刚有同样的问题,这解决了它。快速简单! :) –