rvm ruby-2.0.0

プログラミング言語Ruby

概要

 状態:-  閲覧数:720  投稿日:2014-10-20  更新日:2014-10-20
RVM(Ruby Version Manager)でruby-2.0.0インストールに挑戦するも、うまくいかず
・rvm最新版を取得したら、無事インスール出来た

失敗履歴

 閲覧数:388 投稿日:2014-10-20 更新日:2014-10-20 
$ cd regexper/
ruby-2.0.0-p247 is not installed.
To install do: 'rvm install ruby-2.0.0-p247'


$ rvm install ruby-2.0.0-p247
Searching for binary rubies, this might take some time.
No binary rubies available for: centos/6.5/x86_64/ruby-2.0.0-p247.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing Ruby from source to: /home/dotinstall/.rvm/rubies/ruby-2.0.0-p247, this may take a while depending on your cpu(s)...
ruby-2.0.0-p247 - #downloading ruby-2.0.0-p247, this may take a while depending on your connection...
There is no checksum for 'http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.bz2' or 'ruby-2.0.0-p247.tar.bz2', it's not possible to validate it.
If you wish to continue with unverified download add '--verify-downloads 1' after the command.

There has been an error fetching the ruby interpreter. Halting the installation.


インストール可能なRubyの一覧を確認
・「centos/6.5/x86_64」では下記コマンドではないらしい
$ rvm list -r
# No remote rubies available for centos/6.5/x86_64.
# Check 'rvm list known' for what can be installed.


インストールされているバージョンを確認
$ rvm list
rvm rubies

=* ruby-1.9.3-p392 [ x86_64 ]

# => - current
# =* - current && default
#  * - default


$ ruby -v
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-linux]


$ rvm install 2.0.0
Searching for binary rubies, this might take some time.
No binary rubies available for: centos/6.5/x86_64/ruby-2.0.0-p0.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing Ruby from source to: /home/★★/.rvm/rubies/ruby-2.0.0-p0, this may take a while depending on your cpu(s)...
ruby-2.0.0-p0 - #downloading ruby-2.0.0-p0, this may take a while depending on your connection...
######################################################################## 100.0%
ruby-2.0.0-p0 - #extracting ruby-2.0.0-p0 to /home/dotinstall/.rvm/src/ruby-2.0.0-p0
ruby-2.0.0-p0 - #extracted to /home/dotinstall/.rvm/src/ruby-2.0.0-p0
ruby-2.0.0-p0 - #configuring
ruby-2.0.0-p0 - #compiling
Error running 'make', please read /home/★★/.rvm/log/ruby-2.0.0-p0/make.log
There has been an error while running make. Halting the installation.


▼/home/★★/.rvm/log/ruby-2.0.0-p0/make.log
ossl_pkey_ec.c: In function ‘ossl_ec_group_initialize’:
ossl_pkey_ec.c:766: 警告: implicit declaration of function ‘EC_GF2m_simple_method’
ossl_pkey_ec.c:766: 警告: assignment makes pointer from integer without a cast
ossl_pkey_ec.c:821: error: ‘EC_GROUP_new_curve_GF2m’ undeclared (first use in this function)
ossl_pkey_ec.c:821: error: (Each undeclared identifier is reported only once
ossl_pkey_ec.c:821: error: for each function it appears in.)
make[2]: *** [ossl_pkey_ec.o] エラー 1
make[2]: ディレクトリ `/home/★★/.rvm/src/ruby-2.0.0-p0/ext/openssl' から出ます
make[1]: *** [ext/openssl/all] エラー 2
make[1]: ディレクトリ `/home/★★/.rvm/src/ruby-2.0.0-p0' から出ます
make: *** [build-ext] エラー 2


インストール可能なRubyの一覧を確認
$ rvm list known
# MRI Rubies
[ruby-]1.8.6[-p420]
[ruby-]1.8.7[-p371]
[ruby-]1.9.1[-p431]
[ruby-]1.9.2[-p320]
[ruby-]1.9.3-p125
[ruby-]1.9.3-p194
[ruby-]1.9.3-p286
[ruby-]1.9.3-p327
[ruby-]1.9.3-p362
[ruby-]1.9.3-p374
[ruby-]1.9.3-p385
[ruby-]1.9.3-[p392]
[ruby-]1.9.3-head
[ruby-]2.0.0-rc1
[ruby-]2.0.0-rc2
[ruby-]2.0.0[-p0]
ruby-head

