Sunday, March 30, 2008

Building source on Ubuntu

If you're trying to build anything from source on Ubuntu don't forget to sudo apt-get install build-essential before you start!

I was trying to build the iphone toolchain on Ubuntu 7.10 and was getting this error when trying to ./configure --enable-optimized

checking for C compiler default output file name... configure: error: C compiler cannot create executables
See 'config.log' for more details.


I knew there was some basic install stuff you needed before hand but I had to search for it. Once installed your configure step will work.

[update]
If you have to build ruby gems with native extensions then also add


sudo apt-get install ruby1.8-dev