Dealing with a few errors in Octopress after updating Ruby…
I (re-)installed GCC-4.9.2 a few days ago, and tonight when fired up Octopress (rake etc…) - ruby
didn’t want to play. With my new GCC install I put gmp
in another location, and ruby
couldn’t find a the lib. So, I updated Ruby (ruby-2.2.2
).
Download the source and compile it:
$ mkdir ruby-2.2.2_build && cd ruby-2.2.2_build
$ ../ruby-2.2.2/configure
$ make -j6
$ sudo make install
Updating gems
(2.4.6)
$ sudo gem update --system
Ok, fine… Then:
$ rake preview
rake aborted!
LoadError: cannot load such file -- bundler/setup
Installing bundler again:
$ sudo gem install bundler
Then in the Octopress folder:
$ bundle install
Fetching gem metadata from https://rubygems.org/........
Fetching version metadata from https://rubygems.org/..
etc...
Now rake starts fine again.
$ rake preview
Octopress seems to work fine with ruby 2.2.2