新手问题 rvm 安装 1.9.3 的错误信息 (已解决)

yfeng · 2012年01月19日 · 最后由 liurui12w 回复于 2019年09月03日 · 14313 次阅读

ruby-1.9.3-p0 - #configuring Error running ' ./configure --prefix=/Users/yfeng/.rvm/rubies/ruby-1.9.3-p0 --enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/yfeng/.rvm/usr ', please read /Users/yfeng/.rvm/log/ruby-1.9.3-p0/configure.log There has been an error while running configure. Halting the installation.

这什么错误啊..

please read /Users/yfeng/.rvm/log/ruby-1.9.3-p0/configure.log

通过 brew 安装了 libyaml 看了下 configure.log 提示 configure: WARNING: unrecognized options: --with-libyaml checking build system type... x86_64-apple-darwin11.2.0 checking host system type... x86_64-apple-darwin11.2.0 checking target system type... x86_64-apple-darwin11.2.0 checking whether the C compiler works... no configure: error: in `/Users/yfeng/.rvm/src/ruby-1.9.3-p0': configure: error: C compiler cannot create executables

奇怪...还要装啥呢??

是 xcode 4.2.1 么?

问题已经解决。 rvm install 1.9.3-p0 --with-gcc=clang 搞定。 但是运行 rvm use xx 后报 RVM is not a function, selecting rubies with 'rvm use ...' will not work.

需要退出终端,或执行 bash /etc/rvmrc 才行

rvm get latest rvm install 1.9.3 即可

您好,我在 Fedora14 下安装 Ruby 1.9.2 的时候,遇到下面的问题,不知您能否帮我解决以下。

  1. rvm install 1.9.2-p320 之后存在下述问题: [user@cloud-privacy 下载]$ rvm install ruby-1.9.2-p320 Searching for binary rubies, this might take some time. No binary rubies available for: fedora/14/i386/ruby-1.9.2-p320. Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. Installing requirements for fedora, might require sudo password. ccache: failed to create /var/cache/ccache/tmp (Permission denied) Installing Ruby from source to: /home/user/.rvm/rubies/ruby-1.9.2-p320, this may take a while depending on your cpu(s)... ruby-1.9.2-p320 - #downloading ruby-1.9.2-p320, this may take a while depending on your connection... ruby-1.9.2-p320 - #extracted to /home/user/.rvm/src/ruby-1.9.2-p320 (already extracted) ruby-1.9.2-p320 - #configuring........ Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-O3 -I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure --prefix=/home/user/.rvm/rubies/ruby-1.9.2-p320 --disable-install-doc --enable-shared', please read /home/user/.rvm/log/ruby-1.9.2-p320/1370654543_configure.log There has been an error while running configure. Halting the installation.

  2. /home/user/.rvm/log/ruby-1.9.2-p320/1370654543_configure.log的内容如下:1 hecking build system type... i686-pc-linux-gnu 2 checking host system type... i686-pc-linux-gnu 3 checking target system type... i686-pc-linux-gnu 4 checking for gcc... gcc 5 checking whether the C compiler works... no 6 configure: error: in /home/user/.rvm/src/ruby-1.9.2-p320': 7 configure: error: C compiler cannot create executables 8 Seeconfig.log' for more details

我在这个网上看到的,不知道跟你说的是不是一样的http://www.incomrecycle.com

mac 迁移也出现了这个问题

命令 sudo mv /usr/local/include /usr/local/include_old

就可以安装了

rvm install 2.5.0

需要 登录 后方可回复, 如果你还没有账号请 注册新账号