我重新安装红宝石的正确说明这次 但我搞砸了如何更新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
这个路径有问题吗?
读取错误消息。它说看看/usr/local/rvm/log/ruby-1.9.3-p374/configure.log – rubiii 2013-02-24 13:23:13
是什么让你觉得这是一个路径问题? – bdares 2013-02-24 13:25:22
我完全是一个新手.. 因为我正在按照这个教程在林达..和家伙问我更新路径..但它没有工作.. SQL的东西.. 所以我认为路径有被搞砸了 更新:所以我们rvm被安装。 我用sudo gem install rails ..现在安装rails。 – Fawad 2013-02-24 20:34:39