Last active
August 29, 2015 14:12
-
-
Save baboocon/5a322ae39851562ca424 to your computer and use it in GitHub Desktop.
Ruby 2.2.0をrbenvとruby-buildでインストール ref: http://qiita.com/baboocon/items/fb81946fc088b18d6a3a
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% git pull origin master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% rbenv rehash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% rbenv install -l |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rbenv install 2.2.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% rbenv install 2.2.0 | |
Downloading ruby-2.2.0.tar.gz... | |
-> http://dqw8nmjcqpjn7.cloudfront.net/7671e394abfb5d262fbcd3b27a71bf78737c7e9347fa21c39e58b0bb9c4840fc | |
Installing ruby-2.2.0... | |
BUILD FAILED (Ubuntu 14.04 using ruby-build 20140524-150-gbe7d096) | |
Inspect or clean up the working tree at /tmp/ruby-build.20141226005210.7528 | |
Results logged to /tmp/ruby-build.20141226005210.7528.log | |
Last 10 log lines: | |
make[1]: *** 未完了のジョブを待っています.... | |
installing default date_core libraries | |
installing default nkf libraries | |
make[2]: ディレクトリ `/tmp/ruby-build.20141226005210.7528/ruby-2.2.0/ext/objspace' から出ます | |
linking shared-object nkf.so | |
make[2]: ディレクトリ `/tmp/ruby-build.20141226005210.7528/ruby-2.2.0/ext/nkf' から出ます | |
linking shared-object date_core.so | |
make[2]: ディレクトリ `/tmp/ruby-build.20141226005210.7528/ruby-2.2.0/ext/date' から出ます | |
make[1]: ディレクトリ `/tmp/ruby-build.20141226005210.7528/ruby-2.2.0' から出ます | |
make: *** [build-ext] エラー 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(前略) | |
linking shared-object objspace.so | |
/usr/bin/ld: ./libffi-3.2.1/.libs/libffi.a(raw_api.o): 再配置 R_X86_64_32S (`.rodata' に対する) は共有オブジェクト作成時には使用できません。-fPIC を付けて再コンパイルしてください。 | |
./libffi-3.2.1/.libs/libffi.a: error adding symbols: 不正な値です | |
collect2: error: ld returned 1 exit status | |
make[2]: *** [../../.ext/x86_64-linux/fiddle.so] エラー 1 | |
make[2]: ディレクトリ `/tmp/ruby-build.20141226005210.7528/ruby-2.2.0/ext/fiddle' から出ます | |
make[1]: *** [ext/fiddle/all] エラー 2 | |
make[1]: *** 未完了のジョブを待っています.... | |
installing default date_core libraries | |
installing default nkf libraries | |
make[2]: ディレクトリ `/tmp/ruby-build.20141226005210.7528/ruby-2.2.0/ext/objspace' から出ます | |
linking shared-object nkf.so | |
make[2]: ディレクトリ `/tmp/ruby-build.20141226005210.7528/ruby-2.2.0/ext/nkf' から出ます | |
linking shared-object date_core.so | |
make[2]: ディレクトリ `/tmp/ruby-build.20141226005210.7528/ruby-2.2.0/ext/date' から出ます | |
make[1]: ディレクトリ `/tmp/ruby-build.20141226005210.7528/ruby-2.2.0' から出ます | |
make: *** [build-ext] エラー 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% sudo apt-get install libffi-dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% rbenv install 2.2.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% rbenv versions | |
... | |
... | |
2.2.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% rbenv global 2.2.0 | |
% ruby -v | |
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment