这次我正在使用正确的说明重新安装 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 current path: /usr/local/rvm/src/ruby-1.9.3-p374 command(7): 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 检查构建系统类型... x86_64-apple-darwin12 .2.1 检查主机系统类型... x86_64-apple-darwin12.2.1 检查目标系统类型... x86_64-apple-darwin12.2.1 检查 C 编译器默认输出文件名... 配置:错误:C 编译器无法创建可执行文件
更新:
好的,我已经安装了 RVM 安装了 Ruby 安装了 Rails
当我输入 echo $PATH 时会发生什么
echo $PATH /Users/fawadnaseer/.rvm/gems/ruby-1.9.3-p392/bin:/Users/fawadnaseer/.rvm/gems/ruby-1.9.3-p392@global/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
这条路有什么问题吗?