# Gem install mongrel fails

**URL:** <https://www.ruby-forum.com/t/gem-install-mongrel-fails/107884>\
**Category:** Rails\
**Created:** [June 27, 2007, 4:07am UTC](https://www.ruby-forum.com/t/gem-install-mongrel-fails/107884 "2007-06-27T04:07:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LemmingJoel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/6f9a4e/32.png) [@LemmingJoel](https://www.ruby-forum.com/u/LemmingJoel)\
**Post date:** [June 27, 2007, 4:07am UTC](https://www.ruby-forum.com/t/gem-install-mongrel-fails/107884/1 "2007-06-27T04:07:05Z")

</div>

Hi All,

I’m try to gem install mongrel, but one of its dependencies fails to  
compile 'cause gcc doesn’t like the -mtune parameter. Is there a way  
to remove this parameter or cause gcc to ignore it, etc.?

make  
gcc -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux -  
I. -fPIC -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -Wall -fPIC -  
c fastthread.c  
cc1: invalid option `tune=pentium4’  
make: \*\*\* [fastthread.o] Error 1

# gcc --version

gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-59)

Thanks

---

<div class="post-metadata">

**Author:** ![LemmingJoel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/6f9a4e/32.png) [@LemmingJoel](https://www.ruby-forum.com/u/LemmingJoel)\
**Post date:** [June 28, 2007, 6:30am UTC](https://www.ruby-forum.com/t/gem-install-mongrel-fails/107884/2 "2007-06-28T06:30:29Z")

</div>

I figured it out.

I just removed “-mtune pentium4” parameter from the CFLAGS variable  
in /usr/lib/ruby/1.8/i  
i386-linux/rbconfig.rb,  
then ran gem install mongrel again and all it well 🙂

Tip from the 2nd post on this page  
[http://www.rubyforums.com/showthread.php?p=462](http://www.rubyforums.com/showthread.php?p=462)

Joel.
