Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install on Mac OS BigSur #139

Open
balaji-sunku opened this issue Jul 29, 2021 · 4 comments
Open

Unable to install on Mac OS BigSur #139

balaji-sunku opened this issue Jul 29, 2021 · 4 comments
Labels

Comments

@balaji-sunku
Copy link

Error while running the install command

sudo gem install dryrun
Building native extensions. This could take a while...
ERROR: Error installing dryrun:
ERROR: Failed to build gem native extension.

current directory: /Library/Ruby/Gems/2.6.0/gems/rjb-1.6.4/ext

/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r ./siteconf20210729-27638-l5q485.rb extconf.rb
The operation couldn’t be completed. Unable to locate a Java Runtime.
Please visit http://www.java.com for information on installing Java.

*** 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=/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/$(RUBY_BASE_NAME)
extconf.rb:40:in `

': JAVA_HOME is not directory. (RuntimeError)

extconf failed, exit code 1

Gem files will remain installed in /Library/Ruby/Gems/2.6.0/gems/rjb-1.6.4 for inspection.
Results logged to /Library/Ruby/Gems/2.6.0/extensions/universal-darwin-20/2.6.0/rjb-1.6.4/gem_make.out

@jaydip430
Copy link

did you find solution?

@balaji-sunku
Copy link
Author

balaji-sunku commented Oct 21, 2021 via email

@jaydip430
Copy link

I don't use mac but I am getting the same problem as"JAVA_HOME" is not directory then I add JAVA_HOME to my windows environmental variable by using youtube videos

@stale
Copy link

stale bot commented Apr 12, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants