ruby can not load file — ?

I kept getting this error in my ruby env on Dreamhost, open this post will be the final answer to it.

To install rubygems, after done ruby install,

  1. wget rubygems from,
  2. ruby setup.rb –prefix=$HOME
  3. add export RUBYOPT=rubygems to $HOME/.bash_profile or .bashrc on your preference, you wanna chain them together anyway.
  4. add . ~/bashrc to ruby shell script if it’s in crontab. (This is new to me after migrated from ruby 1.8.5 to 1.8.7, I might forgot something simple during migration. According to this post, this is the standard way in crontab.)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s