【问题标题】:Trying to get rvm to work, but getting error running试图让 rvm 工作,但运行时出错
【发布时间】:2013-02-12 05:36:11
【问题描述】:

运行 rvm reinstall 1.9.3 时出现以下错误,我按照一些建议删除了下面的这些文件和文件夹,现在即使在删除 rvm 并使用 curl 重新安装后我也没有它们,我该怎么办?我使用了 rails 安装程序,我认为这就是把整个事情搞砸的原因。我只想从头开始。

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

我在尝试安装 rvm reinstall 1.9.3 时也得到此输出

$ rvm reinstall 1.9.3
Removing /usr/local/rvm/src/ruby-1.9.3-p385...
Removing /usr/local/rvm/rubies/ruby-1.9.3-p385...
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p385.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Fetching yaml-0.1.4.tar.gz to /usr/local/rvm/archives
Extracting yaml to /usr/local/rvm/src/yaml-0.1.4
Configuring yaml in /usr/local/rvm/src/yaml-0.1.4.
Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure --prefix=/usr/local/rvm/usr --disable-shared', please read /usr/local/rvm/log/ruby-1.9.3-p385/yaml/configure.log
Compiling yaml in /usr/local/rvm/src/yaml-0.1.4.
Error running 'make', please read /usr/local/rvm/log/ruby-1.9.3-p385/yaml/make.log
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.9.3-p385, this may take a while depending on your cpu(s)...
ruby-1.9.3-p385 - #downloading ruby-1.9.3-p385, this may take a while depending on your connection...
ruby-1.9.3-p385 - #extracting ruby-1.9.3-p385 to /usr/local/rvm/src/ruby-1.9.3-p385
ruby-1.9.3-p385 - #extracted to /usr/local/rvm/src/ruby-1.9.3-p385
ruby-1.9.3-p385 - #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-p385 --with-opt-dir=/usr/local/rvm/usr --disable-shared', please read /usr/local/rvm/log/ruby-1.9.3-p385/configure.log
There has been an error while running configure. Halting the installation.

请帮助我解决这个问题。

make.log

[2013-02-11 21:27:46] make
make: *** No targets specified and no makefile found.  Stop.

【问题讨论】:

  • 检查/usr/local/rvm/log/ruby-1.9.3-p385/yaml/configure.log 的内容,如第一条错误消息所示。把它放在某个地方是个好主意;该文件可能很大。

标签: ruby terminal rvm


【解决方案1】:

删除文件后,您还需要打开新终端 - 如果没有帮助 - 重新启动计算机

【讨论】:

  • 我将选择这个作为接受的答案,但是我没有重新启动我只是恢复了我的机器,无论如何我都需要。
猜你喜欢
  • 1970-01-01
  • 2021-02-10
  • 2018-12-14
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-11-30
  • 2012-10-13
  • 1970-01-01
相关资源
最近更新 更多