# GoRuby
goruby

# TheCodeShop - MRI experimental patches
tcs

# jamesgolick - All around gangster
jamesgolick

# Minimalistic ruby implementation - ISO 30170:2012
mruby[-head]

# JRuby
jruby-1.2.0
jruby-1.3.1
jruby-1.4.0
jruby-1.6.5.1
jruby-1.6.6
jruby-1.6.7.2
jruby-1.6.8
jruby[-1.7.3]
jruby-head

# Rubinius
rbx-1.0.1
rbx-1.1.1
rbx-1.2.3
rbx-1.2.4
rbx[-head]
rbx-2.0.testing
rbx-2.0.0-rc1

# Ruby Enterprise Edition
ree-1.8.6
ree[-1.8.7][-2012.02]

# Kiji
kiji

# MagLev
maglev[-head]
maglev-1.0.0

# Mac OS X Snow Leopard Or Newer
macruby-0.10
macruby-0.11
macruby[-0.12]
macruby-nightly
macruby-head

# Opal
opal

# IronRuby
ironruby[-1.1.3]
ironruby-head


$ rvm install ruby-2.0.0-p247 --verify-downloads 1
Searching for binary rubies, this might take some time.
No binary rubies available for: centos/6.5/x86_64/ruby-2.0.0-p247.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing Ruby from source to: /home/★★/.rvm/rubies/ruby-2.0.0-p247, this may take a while depending on your cpu(s)...
ruby-2.0.0-p247 - #downloading ruby-2.0.0-p247, this may take a while depending on your connection...
######################################################################## 100.0%
No checksum for downloaded archive, recording checksum in user configuration.
ruby-2.0.0-p247 - #extracting ruby-2.0.0-p247 to /home/★★/.rvm/src/ruby-2.0.0-p247
ruby-2.0.0-p247 - #extracted to /home/★★/.rvm/src/ruby-2.0.0-p247
ruby-2.0.0-p247 - #configuring
ruby-2.0.0-p247 - #compiling
Error running 'make', please read /home/★★/.rvm/log/ruby-2.0.0-p247/make.log
There has been an error while running make. Halting the installation.


$ rvm install ruby-2.0.0-p353 --verify-downloads 1
Searching for binary rubies, this might take some time.
No binary rubies available for: centos/6.5/x86_64/ruby-2.0.0-p353.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing Ruby from source to: /home/★★/.rvm/rubies/ruby-2.0.0-p353, this may take a while depending on your cpu(s)...
ruby-2.0.0-p353 - #downloading ruby-2.0.0-p353, this may take a while depending on your connection...
######################################################################## 100.0%
No checksum for downloaded archive, recording checksum in user configuration.
ruby-2.0.0-p353 - #extracting ruby-2.0.0-p353 to /home/★★/.rvm/src/ruby-2.0.0-p353
ruby-2.0.0-p353 - #extracted to /home/★★/.rvm/src/ruby-2.0.0-p353
ruby-2.0.0-p353 - #configuring
ruby-2.0.0-p353 - #compiling
ruby-2.0.0-p353 - #installing
Retrieving rubygems-2.0.14
######################################################################## 100.0%
No checksum for downloaded archive, recording checksum in user configuration.
Extracting rubygems-2.0.14 ...
Removing old Rubygems files...
Installing rubygems-2.0.14 for ruby-2.0.0-p353 ...
Installation of rubygems completed successfully.
Saving wrappers to '/home/★★/.rvm/bin'.
ruby-2.0.0-p353 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
ruby-2.0.0-p353 - #importing default gemsets, this may take time ...
Install of ruby-2.0.0-p353 - #complete


$ ruby -v
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-linux]


$ sudo -s
[sudo] password for ★★: 


# service httpd configtest
Syntax OK


# service httpd restart

# ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]


# exit
exit


$ ruby -v
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-linux]


ようやく成功

 閲覧数:353 投稿日:2014-10-20 更新日:2014-10-20 
