Version
- GraalVM for JDK 23 (Latest)
- GraalVM for JDK 24 (Early Access)
- GraalVM for JDK 21
- GraalVM for JDK 17
- Archives
- Dev Build
- 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
Installing LibYAML
TruffleRuby requires to have libyaml
installed, much like CRuby 3.2+ and Psych 5+.
If you experience psych
-related errors saying it cannot find libyaml
, it might help to recompile the psych
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.
Fedora-based: RHEL, Oracle Linux, etc #
Fedora
sudo dnf install libyaml-devel
Oracle Linux 7
sudo yum install --enablerepo=ol7_optional_latest libyaml-devel
Oracle Linux 8
sudo dnf install --enablerepo=ol8_codeready_builder libyaml-devel
Debian-based: Ubuntu, etc #
sudo apt-get install libyaml-dev
macOS #
Homebrew
We recommend installing libssl via Homebrew.
brew install libyaml
MacPorts
MacPorts should also work but is not actively tested.
sudo port install libyaml