使用RVM安装ruby 1.9.2-p320时出错

时间:2013-02-01 09:03:41

标签: rvm fedora ruby-1.9.2

我在x86-64架构上运行Fedora 18。我可以使用RVM安装Ruby 1.9.3。但是,当我尝试安装Ruby 1.9.2时,它会给我以下错误:

ruby-1.9.2-p320 - #extracting ruby-1.9.2-p320 to /home/abhay/.rvm/src/ruby-1.9.2-p320
ruby-1.9.2-p320 - #extracted to /home/abhay/.rvm/src/ruby-1.9.2-p320
ruby-1.9.2-p320 - #configuring
ruby-1.9.2-p320 - #compiling
Error running 'make', please read /home/abhay/.rvm/log/ruby-1.9.2-p320/make.log
There has been an error while running make. Halting the installation.

以下是make.log文件的内容:

compiling bigdecimal
make[1]: Entering directory `/home/abhay/.rvm/src/ruby-1.9.2-p320/ext/bigdecimal'
gcc -I. -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/bigdecimal -DRUBY_EXTCONF_H=\"extconf.h\" -I/home/abhay/.rvm/usr/include    -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC  -o bigdecimal.o -c bigdecimal.c
gcc -shared -o ../../.ext/x86_64-linux/bigdecimal.so bigdecimal.o -L. -L../.. -L/home/abhay/.rvm/usr/lib -Wl,-R/home/abhay/.rvm/usr/lib -L.  -rdynamic -Wl,-export-dynamic   -Wl,-R -Wl,/home/abhay/.rvm/rubies/ruby-1.9.2-p320/lib -L/home/abhay/.rvm/rubies/ruby-1.9.2-p320/lib -lruby  -lpthread -lrt -ldl -lcrypt -lm   -lc
/usr/bin/mkdir -p ../../.ext/common/bigdecimal
cp ../.././ext/bigdecimal/lib/bigdecimal/newton.rb ../../.ext/common/bigdecimal
cp ../.././ext/bigdecimal/lib/bigdecimal/math.rb ../../.ext/common/bigdecimal
cp ../.././ext/bigdecimal/lib/bigdecimal/jacobian.rb ../../.ext/common/bigdecimal
cp ../.././ext/bigdecimal/lib/bigdecimal/ludcmp.rb ../../.ext/common/bigdecimal
cp ../.././ext/bigdecimal/lib/bigdecimal/util.rb ../../.ext/common/bigdecimal
make[1]: Leaving directory `/home/abhay/.rvm/src/ruby-1.9.2-p320/ext/bigdecimal'
compiling continuation
make[1]: Entering directory `/home/abhay/.rvm/src/ruby-1.9.2-p320/ext/continuation'
gcc -I. -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/continuation -DRUBY_EXTCONF_H=\"extconf.h\" -I/home/abhay/.rvm/usr/include    -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC  -o continuation.o -c continuation.c
gcc -shared -o ../../.ext/x86_64-linux/continuation.so continuation.o -L. -L../.. -L/home/abhay/.rvm/usr/lib -Wl,-R/home/abhay/.rvm/usr/lib -L.  -rdynamic -Wl,-export-dynamic   -Wl,-R -Wl,/home/abhay/.rvm/rubies/ruby-1.9.2-p320/lib -L/home/abhay/.rvm/rubies/ruby-1.9.2-p320/lib -lruby  -lpthread -lrt -ldl -lcrypt -lm   -lc
make[1]: Leaving directory `/home/abhay/.rvm/src/ruby-1.9.2-p320/ext/continuation'
compiling coverage
make[1]: Entering directory `/home/abhay/.rvm/src/ruby-1.9.2-p320/ext/coverage'
gcc -I. -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/coverage -DRUBY_EXTCONF_H=\"extconf.h\" -I/home/abhay/.rvm/usr/include    -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC  -o coverage.o -c coverage.c
gcc -shared -o ../../.ext/x86_64-linux/coverage.so coverage.o -L. -L../.. -L/home/abhay/.rvm/usr/lib -Wl,-R/home/abhay/.rvm/usr/lib -L.  -rdynamic -Wl,-export-dynamic   -Wl,-R -Wl,/home/abhay/.rvm/rubies/ruby-1.9.2-p320/lib -L/home/abhay/.rvm/rubies/ruby-1.9.2-p320/lib -lruby  -lpthread -lrt -ldl -lcrypt -lm   -lc
make[1]: Leaving directory `/home/abhay/.rvm/src/ruby-1.9.2-p320/ext/coverage'
compiling curses
make[1]: Entering directory `/home/abhay/.rvm/src/ruby-1.9.2-p320/ext/curses'
gcc -I. -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/curses -DRUBY_EXTCONF_H=\"extconf.h\" -I/home/abhay/.rvm/usr/include    -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC  -o curses.o -c curses.c
gcc -shared -o ../../.ext/x86_64-linux/curses.so curses.o -L. -L../.. -L/home/abhay/.rvm/usr/lib -Wl,-R/home/abhay/.rvm/usr/lib -L.  -rdynamic -Wl,-export-dynamic   -Wl,-R -Wl,/home/abhay/.rvm/rubies/ruby-1.9.2-p320/lib -L/home/abhay/.rvm/rubies/ruby-1.9.2-p320/lib -lruby -lncursesw -ltinfo  -lpthread -lrt -ldl -lcrypt -lm   -lc
curses.o: file not recognized: File truncated
collect2: error: ld returned 1 exit status
make[1]: *** [../../.ext/x86_64-linux/curses.so] Error 1
make[1]: Leaving directory `/home/abhay/.rvm/src/ruby-1.9.2-p320/ext/curses'
make: *** [mkmain.sh] Error 1

任何人都可以告诉我我做错了什么。

0 个答案:

没有答案