From: Jonathan P. <jp...@dc...> - 2005-09-13 09:23:13
|
On 13 Sep 2005, at 9:56, Dave Howell wrote: > Fine. Download what ruby-lang.org tells me is the latest version. > Run ./configure. > "configure:2045: error: C compiler cannot create executables" > I recall once before having to change from the default gcc3.3 > compiler to something else. Sure enough, on my other system, gcc > has been redefined as gcc-3.1. I switch the gcc link to 3.1. > Doesn't work. I copy the gcc binary from my other computer to this > one. Still doesn't work. gcc-3.3 should work fine, or gcc-4.0 if you have Xcode 2.1. Did you switch the link by hand? There's a tool to do this: gcc_select. Perhaps switching by hand broke things? Look in the 'config.log' file to see what error messages the compiler/ linker spat out when failing. You could post the relevant excerpt here if it's not obvious. > I guess at this point, I could try obliterating /usr/local/bin/ruby > entirely, and copy over the directory from my laptop. Yea, that > sounds like a recipe for more not-working . . . . Probably won't work unless you copy all of /usr/local, due to library dependencies. I use ruby from darwinports (www.darwinports.org) which installs into /opt/local. If there's some fundamental compiler problem on your system then it's unlikely to help though. |