as in the title, i have problems installing gem RedCloth. i downloaded RubyGems v1.8.24, and use ubuntu 12.04, here is my console log:
kuba#kuba-P5Q-SE:~$ sudo gem install RedCloth
[sudo] password for kuba:
Building native extensions. This could take a while...
ERROR: Error installing RedCloth:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
/usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
from /usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from extconf.rb:1:in `<main>'
Gem files will remain installed in /usr/lib/ruby/gems/1.9.1/gems/RedCloth-4.2.9 for inspection.
Results logged to /usr/lib/ruby/gems/1.9.1/gems/RedCloth- 4.2.9/ext/redcloth_scan/gem_make.out
i tried to look into this last given file, but when i look for it, it opens chrome, and gives me error.:(
Try installing the ruby1.9.1-dev package from Synaptic, or using apt-get.
In a command prompt:
sudo apt-get install ruby1.9.1-dev
mkmf (the module which is failing to load) is only included in the development package for ruby on ubuntu.
Related
I am trying to run GitLab on my server.
But the service won't start up.
It puts out:
==> /var/log/gitlab/sidekiq/current /var/log/gitlab/unicorn/current <==
2016-01-26_16:35:06.79546 failed to start a new unicorn master
2016-01-26_16:35:06.80558 starting new unicorn master
2016-01-26_16:35:07.10485 Warning: the running version of Bundler is older than the version that created the lockfile. We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
2016-01-26_16:35:07.11661 bundler: command not found: unicorn
2016-01-26_16:35:07.12170 Install missing gem executables with `bundle install`
My System:
Ubuntu 14.04
Plesk 12.5
Ruby 1.9.3
Gem 1.8.23
Bundler 1.11.2
I tried to run
gem install unicorn
But than I get the Error:
Building native extensions. This could take a while...
ERROR: Error installing unicorn:
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>'
Gem files will remain installed in /var/lib/gems/1.9.1/gems/kgio-2.10.0 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/kgio-2.10.0/ext/kgio/gem_make.out
I have no experience with ruby. So anyone has a suggestion what I'm doing wrong ?
Thanks in advance
Dominic
Are you limited to Ruby 1.9.3? Currently the most stable version of Ruby is 2.3.0. Updating Ruby will probably fix this issue.
https://www.ruby-lang.org/en/downloads/
Alternatively, before updating Ruby, check out this thread. Here is a similar error someone had with Ruby 1.9.1. `require': no such file to load -- mkmf (LoadError)
It looks like people on that thread had success using build-essential:
sudo apt-get install build-essential
I have problem to install rmagick gem to vagrant VM.
sudo apt-get update done!
I've installed to vagrant this:
imagemagick
libmagickwand-dev
graphicsmagick-libmagick-dev-compat
libmagickcore-dev
libmagickwand5
And error:
ERROR: Error installing rmagick:
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>'
Gem files will remain installed in /var/lib/gems/1.9.1/gems/rmagick-2.13.4 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/rmagick-2.13.4/ext/RMagick/gem_make.out
What I forgot?
I have tried this, and problem was solved.
sudo apt-get install libmagickwand5 libmagickwand-dev
gem install rmagick -v 2.13.3
gem install fastthread -v1.0.7
Building native extensions. This could take a while...
ERROR: Error installing fastthread:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
extconf.rb:8:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:8
Gem files will remain installed in /var/lib/gems/1.8/gems/fastthread-1.0.7 for inspection.
Results logged to /var/lib/gems/1.8/gems/fastthread-1.0.7/ext/fastthread/gem_make.out
This is what I got when I tried installing from fastthread to set up SUP mail client on my system . How to get rid of this error?
Install these and then try re-installing:
sudo apt-get install ruby1.8-dev
Try this link http://kenno.wordpress.com/2009/07/25/fixed-extconf-rb8in-require-no-such-file-to-load-mkmf-loaderror/
I was getting this same error in OS X Lion. Having Xcode 4.3 installed doesn't cut it. You have to go to preferences in Xcode and install the command line tools, which installs the necessary compiler tools for doing native builds on the system. After I did this, then gem install fastthread worked for me.
Just to add to this, on debian and ubuntu the "complete" ruby package is this:
ruby1.8 ruby1.8-dev ri1.8 rdoc1.8 irb1.8 ruby1.8-elisp
ruby1.8-examples libdbm-ruby1.8 libgdbm-ruby1.8 libtcltk-ruby1.8
libopenssl-ruby1.8 libreadline-ruby1.8
So something like
sudo aptitude install ruby1.8 ruby1.8-dev ri1.8 rdoc1.8 irb1.8 ruby1.8-elisp ruby1.8-examples libdbm-ruby1.8 libgdbm-ruby1.8 libtcltk-ruby1.8 libopenssl-ruby1.8 libreadline-ruby1.8
Will save you a lot of time when doing bundle install on a large project.
When I tried to install: gem install sqlite3-ruby it shows:
Building native extensions. This could take a while...
ERROR: Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
extconf.rb:3:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:3
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.3.1 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.3.1/ext/sqlite3/gem_make.out
My environment:
sqlite: 2.8.17
rails: 3.0.0
ruby: 1.9.2
ubuntu: 10.04
gem: 1.3.7
I have looking all similiar question in webs and SO, nothing help, what should I do? :(
I had this same problem. I solved it by
sudo apt-get install sqlite3 libsqlite3-dev
Then the following command worked.
sudo gem install sqlite3-ruby
From the console:
adelevie#ubuntu:~$ gem install passenger
Building native extensions. This could take a while...
ERROR: Error installing passenger:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- mkmf (LoadError)
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
from extconf.rb:8
Gem files will remain installed in /home/adelevie/ruby/gems/gems/fastthread-1.0.7 for inspection.
Results logged to /home/adelevie/ruby/gems/gems/fastthread-1.0.7/ext/fastthread/gem_make.out
What does this mean and what are my options?
it's actually
apt-get install ruby1.8-dev
doing this fixed the problem building passenger for me
You need to install the ruby-dev pacakge.
apt-get install ruby-dev1.8