how to use an upgraded gcc compiler

Benjamin Sobotta mayday at gmx.net
Tue Aug 14 01:23:56 PDT 2007


> Hi,
> 
> I am running FreeBSD 6.2 Stable.  The gcc version that was compiled in is
> 3.4.6.  I installed gcc 4.04.
> 
> I'm trying to install libxml-ruby, and I need to use gcc 4.0x, apparently.
> How do I use my newly installed gcc 4.04 to compile now?
> 
> Charlie

Hey

Non-system gcc versions are usually called with a trailing version number. So what you might to try is gcc40 or gcc4 or something similar. Search for executables starting with gcc. Something like the above examples should show up.

HTH,

Benjamin


More information about the freebsd-questions mailing list