1

I am trying to install Ruby on Rails using https://www.digitalocean.com/community/articles/how-to-install-ruby-on-rails-on-ubuntu-12-04-lts-precise-pangolin-with-rvm tutorial, but when I get to the part where I need to install Ruby 1.9.3 it always display this error message.

Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/12.04/i386/ruby-1.9.3-p385.
Continuing with compilation. Please read 'rvm mount' to get more information on binary     rubies.
Installing Ruby from source to: /home/eldin/.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 - #extracted to /home/eldin/.rvm/src/ruby-1.9.3-p385 (already extracted)
ruby-1.9.3-p385 - #configuring
ruby-1.9.3-p385 - #compiling
Error running 'make', please read /home/eldin/.rvm/log/ruby-1.9.3-p385/make.log
There has been an error while running make. Halting the installation.

I can not use Ruby interpretor, so Ruby is not installed.

I am using Ubuntu OS.

EDIT:

/home/eldin/.rvm/log/ruby-1.9.3-p385/make.log

Content of make.log

CC = gcc
LD = ld
LDSHARED = gcc -shared
CFLAGS = -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration  -fPIC 
XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS =   -I/home/eldin/.rvm/usr/include -I. -I.ext/include/i686-linux -I./include -I.
DLDFLAGS = -Wl,-soname,libruby.so.1.9  
SOLIBS = -lpthread -lrt -ldl -lcrypt -lm  
linking miniruby
vm.o: file not recognized: File truncated
collect2: ld returned 1 exit status
make: *** [miniruby] Error 1
4

2 回答 2

1

我关注了:http ://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/

它在第一次运行时就像一个魅力。尝试按照本博客中提到的步骤进行操作。

于 2013-02-12T13:24:41.027 回答
0

我已经使用 rvm reinstall 1.9.3 安装了 ruby​​ 1.9.3,现在它可以正常工作了。

于 2013-02-12T14:16:25.407 回答