I want to install Octopress
in my computer.
I try to do it like
When I run
bundle install
I got error message
An error occured while installing RedCloth (4.2.9), and Bundler cannot continue.
Make sure that `gem install RedCloth -v '4.2.9'` succeeds before bundling.
So, I run
sudo gem install RedCloth -v '4.2.9'
then, I got a error message again:
ERROR: Error installing RedCloth:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from extconf.rb:1:in `<main>'
I hadn't learn any knowledge about ruby.
None of the answers worked on my Ubuntu 14.04.1 LTS. Upgrade to ruby 2.0 fixed the problem for me:
You've probably upgraded to
Mountain Lion
and have not rebuilt yourruby-1.9.2
install yet with the new development packages.If you don't have the
Mountain Lion
dev packages installed correctly, use the ThoughtBot instructions.For Ubuntu 14.04 simply do this:
Should work for 13.10 and 13.04 too. (Not tested)
My ubuntu 12.04 solution is install the ruby1.9.1-full version, that can resolve this issue.
you can execute command:
to select the altiernative ruby which you have installed. and then, execute below commands to finish the octopress deploy:
below commands you can find from octopress deploy guideline page:
Hope it's helpful for you, thanks
it apears you are not using rvm for managing your ruby installation. I think best would be to try rvm, here's a very good guide, you can stop without installing rails: ruby with rvm
Then simply
Unmanaged ruby gems are a pain, I try to avoid them.
I was installing Octopress too and got the same problem as yours. After checking the
mkmf.log
file I figured out that gcc-4.2 had not been found. I Even installed xcode with the command line tools. It worked when I made a symlink like this: