Ruby > RubyのTIPS
更新日
2014-09-07
広告
Ruby Gemを使うと、Rubyのプラグインを簡単にインストールできます。
mkmf LoadError
プラグインのインストール時に、以下のようなエラーが出るときがあります。$ sudo gem install some_plugin Building native extensions. This could take a while... ERROR: Error installing some_plugin: 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>’この場合、ruby-devをインストールしいてから、リトライしてみましょう。
$ sudo apt-get install ruby-dev
広告
お問い合わせは sweng.tips@gmail.com まで。