Forum: Ruby on Rails gem install mongrel fails

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
217c03c9d5558ccb483b78e60b6c8e63?d=identicon&s=25 LemmingJoel (Guest)
on 2007-06-27 04:07
(Received via mailing list)
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.?

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)

217c03c9d5558ccb483b78e60b6c8e63?d=identicon&s=25 LemmingJoel (Guest)
on 2007-06-28 06:30
(Received via mailing list)
I figured it out.

I just removed "-mtune pentium4" parameter from the CFLAGS variable
in /usr/lib/ruby/1.8/i
then ran gem install mongrel again and all it well :)

Tip from the 2nd post on this page

This topic is locked and can not be replied to.