新手问题 rvm install 2.0.0 安装报错

string2020 · 2014年09月22日 · 最后由 colorfulberry 回复于 2014年09月22日 · 5044 次阅读

ly@lypc:~$ rvm install 2.0.0 ruby-2.0.0-p576 - #removing src/ruby-2.0.0-p576.. Searching for binary rubies, this might take some time. No binary rubies available for: ubuntu/14.04/x86_64/ruby-2.0.0-p576. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. Checking requirements for ubuntu. Requirements installation successful. Installing Ruby from source to: /home/ly/.rvm/rubies/ruby-2.0.0-p576, this may take a while depending on your cpu(s)... ruby-2.0.0-p576 - #downloading ruby-2.0.0-p576, this may take a while depending on your connection... ruby-2.0.0-p576 - #extracting ruby-2.0.0-p576 to /home/ly/.rvm/src/ruby-2.0.0-p576.... ruby-2.0.0-p576 - #configuring.................................................. ruby-2.0.0-p576 - #post-configuration.. ruby-2.0.0-p576 - #compiling....................................................... Error running '__rvm_make -j4', showing last 15 lines of /home/ly/.rvm/log/1411349506_ruby-2.0.0-p576/make.log compiling rmd160.c installing default rmd160 libraries installing default bigdecimal libraries compiling date_core.c compiling date_parse.c linking shared-object digest/rmd160.so make[2]:正在离开目录 /home/ly/.rvm/src/ruby-2.0.0-p576/ext/digest/rmd160' installing default date_core libraries linking shared-object bigdecimal.so make[2]:正在离开目录/home/ly/.rvm/src/ruby-2.0.0-p576/ext/bigdecimal' linking shared-object date_core.so make[2]:正在离开目录 /home/ly/.rvm/src/ruby-2.0.0-p576/ext/date' make[1]:正在离开目录/home/ly/.rvm/src/ruby-2.0.0-p576' make: *** [build-ext] 错误 2 ++ return 2 There has been an error while running make. Halting the installation. ly@lypc:~$

试过了好多次,求指点

目测有编译环境没装吧。建议楼主编辑下格式...看着太痛苦了。

系统环境为:Ubuntu 14.04.1 LTS 开发工具已经安装了

安装日志:

make[2]:正在离开目录 `/home/ly/.rvm/src/ruby-2.0.0-p576/ext/digest/bubblebabble'
make[2]: 正在进入目录 `/home/ly/.rvm/src/ruby-2.0.0-p576/ext/digest/rmd160'
compiling rmd160init.c
/usr/bin/ld: /usr/local/lib/libcrypto.a(md5_dgst.o): relocation R_X86_64_PC32 against undefined 符号 `memcpy@@GLIBC_2.14' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: 最终连接失败: 错误的值
collect2: error: ld returned 1 exit status
make[2]: *** [../../../.ext/x86_64-linux/digest/md5.so] 错误 1
make[2]:正在离开目录 `/home/ly/.rvm/src/ruby-2.0.0-p576/ext/digest/md5'
make[1]: *** [ext/digest/md5/all] 错误 2
make[1]: *** 正在等待未完成的任务....
compiling rmd160.c
installing default rmd160 libraries
compiling date_core.c
compiling date_parse.c
linking shared-object digest/rmd160.so
make[2]:正在离开目录 `/home/ly/.rvm/src/ruby-2.0.0-p576/ext/digest/rmd160'
installing default date_core libraries
installing default bigdecimal libraries
linking shared-object bigdecimal.so
make[2]:正在离开目录 `/home/ly/.rvm/src/ruby-2.0.0-p576/ext/bigdecimal'
linking shared-object date_core.so
make[2]:正在离开目录 `/home/ly/.rvm/src/ruby-2.0.0-p576/ext/date'
make[1]:正在离开目录 `/home/ly/.rvm/src/ruby-2.0.0-p576'
make: *** [build-ext] 错误 2
++ return 2
ly@lypc:~$ rvm install 2.0.0
ruby-2.0.0-p576 - #removing src/ruby-2.0.0-p576..
Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/14.04/x86_64/ruby-2.0.0-p576.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for ubuntu.
Requirements installation successful.
Installing Ruby from source to: /home/ly/.rvm/rubies/ruby-2.0.0-p576, this may take a while depending on your cpu(s)...
ruby-2.0.0-p576 - #downloading ruby-2.0.0-p576, this may take a while depending on your connection...
ruby-2.0.0-p576 - #extracting ruby-2.0.0-p576 to /home/ly/.rvm/src/ruby-2.0.0-p576....
ruby-2.0.0-p576 - #configuring..................................................
ruby-2.0.0-p576 - #post-configuration..
ruby-2.0.0-p576 - #compiling.......................................................
Error running '__rvm_make -j4',
showing last 15 lines of /home/ly/.rvm/log/1411357870_ruby-2.0.0-p576/make.log
installing default bigdecimal libraries
compiling rmd160.c
installing default rmd160 libraries
compiling date_core.c
compiling date_parse.c
linking shared-object digest/rmd160.so
make[2]: Leaving directory `/home/ly/.rvm/src/ruby-2.0.0-p576/ext/digest/rmd160'
installing default date_core libraries
linking shared-object bigdecimal.so
make[2]: Leaving directory `/home/ly/.rvm/src/ruby-2.0.0-p576/ext/bigdecimal'
linking shared-object date_core.so
make[2]: Leaving directory `/home/ly/.rvm/src/ruby-2.0.0-p576/ext/date'
make[1]: Leaving directory `/home/ly/.rvm/src/ruby-2.0.0-p576'
make: *** [build-ext] Error 2
++ return 2
There has been an error while running make. Halting the installation.
ly@lypc:~$

@string2020 showing last 15 lines of /home/ly/.rvm/log/1411357870_ruby-2.0.0-p576/make.log 看看你这个里面怎么提示的呀!

#5 楼 @floger

安装日志在 3 楼

@string2020 查看你的 openssl 的版本。有可能是你 openssl 引起问题 md5 函数。

#7 楼 @floger OpenSSL 1.0.1f 6 Jan 2014

你更新下系统在执行吧。 我一般都这么执行 curl -sSL https://get.rvm.io | bash -s stable --ruby or curl -sSL https://get.rvm.io | bash -s stable --rails

#9 楼 @colorfulberry 不行,还是报错

可以安装 1.9.x 的 ruby,不能安装 2.x 的 ruby

#10 楼 @string2020 装 2.1.2 或 2.1.3

需要 登录 后方可回复, 如果你还没有账号请 注册新账号