This post was copied from exceptions.wordpress.com with minor updates.
So you are working with RVM / Rails 3 / Ruby 1.9.2 and you keep on getting the following error:
1
| |
To fix the issue, perform the following steps:
- Install readline using rvm: rvm install readline rvm package install readline
- Now install iconv by executing: rvm install iconv rvm package install iconv
- If you already have a version of Ruby 1.9 installed, we need to remove it by executing:
1
| |
- The final step is to re-install the version of ruby:
1
| |
Now to test that it worked:
- Change to the ruby version you installed: rvm use 1.9.2
- Check you are on the right version of ruby:
1 2 | |
- Start a new irb session
- Now you should be able to require ‘iconv’ and get a ‘true’ result
1 2 | |
Now you should be good to go!