Bullrico

Solving front-end and UX dilemmas

Cannot Load Such File -- Iconv

Here’s another nugget - getting iconv to load (in my case, while generating this blog using Octopress):

1
2
3
4
5
6
7
8
9
10
/Users/bobby/.rvm/gems/ruby-1.9.3-p194@octopress/gems/maruku-0.6.0/lib/maruku/input/parse_doc.rb:22:in `require': cannot load such file -- iconv (LoadError)
  from /Users/bobby/.rvm/gems/ruby-1.9.3-p194@octopress/gems/maruku-0.6.0/lib/maruku/input/parse_doc.rb:22:in `<top (required)>'
  from /Users/bobby/.rvm/gems/ruby-1.9.3-p194@octopress/gems/maruku-0.6.0/lib/maruku.rb:85:in `require'
  from /Users/bobby/.rvm/gems/ruby-1.9.3-p194@octopress/gems/maruku-0.6.0/lib/maruku.rb:85:in `<top (required)>'
  from /Users/bobby/.rvm/gems/ruby-1.9.3-p194@octopress/gems/jekyll-0.11.2/lib/jekyll.rb:26:in `require'
  from /Users/bobby/.rvm/gems/ruby-1.9.3-p194@octopress/gems/jekyll-0.11.2/lib/jekyll.rb:26:in `<top (required)>'
  from /Users/bobby/.rvm/gems/ruby-1.9.3-p194@octopress/gems/jekyll-0.11.2/bin/jekyll:20:in `require'
  from /Users/bobby/.rvm/gems/ruby-1.9.3-p194@octopress/gems/jekyll-0.11.2/bin/jekyll:20:in `<top (required)>'
  from /Users/bobby/.rvm/gems/ruby-1.9.3-p194@octopress/bin/jekyll:23:in `load'
  from /Users/bobby/.rvm/gems/ruby-1.9.3-p194@octopress/bin/jekyll:23:in `<main>'

The solution was to follow RVM’s instructions here:

1
2
3
4
5
$ rvm reinstall 1.9.2 --with-iconv-dir=$rvm_path/usr

$ rvm reinstall 1.9.3 --with-iconv-dir=$rvm_path/usr

$ rvm all-gemsets do rvm gemset pristine

Comments