Rvm Ruby Report: Error Running 'Make', Please Read /home/xxx/.rvm/log/ruby-1.9.3-p385/make.log

每次配置环境都会有惊喜的报错。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
john@john-Inspiron-N4050:~$ rvm install 1.9.3
Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/12.10/x86_64/ruby-1.9.3-p385.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing requirements for ubuntu/12.10/x86_64, might require sudo password
Updating repositories............................................................................................................
Installing required packages: libxslt-dev, ncurses-dev.
Installing Ruby from source to: /home/xxx/.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 /home/xxx/.rvm/src/ruby-1.9.3-p385
ruby-1.9.3-p385 - #extracted to /home/xxx/.rvm/src/ruby-1.9.3-p385
ruby-1.9.3-p385 - #configuring
ruby-1.9.3-p385 - #compiling
Error running 'make', please read /home/xxx/.rvm/log/ruby-1.9.3-p385/make.log
There has been an error while running make. Halting the installation.

解决方案如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
rvm get head
rvm requirements
rvm remove 1.9.3

$ rvm install ruby-1.9.3
Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/12.10/x86_64/ruby-1.9.3-p385.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing requirements for ubuntu/12.10/x86_64, might require sudo password
Updating repositories............................................................................................................
Installing required packages: libxslt-dev, ncurses-dev.
Installing Ruby from source to: /home/xxx/.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 /home/xxx/.rvm/src/ruby-1.9.3-p385
ruby-1.9.3-p385 - #extracted to /home/xxx/.rvm/src/ruby-1.9.3-p385
ruby-1.9.3-p385 - #configuring
ruby-1.9.3-p385 - #compiling
ruby-1.9.3-p385 - #installing 
Retrieving rubygems-1.8.25
Extracting rubygems-1.8.25 ...
Removing old Rubygems files...
Installing rubygems-1.8.25 for ruby-1.9.3-p385 ...
Installation of rubygems completed successfully.
Saving wrappers to '/home/xxx/.rvm/bin'.
ruby-1.9.3-p385 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
ruby-1.9.3-p385 - #importing default gemsets, this may take time ...
Install of ruby-1.9.3-p385 - #complete 

搞定收功!

参考:http://stackoverflow.com/questions/13115189/ruby-installation-issue-using-rvm

原文地址:http://dlj.bz/pv6nFT

Comments