ruby: ruby 2.5.0p0
ruby on rails: 5.1.4
java: 1.8.0.161
rjb: 1.5.5
CentOS: 7.2
表題の通りなのですが、javaをインストール後、下記を.bashrcに記載し、
source ~/.bashrc
してgem install
を試すのですが、エラーが発生してしまいます。
#.bashrc export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.161-0.b14.el7_4.x86_64
#エラーメッセージ current directory: /home/vagrant/hoge/vendor/bundle/ruby/2.5.0/gems/rjb-1.5.5/ext /home/vagrant/.rbenv/versions/2.5.0/bin/ruby -r ./siteconf20180419-5830-3ejrp8.rb extconf.rb *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/home/vagrant/.rbenv/versions/2.5.0/bin/$(RUBY_BASE_NAME) extconf.rb:45:in `open': No such file or directory @ dir_initialize - /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.161-0.b14.el7_4.x86_64/include (Errno::ENOENT) from extconf.rb:45:in `<main>' extconf failed, exit code 1
エラーメッセージの通り確かにincludeというファイルやディレクトリはないのですが、
ではどうしたらよいのかわからず、つまっています。
念の為下記の様にjavaのバージョンを1.6.0に落としてみても、同様のエラーが発生しました。
#.bashrc export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.41.x86_64
JAVA_HOMEが間違っているのか、configuration optionを設定する必要があるのでしょうか?
どうぞよろしくお願い致します。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。