-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Set gem path for ruby #581
Comments
We use the standard way of RubyGems to configure the Gem home and path. It seems also possible to set them at runtime programmatically with
If you just want to put a single @rahmanusta Does that help? |
It is helpful but, in this case, my goal is to run https://github.com/asciidoctor/asciidoctor-pdf on graal. First I cloned the source code, and run Gem.paths = {
'GEM_HOME' => '........./asciidoctor-pdf/bundle/truffleruby/2.4.0/gems',
'GEM_PATH' => '........../asciidoctor-pdf/bundle/truffleruby/2.4.0/gems'
}
if File.exist?(asciidoctorPdf = (File.expand_path '../asciidoctor-pdf/lib/asciidoctor-pdf', '.........../asciidoctor-pdf/lib/asciidoctor-pdf.rb'))
puts "asciidoctor-pdf is loaded"
require asciidoctorPdf
end However, I'm getting the following error. I don't know which part is wrong. Thanks Exception |
Unfortunately, I missed your comment and forgot about your issue. |
Is it possible to change path which is used to load GEMs on Graal SDK possible with Context API?
The text was updated successfully, but these errors were encountered: