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
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
I run this command, sudo gem install compass --pre
And this give me an error
Fetching: sass-3.3.14.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing compass:
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:4:in `<main>'
Gem files will remain installed in /var/lib/gems/1.9.1/gems/ffi-1.9.3 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/ffi-1.9.3/ext/ffi_c/gem_make.out
current compass version -
Compass 0.12.7 (Alnilam)
current ruby version -
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
sass version -
Sass 3.3.14 (Maptastic Maple)
gem version -
1.8.23
Just incase no one sees #ymonad's comment, for me the fix was:
apt-get update
apt-get install ruby1.9.1-dev
apt-get install ruby-dev
apt-get install build-essential
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.
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