在Arch Linux上安装带RVM单用户模式的ruby时出错
我刚刚通过推荐的安装脚本以单用户模式在ArchLinux x64上安装了RVM在Arch Linux上安装带RVM单用户模式的ruby时出错,ruby,rvm,Ruby,Rvm,我刚刚通过推荐的安装脚本以单用户模式在ArchLinux x64上安装了RVM curl-Lhttps://get.rvm.io |bash-s稳定 我还安装了rvm要求 然而,我在实际安装任何版本的ruby时遇到了问题。并获取以下错误: arch:~ % rvm install 1.9.3 No binary rubies available for: ///ruby-1.9.3-p194. Continuing with compilation. Please read 'rvm mount
curl-Lhttps://get.rvm.io |bash-s稳定
我还安装了rvm要求
然而,我在实际安装任何版本的ruby时遇到了问题。并获取以下错误:
arch:~ % rvm install 1.9.3
No binary rubies available for: ///ruby-1.9.3-p194.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Fetching yaml-0.1.4.tar.gz to /home/christopher/.rvm/archives
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 460k 100 460k 0 0 702k 0 --:--:-- --:--:-- --:--:-- 767k
Extracting yaml-0.1.4.tar.gz to /home/christopher/.rvm/src
Prepare yaml in /home/christopher/.rvm/src/yaml-0.1.4.
Configuring yaml in /home/christopher/.rvm/src/yaml-0.1.4.
Error running ' ./configure --prefix=/home/christopher/.rvm/usr ', please read /home/christopher/.rvm/log/ruby-1.9.3-p194/yaml/configure.log
Compiling yaml in /home/christopher/.rvm/src/yaml-0.1.4.
Error running 'make', please read /home/christopher/.rvm/log/ruby-1.9.3-p194/yaml/make.log
Please note that it's required to reinstall all rubies:
rvm reinstall all --force
Installing Ruby from source to: /home/christopher/.rvm/rubies/ruby-1.9.3-p194, this may take a while depending on your cpu(s)...
ruby-1.9.3-p194 - #downloading ruby-1.9.3-p194, this may take a while depending on your connection...
ruby-1.9.3-p194 - #extracting ruby-1.9.3-p194 to /home/christopher/.rvm/src/ruby-1.9.3-p194
ruby-1.9.3-p194 - #extracted to /home/christopher/.rvm/src/ruby-1.9.3-p194
Skipping configure step, 'configure' does not exist, did autoreconf not run successfully?
ruby-1.9.3-p194 - #compiling
Error running 'make', please read /home/christopher/.rvm/log/ruby-1.9.3-p194/make.log
There has been an error while running make. Halting the installation.
日志文件如下所示:
arch:~ % cat ~/.rvm/log/ruby-1.9.3-p194/yaml/configure.log
__rvm_log_command:32: permission denied:
arch:~ % cat ~/.rvm/log/ruby-1.9.3-p194/yaml/make.log
make: *** No targets specified and no makefile found. Stop.
arch:~ % cat ~/.rvm/log/ruby-1.9.3-p194/make.log
make: *** No targets specified and no makefile found. Stop.
我在两台运行MacOS10.6.8的机器上遇到了同样的问题
我可以通过手动将cd插入目录并运行./configure来修复yaml问题。例如:
$ cd /home/christopher/.rvm/src/yaml-0.1.4
$ ./configure --prefix=/home/christopher/.rvm/usr
在运行了几次“rvm安装1.9.3”之后,它选择了我所做的配置,并不再为yaml问题困扰我
我还可以将cd放入ruby目录,并对其进行配置和制作。例如:
$ /home/christopher/.rvm/src/ruby-1.9.3-p194
$ ./configure
$ make
$ make install
…然而,这并没有导致rvm将其拾取。我猜我遗漏了一些必要的命令行选项和标志
但考虑到我能做到这一点,在我看来这似乎是一个rvm错误。您是否尝试使用不同的用户运行rvm install
?只需询问,因为日志中有以下条目\uuu rvm\u log\u command:32:权限被拒绝
,这看起来安装程序无法写入日志文件(这可能会使其中一个脚本意外结束)Chris,我刚刚重新安装了最新的ArchLinuxx64版本,并且能够安装rvm+ruby 1.9.3而没有任何问题:S。现在似乎已经修复了:“rvm get head&&rvm install 1.9.3”。马厩的树枝坏了。