2013-02-24 61 views
0

我重新安装红宝石的正确说明这次 但我搞砸了如何更新ruby路径?

这个路径是什么,我得到这个错误

Last login: Sun Feb 24 02:06:37 on ttys000 
Fawads-MacBook-Pro:~ fawadnaseer$ rvm install 1.9.3 
Searching for binary rubies, this might take some time. 
No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p374. 
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. 
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.9.3-p374, this may take a while depending on your cpu(s)... 
ruby-1.9.3-p374 - #downloading ruby-1.9.3-p374, this may take a while depending on your connection... 
######################################################################## 100.0% 
ruby-1.9.3-p374 - #extracting ruby-1.9.3-p374 to /usr/local/rvm/src/ruby-1.9.3-p374 
ruby-1.9.3-p374 - #extracted to /usr/local/rvm/src/ruby-1.9.3-p374 
ruby-1.9.3-p374 - #configuring 
Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure --disable-install-doc --prefix=/usr/local/rvm/rubies/ruby-1.9.3-p374 --with-opt-dir=/usr/local/rvm/usr --disable-shared', please read /usr/local/rvm/log/ruby-1.9.3-p374/configure.log 
There has been an error while running configure. Halting the installation. 

Configure.log文件内容

这里configure.log文件 [2013-02-24 02:09:37] ./configure 当前路径:/usr/local/rvm/src/ruby-1.9.3-p374 命令(7):env LDFLAGS = -L/opt/sm/pkg/active/lib CFLAGS = -I/opt/sm/pkg/active/include CPATH =/opt/sm/pk g/active/include ./configure --disable-install-doc --prefix =/usr/local/rvm/rubies/ruby​​-1.9.3 -p374 --with-opt-dir =/usr/local/rvm/usr --disable-shared 检查编译系统类型... x86_64-apple-darwin12.2.1 检查主机系统类型... x86_64-apple-darwin12.2.1 检查目标系统类型... x86_64-apple-darwin12。 2.1 检查C编译器默认的输出文件名... 配置:错误:C编译器不能创建可执行文件

UPDATE:

玉家伙我已经安装了RVM 红宝石安装 个导轨安装

什么,当我把回声$ PATH

回声$ PATH /Users/fawadnaseer/.rvm/gems/ruby-1.9.3-p392/bin:/Users/fawadnaseer/.rvm/ gems/[email protected]/bin:/Users/fawadnaseer/.rvm/rubies/ruby-1.9.3-p392/bin:/Users/fawadnaseer/.rvm/bin:在/ usr/local/bin目录:/ usr/bin:/ bin:/ usr/sbin:/ sbin:/ opt/X11/bin

这个路径有问题吗?

+2

读取错误消息。它说看看/usr/local/rvm/log/ruby-1.9.3-p374/configure.log – rubiii 2013-02-24 13:23:13

+0

是什么让你觉得这是一个路径问题? – bdares 2013-02-24 13:25:22

+0

我完全是一个新手.. 因为我正在按照这个教程在林达..和家伙问我更新路径..但​​它没有工作.. SQL的东西.. 所以我认为路径有被搞砸了 更新:所以我们rvm被安装。 我用sudo gem install rails ..现在安装rails。 – Fawad 2013-02-24 20:34:39

回答

0

尝试使用,而不是默认的编译铿锵:

rvm install 1.9.3 --with-gcc=clang

+0

更新了我的问题,非常感谢您的回复! 我真的搞砸了 如果您知道珠宝盒,我会在MAC上安装珠宝盒。它设置RVM 和及红宝石太.. ,所以我已经安装了这个 伯纳德这就是我得到现在 “已经安装了Ruby-1.9.3-P392 要重新安装使用: RVM重装1.9。3“ 现在我用这个sudo gem install rails”现在安装rails“一分钟前它给了我错误:\ – Fawad 2013-02-24 20:32:58

+0

如果你已经安装了它,那么你可以调用:'rvm reinstall 1.9.3 --with- gcc = clang'。 – 2013-02-24 23:57:21

+0

谢谢你们! 现在一切都运行良好! – Fawad 2013-02-26 04:24:23