Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language

Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Ruby Programming Language

Installing Ruby on Linux - Error

I'm new to Linux, so it may well be that I'm missing some trivial.

However, I have Ubuntu installed on my Laptop, and I downloaded the
Source for Ruby (ruby-1.8.5-p12), copied it across to my laptop (My
laptop does NOT have internet access, so I can't just apt-get,
unfortunately), and tried the following:


It starts working, then right after "checking for C compiler default
ouput file name...", I get this:

"configure: error: C compiler cannot create executables"

Can anyone help me out with this one?

Posted via http://www.ruby-forum.com/.


echo "int main(){return 0;}" > test.c
gcc test.c

If it fails, gcc probably doesn't have correct permissions or isn't
installed right.

Either way, you'll probably get a more specific error message.

If it works, ./configure is lying.

Perhaps sudo first?

sudo ./configure

Aur Saraf

PLUG: All newbies, have a look at the adopt-a-newbie thread, it might
benefit you

On 2/18/07, Centipeed <centip@gmail.com> wrote:

I think Ubuntu doesn't install any developer tools by default. You need
the GCC compiler, autoconf and friends, and the GNU binutils. Probably
there's a package with everything you need, possibly called "developer
tools" or something similar.
On 2/18/07, Timothy Hunter <TimHun@nc.rr.com> wrote:

Right. It's called build-essential.

If the C compiler is installed, then

$ gcc --version

will return the version of the C compiler. I had something similar
happen on one of my machines last week, and I *do* have GCC installed.
It turned out my CFLAGS environment variable was messed up, so if you do
have GCC, check "CFLAGS" for sanity. What configure does is simply
attempt to compile something -- if it gets an error, you get that
message. :)

M. Edward (Ed) Borasky, FBG, AB, PTA, PGS, MS, MNLP, NST, ACMC(P)

If God had meant for carrots to be eaten cooked, He would have given rabbits fire.

You'll need to install the package "build-essential" which will pull in a
GCC, G++, linkers, make, and the basic header files which belong in /usr/

If you just have GCC installed, but not a linker, then your C compiler
cannot create executables and you'll get that error.


Ken Bloom. PhD candidate. Linguistic Cognition Laboratory.
Department of Computer Science. Illinois Institute of Technology.

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc