So when I tried to run bundle install I get an error for mysql-2.8.1.gem. I tried doing clean up command but still get the same error. This is the error message:
Fetching: mysql-2.8.1.gem (100%)
ERROR: While executing gem … (Gem::FilePermissionError)
You don’t have write permissions into the /usr/local/lib/ruby/gems/1.8 directory.
Rubygems tries to install gems for system-wide access (in a system-wide folder) by default, but it has a mode that lets you install them in a directory in your home directory.
One option is to install the gem sytemwide, you need root permission. On most modern linux distributions you can do this by using
sudo gem install ....If you really wanted this in your home directory, you should be aware that rubygems is not configured to automatically fall back to installing gems in your home directory when you try to install as a normal user. It prefers to give you an error message (the one you see here) unless you specifically indicate that you want to install the gem in your home directory. You can tell rubygems to install in your home directory by using
gem install --user-install ...