zoukankan      html  css  js  c++  java
  • gem install rjb (1.6.4) error

    An error occurred while installing rjb (1.6.4), and Bundler cannot continue.

    Make sure that `gem install rjb -v '1.6.4' --source 'https://gems.ruby-china.com/'` succeeds before bundling.

     

    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/admin/.rvm/rubies/ruby-2.7.2/bin/$(RUBY_BASE_NAME)

    extconf.rb:54:in `<main>': JAVA_HOME is not set. (RuntimeError)

     

    extconf failed, exit code 1

    1> java -version

    Command 'java' not found, but can be installed with:

     

    sudo apt install default-jre              # version 2:1.11-72, or

    sudo apt install openjdk-11-jre-headless  # version 11.0.9.1+1-0ubuntu1~20.04

    sudo apt install openjdk-8-jre-headless   # version 8u275-b01-0ubuntu1~20.04

    sudo apt install openjdk-13-jre-headless  # version 13.0.4+8-1~20.04

    sudo apt install openjdk-14-jre-headless  # version 14.0.2+12-1~20.04

    2> sudo apt install openjdk-8-jre-headless

    3> export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64

    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/admin/.rvm/rubies/ruby-2.7.2/bin/$(RUBY_BASE_NAME)

    extconf.rb:46:in `open': No such file or directory @ dir_initialize - /usr/lib/jvm/java-8-openjdk-amd64/include (Errno::ENOENT)

    from extconf.rb:46:in `<main>'

    4> sudo apt-get install openjdk-8-jdk

     

    5> gem install rjb -v '1.6.4'

    success !!!

     

     

  • 相关阅读:
    groovy main method is use static main(args) //ok
    undefined reference to
    CuTest: C Unit Testing Framework
    screen to tmux: A Humble Quickstart Guide « My Humble Corner
    main,tmain,winmain()等函数——UNICODE sensensen 博客园
    Adding Unit Tests to a C Project NetBeans IDE 6.9 Tutorial
    罗马转数字
    About Luvit
    KISSY Keep It Simple & Stupid, Short & Sweet, Slim & Sexy...
    Create a CSV file
  • 原文地址:https://www.cnblogs.com/qinyan20/p/14392974.html
Copyright © 2011-2022 走看看