-
Notifications
You must be signed in to change notification settings - Fork 185
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
"No such file or directory" when running post_install_hook.sh
#3479
Comments
Thanks for the report. Writing down some thoughts on this: We could also convert that script to a Ruby file, but that would not help, because recompiling openssl means running I think for now it should be possible to workaround by installing a TruffleRuby standalone and using that to recompile openssl, and copy the result over in the cache ( Another solution would be to vendor libssl, but that is problematic for multiple reasons, notably some C extensions do not work with that when they depend on a system package which depends on system libssl, loading multiple libssl in the same process feels brittle, and security-wise it's better to use the libssl from the operating system. As a note, on Oracle Linux 7 there should be no need to recompile the openssl extension, because we ship it compiled against the Oracle Linux 7 system libssl. One more possibility would be to reimplement Ruby OpenSSL on top of the Java security APIs. |
Something GraalPy does is shipping the Java module for the launcher code and using/generating a small Bash launcher script: And then we could document running the post-install hook using the maven exec plugin or similar. |
Similar error, different cause. I was trying to install truffleruby 24.1.1 on a Ubuntu 24 image, and hit this:
Looking at the log I saw this:
The solution was to explicitly add |
Nice work! To be fair the dependencies (and libyaml as well) are listed in the README document and mentioned in the Installing TruffleRuby one. |
Repeating a bit of background information from this Slack conversation:
I'm setting up a Kotlin / Gradle project (with a non-GraalVM JDK) in which I'd like to use TruffleRuby to run code from a Ruby Gem to be installed. My
dependencies
includeand my Kotlin code looks like
However, this gives me
After an Internet search and reading through https://github.com/oracle/truffleruby/blob/master/doc/user/installing-libssl.md, I was looking for the
post_install_hook.sh
script on my system, which apparently gets installed atHowever, running that script (from the base directory with the long hash) yields
So apparently, the installation seems to be incomplete, or is looking for files in the wrong place.
The text was updated successfully, but these errors were encountered: