Software⏱️ 2 min read📅 2026-05-31

How to Fix: how to solve "ruby installation is missing psych" error?

Install libyaml and reinstall Ruby to resolve the psych error.

Quick Answer: Run "gem install libyaml" and then "rvm reinstall ruby-1.9.3" to fix the issue.

The error message 'ruby installation is missing psych' can be frustrating, especially when you have successfully installed Ruby using rvm. However, the presence of libyaml seems to be causing an issue.

💡 Why You Are Getting This Error

  • [Cause]

✅ Best Solutions to Fix It

Method 1: Install libyaml using Homebrew

  1. Step 1: Open your terminal and run the following command to install libyaml using Homebrew: brew install yaml

Method 2: Reinstall Ruby with the --with-psych option

  1. Step 1: Run the following command to reinstall Ruby using rvm with the --with-psych option: rvm install 1.9.3 --with-psych

🎯 Final Words

By following these steps, you should be able to resolve the 'ruby installation is missing psych' error and get back to installing gems without any issues.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions