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

Installation fails on jRuby #82

Open
izzy-sh opened this issue Jul 1, 2020 · 0 comments
Open

Installation fails on jRuby #82

izzy-sh opened this issue Jul 1, 2020 · 0 comments

Comments

@izzy-sh
Copy link

izzy-sh commented Jul 1, 2020

When trying to install I get:
checking for sqlite3ext.h... RuntimeError: The compiler failed to generate an executable file. You have to install development tools first.

I'm running MacOS 10.15.5, with libpng, libjpeg & imagemagick installed.
Installation on "plain" ruby (2.6.0 that comes bundled with Xcode) works like a charm.

My gem env:

RubyGems Environment:
  - RUBYGEMS VERSION: 3.0.2
  - RUBY VERSION: 2.5.3 (2019-08-12 patchlevel 0) [java]
  - INSTALLATION DIRECTORY: /Users/<user>/.gem/jruby/2.5.3
  - USER INSTALLATION DIRECTORY: /Users/<user>/.gem/jruby/2.5.0
  - RUBY EXECUTABLE: /opt/rubies/jruby-9.2.8.0/bin/jruby
  - GIT EXECUTABLE: /nix/var/nix/gcroots/dev-profiles/user-extra-profile/bin/git
  - EXECUTABLE DIRECTORY: /Users/<user>/.gem/jruby/2.5.3/bin
  - SPEC CACHE DIRECTORY: /Users/<user>/.gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /opt/rubies/jruby-9.2.8.0/etc
  - RUBYGEMS PLATFORMS:
    - ruby
    - universal-java-1.8
  - GEM PATHS:
     - /Users/<user>/.gem/jruby/2.5.3
     - /opt/rubies/jruby-9.2.8.0/lib/ruby/gems/2.5.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
     - "install" => "--no-rdoc --no-ri --env-shebang"
     - "update" => "--no-rdoc --no-ri --env-shebang"
  - REMOTE SOURCES:
     - https://rubygems.org/
  - SHELL PATH:
     - /Users/<user>/.gem/jruby/2.5.3/bin
     - /opt/rubies/jruby-9.2.8.0/lib/ruby/gems/2.5.0/bin
     - /opt/rubies/jruby-9.2.8.0/bin
     - /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bin
     - /usr/local/sbin
     - /usr/local/opt/sqlite/bin
     - /Users/<user>/.nix-profile/bin
     - /opt/dev/bin/user
     - /Users/<user>/.nix-profile/bin
     - /nix/var/nix/gcroots/dev-profiles/user-extra-profile/bin
     - /Users/<user>/.pyenv/shims
     - /usr/local/bin
     - /usr/bin
     - /bin
     - /usr/sbin
     - /sbin
     - /Library/TeX/texbin
     - /opt/X11/bin
     - /Library/Apple/usr/bin

I tried adding the path to sqlite3ext.h to the package installation options via bundle
bundle config --local build.phashion "--with-cppflags=-I/usr/local/opt/sqlite/include"
But with no success

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant