質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.49%
Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Q&A

解決済

2回答

2502閲覧

rubyでのバージョン変更時のエラー

pocarisweat

総合スコア16

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

0グッド

0クリップ

投稿2017/07/07 06:58

rubyで現在のバージョンから2.0.0-p247 を使用したかったのでrbenv install 2.0.0-p247と記述してインストールしようとしたのですがこのようなエラーが出てしまいどうしたらいいか全くわかりません。これは一体どういうことなのか。どうやったら解決できるのかが知りたいです。

ruby

1Downloading yaml-0.1.6.tar.gz... 2-> https://dqw8nmjcqpjn7.cloudfront.net/7da6971b4bd08a986dd2a61353bc422362bd0edcc67d7ebaac68c95f74182749 3Installing yaml-0.1.6... 4Installed yaml-0.1.6 to /home/vagrant/.rbenv/versions/2.0.0-p247 5 6Downloading ruby-2.0.0-p247.tar.bz2... 7-> https://cache.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.bz2 8Installing ruby-2.0.0-p247... 9 10WARNING: ruby-2.0.0-p247 is past its end of life and is now unsupported. 11It no longer receives bug fixes or critical security updates. 12 13 14BUILD FAILED (CentOS release 6.8 (Final) using ruby-build 20170523-25-g476d09b) 15 16Inspect or clean up the working tree at /tmp/ruby-build.20170702023741.18938 17Results logged to /tmp/ruby-build.20170702023741.18938.log 18 19Last 10 log lines: 20ossl_pkey_ec.c:766: 警告: implicit declaration of function ‘EC_GF2m_simple_method21ossl_pkey_ec.c:766: 警告: assignment makes pointer from integer without a cast 22ossl_pkey_ec.c:821: error:EC_GROUP_new_curve_GF2m’ undeclared (first use in this function) 23ossl_pkey_ec.c:821: error: (Each undeclared identifier is reported only once 24ossl_pkey_ec.c:821: error: for each function it appears in.) 25make[2]: *** [ossl_pkey_ec.o] エラー 1 26make[2]: ディレクトリ `/tmp/ruby-build.20170702023741.18938/ruby-2.0.0-p247/ext/openssl' から出ます 27make[1]: *** [ext/openssl/all] エラー 2 28make[1]: ディレクトリ `/tmp/ruby-build.20170702023741.18938/ruby-2.0.0-p247' から出ます 29make: *** [build-ext] エラー 2 30[vagrant@localhost ~]$ rbenv versions 31* 2.3.1 (set by /home/vagrant/.rbenv/version) 32[vagrant@localhost ~]$ git clone https://github.com/sstephenson/rbenv.git ~/.rbenv 33fatal: destination path '/home/vagrant/.rbenv' already exists and is not an empty directory.

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答2

0

ベストアンサー

パッチレベルまで正確にそのRubyでないといけませんか?

Ruby 2.0.0-p247以下にはOpenSSL拡張にバグがあるとのことなので、いちばん手っ取り早い解決策は「もう少しパッチレベル(pのあとの数値)の大きなRuby 2.0.0を使う」ことです。

投稿2017/07/07 07:27

maisumakun

総合スコア145183

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

0

ここのサイトは参考になりませんか?
Rubyを2.2.1にバージョンアップする時のエラーに対処

投稿2017/07/07 07:21

TennousuAtene

総合スコア76

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.49%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問