Problem installing on Cygwin, no C compiler

View: New views
4 Messages — Rating Filter:   Alert me  

Problem installing on Cygwin, no C compiler

by Peter Vanderhaden :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Can anyone help me?  I tried installing Ruby on Cygwin with the
following commands:

  # Ruby :
tar xvf ruby-1.8.6.tar.gz
cd ruby-1.8.6
./configure
make
make install

The ./configure command produced the following error message:

$ ./configure
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking target system type... i686-pc-cygwin
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

Does a C compile come with Cygwin?  If not, where can I get one so I can
complete the installation?
Thanks....
--
Posted via http://www.ruby-forum.com/.


Re: Problem installing on Cygwin, no C compiler

by Nobuyoshi Nakada-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

At Sat, 1 Sep 2007 11:12:18 +0900,
Peter Vanderhaden wrote in [ruby-talk:267018]:
> Does a C compile come with Cygwin?

Yes.  But it isn't installed by default unless you check
"Devel" category as "Install".

--
Nobu Nakada


Re: Problem installing on Cygwin, no C compiler

by M. Edward (Ed) Borasky :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Peter Vanderhaden wrote:

> Can anyone help me?  I tried installing Ruby on Cygwin with the
> following commands:
>
>   # Ruby :
> tar xvf ruby-1.8.6.tar.gz
> cd ruby-1.8.6
> ./configure
> make
> make install
>
> The ./configure command produced the following error message:
>
> $ ./configure
> checking build system type... i686-pc-cygwin
> checking host system type... i686-pc-cygwin
> checking target system type... i686-pc-cygwin
> checking for gcc... no
> checking for cc... no
> checking for cl.exe... no
> configure: error: no acceptable C compiler found in $PATH
> See `config.log' for more details.
>
> Does a C compile come with Cygwin?  If not, where can I get one so I can
> complete the installation?
> Thanks....

You probably installed the *minimal* Cygwin -- gcc is part of Cygwin. I
always install the whole thing, so I don't know where to find gcc. But
what you do is start Setup.exe from the Cygwin web site. After answering
a few questions, you will get an application package tree where you can
select the packages you want. There's a "development" section, where you
can choose "gcc".

By the way, Ruby is part of the Cygwin distribution, and you can install
it in binary or source form directly out of the same tree. However, if
you want a newer version than the one in Cygwin, you'll need gcc.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG2Ncz8fKMegVjSM8RAnBEAKDJVLpqxVdgHUf8GvCYUeg10t1XIgCghcZI
nOfdtv6F+Ob5lVh7lZJBI4A=
=upnR
-----END PGP SIGNATURE-----


Re: Problem installing on Cygwin, no C compiler

by Cliff Rowley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This is an excellent script for Cygwin users:

http://stephenjungels.com/jungels.net/projects/apt-cyg/apt-cyg

Stick that in /usr/bin and chmod +x it, then just:

apt-cyg install <gcc or whichever packages you require>

Sure saves me a lot of time messing around with the Cygwin installer.

HTH

Cliff