rvm最新版を取得
$ rvm get latest
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                Dload  Upload   Total   Spent    Left  Speed
100 20819  100 20819    0     0  17317      0  0:00:01  0:00:01 --:--:-- 17317
Downloading https://github.com/wayneeseguin/rvm/archive/1.25.33.tar.gz

Upgrading the RVM installation in /home/★★/.rvm/
   RVM PATH line found in /home/★★/.bashrc /home/★★/.zshrc.
   RVM sourcing line found in /home/★★/.bash_profile /home/★★/.zprofile.
   Migrating environment ruby-1.9.3-p392 to use with 'gem-wrappers' gem.
   Migrating environment ruby-1.9.3-p392@global to use with 'gem-wrappers' gem.
   Migrating environment ruby-2.0.0-p353 to use with 'gem-wrappers' gem.
   Migrating environment ruby-2.0.0-p353@global to use with 'gem-wrappers' gem.
   Migrating wrappers ruby-1.9.3-p392 to use with 'gem-wrappers' gem.
   Migrating wrappers ruby-1.9.3-p392@global to use with 'gem-wrappers' gem.
   Migrating wrappers ruby-2.0.0-p353 to use with 'gem-wrappers' gem.
   Migrating wrappers ruby-2.0.0-p353@global to use with 'gem-wrappers' gem.
   Installing gem-wrappers gem in 2 gemsets.
   Updating libyaml in /home/★★/.rvm/usr to version 0.1.6, see https://github.com/wayneeseguin/rvm/issues/2594 ..............................................................................................
Upgrade of RVM in /home/★★/.rvm/ is complete.

# ★★,
#
#   Thank you for using RVM!
#   We sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne, Michal & team.

In case of problems: http://rvm.io/help and https://twitter.com/rvm_io

Upgrade Notes:

 * It looks like some old stuff is laying around RVM, you can cleanup with: rvm cleanup all

 * Zsh 4.3.15 is buggy, be careful with it, it can break RVM, especially multiuser installations,
   You should consider downgrading Zsh to 4.3.12 which has proven to work more reliable with RVM.
 * RVM comes with a set of default gems including 'bundler', 'rake', 'rubygems-bundler' and 'rvm' gems;
   if you do not wish to get these gems, install RVM with this flag: --without-gems="rvm rubygems-bundler"
   this option is remembered, it's enough to use it once.

 * RVM will try to automatically use available package manager, might require `sudo`,
   read more about it in `rvm help autolibs`

 * If you encounter any issues with a ruby 'X' your best bet is to:
     rvm get head && rvm reinstall X --debug

 * RVM will run 'rvm requirements' by default, to disable run:
     echo rvm_autolibs_flag=0 >> ~/.rvmrc

 * RVM 1.20.12 removes the automated --progress-bar from curl options,
   if you liked this then you can restore this behavior with:

     echo progress-bar >> ~/.curlrc

 * RVM will set first installed ruby as default and use it if run as function.
   To avoid this behavior either use full path to rvm binary or prefix it with `command `.

 * To update RVM loading code run 'rvm get ... --auto-dotfiles'

 * RVM 1.20 changes default behavior of Autolibs to Enabled - if you prefer the 1.19 behavior
   then run "rvm autolibs read-fail", read more details: rvm help autolibs

 * RVM 1.24 changes default package manager on OSX to Homebrew,
   use `rvm autolibs macports` if you prefer Macports.

 * RVM 1.24 changes default `--verify-downloads` flag to `1` you can get the paranoid mode again with:

     echo rvm_verify_downloads_flag=0 >> ~/.rvmrc

 * RVM 1.25 disables default pollution of rvm_path/bin, you still can generate the links using:

     rvm wrapper ruby-name           # or for default:
     rvm wrapper default --no-prefix

 * RVM 1.25.11 'rvm remove' will by default remove gems, to remove only ruby use 'rvm uninstall'


RVM reloaded!


$ rvm install ruby-2.0.0-p247
ruby-2.0.0-p247 - #removing src/ruby-2.0.0-p247..
Searching for binary rubies, this might take some time.
Found remote file https://rvm.io/binaries/centos/6/x86_64/ruby-2.0.0-p247.tar.bz2
Checking requirements for centos.
Installing requirements for centos.
Updating system.
Installing required packages: libyaml-devel, libffi-devel, readline-devel..★★ password required for 'yum install -y libyaml-devel libffi-devel readline-devel':
.......
Requirements installation successful.
ruby-2.0.0-p247 - #configure
ruby-2.0.0-p247 - #download
 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                Dload  Upload   Total   Spent    Left  Speed
