[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Installing Ruby on Linux - Error

Centipeed

2/18/2007 8:47:00 PM

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:

/configure

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-....

9 Answers

SonOfLilit

2/18/2007 8:54:00 PM

0

Try:

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 <centipeed@gmail.com> wrote:
> 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:
>
> ./configure
>
> 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-....
>
>

Tim Hunter

2/18/2007 9:05:00 PM

0

Centipeed wrote:
> 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:
>
> ./configure
>
> 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?
>
>
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.

Ken Bloom

2/18/2007 9:25:00 PM

0

On Mon, 19 Feb 2007 06:04:42 +0900, Timothy Hunter wrote:

> Centipeed wrote:
>> 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:
>>
>> ./configure
>>
>> 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?
>>
>>
> 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.

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/
include.

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

--Ken

--
Ken Bloom. PhD candidate. Linguistic Cognition Laboratory.
Department of Computer Science. Illinois Institute of Technology.
http://www.iit.edu...

Jano Svitok

2/18/2007 9:26:00 PM

0

On 2/18/07, Timothy Hunter <TimHunter@nc.rr.com> wrote:
> Centipeed wrote:
> > 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:
> >
> > ./configure
> >
> > 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?
> >
> >
> 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.

Right. It's called build-essential.

M. Edward (Ed) Borasky

2/18/2007 9:31:00 PM

0

Timothy Hunter wrote:
> Centipeed wrote:
>> 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:
>>
>> ./configure
>>
>> 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?
>>
>>
> 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.
>
>
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)
http://borasky-research.blo...

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


Aníbal Rojas

2/19/2007 1:04:00 PM

0

Centipeed,

Out of the box Ubuntu lacks developers tools: compilers,
libraries, etc. Please post the output of ./configure if you want
peopple to take a deeper look at what is missing in your setup. If you
are newbye to linux I would strongly suggest to stick to version 1.8.4
that you can install using apt (download the package and copy it to
your laptop), unless you really need the features available in 1.8.5

--
Aníbal Rojas
http://www.ruby...
http://www.hasmanydeve...

On Feb 18, 4:47 pm, Centipeed <centip...@gmail.com> wrote:
> 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:
>
> /configure
>
> 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 viahttp://www.ruby-....


Tony Calguire

6/7/2012 11:32:00 PM

0

"Adam H. Kerman" <ahk@chinet.com> wrote in
news:jqqrh7$4td$7@news.albasani.net:

> BTR1701 <atropos@mac.com> wrote:
>
>>Really? Cool! What's my favorite color?
>
> Brown.


Somehow I doubt that very much.

Thanatos

6/8/2012 12:57:00 AM

0

In article <jqqrh7$4td$7@news.albasani.net>,
"Adam H. Kerman" <ahk@chinet.com> wrote:

> BTR1701 <atropos@mac.com> wrote:
> >"Adam H. Kerman" <ahk@chinet.com> wrote:
> >>Jim G. <jimgysin@geemail.com> wrote:
> >>>BTR1701 sent the following on 6/6/2012 12:57 AM:
> >>>>anim8rFSK<anim8rfsk@cox.net> wrote:
> >>>>>Bill Idgerant<fake.@fake.org> wrote:
>
> >>>>>>>In other cliches, the Indians are all corrupt.
>
> >>>>>Not all. The one Longmire accused was innocent. But that's pretty much
> >>>>>how reservation cops are, except they all weigh 300 pounds.
>
> >>>>I always love how the first thing out of their mouths is to tell you
> >>>>that you have no legal authority on the res. TV got that one right, sure
> >>>>enough. I've had a few counterfeit investigations at Indian casinos and
> >>>>that's pretty much how every conversation goes. Then I have to remind
> >>>>them what the federal in federal agent means and they grudgingly comply.
>
> >>>Are you FBI or Secret Service?
>
> >>He's Federal Protective Service, the absurd General Services Administration
> >>police force that's just building security.
>
> >Really? Cool! What's my favorite color?
>
> Brown.

Now I'm starting to suspect you're just making things up.

Adam H. Kerman

6/8/2012 1:01:00 AM

0

BTR1701 <atropos@mac.com> wrote:
>"Adam H. Kerman" <ahk@chinet.com> wrote:
>>BTR1701 <atropos@mac.com> wrote:
>>>"Adam H. Kerman" <ahk@chinet.com> wrote:
>>>>Jim G. <jimgysin@geemail.com> wrote:
>>>>>BTR1701 sent the following on 6/6/2012 12:57 AM:
>>>>>>anim8rFSK<anim8rfsk@cox.net> wrote:
>>>>>>>Bill Idgerant<fake.@fake.org> wrote:

>>>>>>>>>In other cliches, the Indians are all corrupt.

>>>>>>>Not all. The one Longmire accused was innocent. But that's pretty much
>>>>>>>how reservation cops are, except they all weigh 300 pounds.

>>>>>>I always love how the first thing out of their mouths is to tell you
>>>>>>that you have no legal authority on the res. TV got that one right, sure
>>>>>>enough. I've had a few counterfeit investigations at Indian casinos and
>>>>>>that's pretty much how every conversation goes. Then I have to remind
>>>>>>them what the federal in federal agent means and they grudgingly comply.

>>>>>Are you FBI or Secret Service?

>>>>He's Federal Protective Service, the absurd General Services Administration
>>>>police force that's just building security.

>>>Really? Cool! What's my favorite color?

>>Brown.

>Now I'm starting to suspect you're just making things up.

You can't prove anything. You keep telling us that all your personal
details are private for reasons of national security.

You're a postal inspector, the dirty federal law enforcement agency
that snoops through people's mail and tries not to get caught. Your
favorite color is magenta.