Version
- Latest (GraalVM for JDK 21)
- Dev Build
- GraalVM for JDK 21
- GraalVM for JDK 20
- GraalVM for JDK 17
- GraalVM 22.3
- GraalVM 22.2
- GraalVM 22.1
- GraalVM 22.0
- GraalVM 21.3
- Java on Truffle
- JavaScript and Node.js Reference
- LLVM Languages Reference
- Python Reference
- Ruby Reference
- Compatibility
- Debugging Ruby
- Runtime Configurations
- Using Ruby with GraalVM
- Installing `libssl`
- Installing LibYAML
- Installing Make and GCC
- Installing `zlib`
- Migration from JRuby to Ruby
- TruffleRuby Options and Command Line
- Polyglot Programming
- Ruby Managers and Installers
- Standalone Distribution
- Development Tools for Ruby
- Ruby Additional Functionality
- Setting up a UTF-8 Locale
- Reporting Performance Problems
- Security
- Optcarrot Example
- FAQ
- R Reference
- WebAssembly Reference
Note
This documentation may be out of date. See the latest version.
Installing libssl
TruffleRuby provides the openssl
gem but not the native libssl
system library that the gem uses.
TruffleRuby supports libssl versions 1.0.2, 1.1.0 and 3.0.0.
If you experience openssl
-related errors, it might help to recompile the openssl
gem by running lib/truffle/post_install_hook.sh
.
This is done automatically by Ruby managers, and mentioned in the post-install message when installing TruffleRuby via gu install
in GraalVM.
To compile TruffleRuby against a non-system libssl
, set OPENSSL_PREFIX
while installing TruffleRuby:
export OPENSSL_PREFIX=/path/to/my/openssl-1.1.0
Fedora-based: RHEL, Oracle Linux, etc #
sudo dnf install openssl-devel
Debian-based: Ubuntu, etc #
sudo apt-get install libssl-dev
macOS #
On macOS the system version is too old.
Homebrew
We recommend installing libssl via Homebrew.
brew install openssl
MacPorts
MacPorts should also work but is not actively tested.
sudo port install openssl