While reading Linux Journal Issue 181 today, I stumbled upon a section explaining about running Ruby on Rails on Apache using an Apache module called Phusion Passenger, also known as mod_rails.
To install Passenger, I followed the instruction provided in the magazine:
sudo gem install passenger
Unxpectedly, I got the following error:
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
extconf.rb:8:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:8
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/fastthread-1.0.7 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/fastthread-1.0.7/ext/fastthread/gem_make.out
What’s happening? What did I do wrong?
According to a blog post by Al Hoang, a Ruby dev package needed to be installed. Well, I wouldn’t have a clue about this!
So, to FIX this, I need to install ruby1.8-dev:
$ sudo apt-get install ruby1.8-dev
...
Now, I’m ready to install Passenger gem:
$ sudo gem install passenger
Building native extensions. This could take a while...
Successfully installed passenger-2.2.4
1 gem installed
Installing ri documentation for passenger-2.2.4...
Installing RDoc documentation for passenger-2.2.4...
Thanks Man… I been searching for the solution………… I guess installing 1.8 worked out…thanks again.
a lot of thanks, working for some time for a solution, now with your suggestion it works…. great!
THANKS A LOOOOT!!!!!!!
Thanks a lot for this!
Thanks, it works 😉
You saved my day!, thanks in advance. But you should install g++ in order to make the native extensions
thanks, that worked.
Hi,
I experienced the same problem on Debian and after I tried your solution I had another problem :
——–
ERROR: Error installing passenger:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb install passenger
creating Makefile
make
sh: make: command not found
———-
I solved my problem by typing :
sudo apt-get install build-essential
I hope it will help !
use sudo apt-get install make
Thanks! Worked like a charm. And very clear and to the point description! Ahhh, I was almost scared away from ruby but you rescued me from the brink.
Thanks!!!!
thanks, it helped!
Ok… thanks your help i can installed the passenger
Thanks. Worked perfect.
This helped a lot. Thanks!!
Installing phusion passenger can’t get any more easier
perfect 🙂
thanks
Thank you very much! That helped a lot installing remora.
Thanks! This helped me a lot 🙂
Thanks! This helped me a lot 🙂 -KC
Thanks a ton this worked for me …. I was struggling with this error 🙂
This was a help..thanks..saved a lot of time of scouring the net…
квашенная капуста для похудениялегкий способ похудеть картвиноградный сокпохудениедиета при раке легкихдиета при нарушении углеводного обменадиета из белков и грейпфрутовкниги андрее малахова о диете на 2009маша малиновская ее секрет похудениякак быстро похудеть на 20кг диетакак действует антицеллюлитный массажлекарство для похудения вен петанти белковая диетадиета при почечные коликиошибки сидящих на диетеджуди мезл новая голивудская диетакак похудеть дневники читательницштаны антицеллюлитные жезанкефирные14 дневные диетыкодирование от лишнего веса по методу смеловакак разнообразить 20 дневную диету
You helped me a great favor! ^-^
thanks!!