100 17.5M  100 17.5M    0     0   323k      0  0:00:55  0:00:55 --:--:--  166k
ruby-2.0.0-p247 - #validate archive
ruby-2.0.0-p247 - #extract
ruby-2.0.0-p247 - #validate binary
ruby-2.0.0-p247 - #setup
mkdir: ディレクトリ `/home/★★/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0' を作成できません: ファイルが存在します
ruby-2.0.0-p247 - #gemset created /home/★★/.rvm/gems/ruby-2.0.0-p247@global
ruby-2.0.0-p247 - #importing gemset /home/★★/.rvm/gemsets/global.gems...............................................................
ruby-2.0.0-p247 - #generating global wrappers........
ruby-2.0.0-p247 - #gemset created /home/★★/.rvm/gems/ruby-2.0.0-p247
ruby-2.0.0-p247 - #importing gemsetfile /home/★★/.rvm/gemsets/default.gems evaluated to empty gem list
ruby-2.0.0-p247 - #generating default wrappers........
[★★@www29330ue regexper]$ ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]


インストールされているバージョンを確認
$ rvm list
rvm rubies

* ruby-1.9.3-p392 [ x86_64 ]
=> ruby-2.0.0-p247 [ x86_64 ]
  ruby-2.0.0-p353 [ x86_64 ]

# => - current
# =* - current && default
#  * - default


デフォルトバージョン指定を、「1.9.3-p392」から「2.0.0-p247」へ切り替え
$ rvm use 2.0.0-p247 --default
Using /home/dotinstall/.rvm/gems/ruby-2.0.0-p247


デフォルトバージョンが切り替わったことを確認
$ rvm list
rvm rubies

  ruby-1.9.3-p392 [ x86_64 ]
=* ruby-2.0.0-p247 [ x86_64 ]
  ruby-2.0.0-p353 [ x86_64 ]

# => - current
# =* - current && default
#  * - default



申込→公開9.Railsアプリケーションを作成して、「Ruby on Rails」の動作確認をする



週間人気ページランキング / 9-16 → 9-22
順位 ページタイトル抜粋 アクセス数
1 Nginx設定。エラーログレベル | Nginx(Webサーバ) 19
2 PHP実行ユーザ設定 / CentOS6 / Apache | PHP(プログラミング言語) 14
3 PHPのmb_send_mail関数でメール送信できない | メール処理システム 13
4 9回目-13.MySQL5.7.21設定 | CentOS 7 2週間無料のお試し期間 9回目(さくらVPS) 12
5 touch コマンド / viコマンド。新規ファイル作成時の違い | Linuxコマンド 8
6 ソースからビルドしたPython 2.7.3 アンインストール失敗 | Python(プログラミング言語) 7
6 FFmpeg 2.8.15 を yum インストール | ソフトウェアスイート 7
6 「設定ファイルに、暗号化 (blowfish_secret) 用の非公開パスフレーズの設定を必要とするようになりました。」対応 7
6 Python 3.5 アンインストール / yum remove | Python(プログラミング言語) 7
6 manページ日本語表示 | CentOS 7 (CentOS) 7
6 PHPファイルでchmodエラー | PHP(プログラミング言語) 7
7 ABRT により 問題が検出されました | CentOS 7 (CentOS) 6
7 Python 3.6 インストール / make altinstall | Python(プログラミング言語) 6
7 さくらVPS0 6
8 Reached target Shutdown メッセージが表示されたあと、シャットダウンまたは再起動プロセスがハングアップする | CentOS 7 (CentOS) 5
9 PHP Version 7.1.2 php-mecabエクステンション対応 / PHP 7.0.14 からのアップグレード  | MeCab(形態素解析) 4
9 echo と cat の違い 4
9 phpMyAdmin 4.4.3(phpMyAdmin) カテゴリー 4
9 tar: これは tar アーカイブではないようです 4
9 MySQL 5.5 から 5.6 へのアップグレード | MySQL(データベース) 4
2021/9/23 1:01 更新