LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-18-2004, 07:04 PM   #1
JellyStones
LQ Newbie
 
Registered: Oct 2003
Distribution: Debian 3.1
Posts: 10

Rep: Reputation: 0
Help with installing GCC on Cygwin


Ok having spent the past 2 hours unsuccessfully trying to compile gcc under cygwin, i realized (from a forum) I needed a c compiler(which is pretty stupid because how am i supposed to compile it if I dont have a compiler). So now I need to find a GCC binary for cygwin, but the GCC website points me to the cygwin homepage to download it, but I cant even find it there.

Can someone please point me to one as I have been experimenting with linux often the past couple of months, but have become fed up at the poor and confusing installation documentation that comes with every program, and always gone back to Windows.

Also what is cross compiling?

Thanks in advance
Martin Konecny
 
Old 01-18-2004, 07:30 PM   #2
GT_Onizuka
Member
 
Registered: Aug 2003
Location: Atlanta
Distribution: Debian, OS X
Posts: 711

Rep: Reputation: 30
Re: Help with installing GCC on Cygwin

Quote:
Originally posted by JellyStones
compile gcc under cygwin
Correct me if I'm wrong, but isn't cygwin a Linux-like environment for Windows? So if you were currently trying to run Linux, what would be the point of compiling gcc under cgywin? However, you can find binaries for GCC (for cygwin) at the homepage here. They also have binaries for modern distro's, although most (if not all) come with GCC and the like. And the documentation is generally VERY good for Linux, its just installation itself can be kinda tricky . You use Red Hat, so if you can't compile your own, just look for RPMs, they're everywhere. Perhaps I'm still confused by your original question, but I hope this helps. Good Luck

As for your last question, I think cross-compiling is when you compile something on a system (let's say Linux) for a different system (let's say Windows). Don't hold me to this, but I think that's what it is.

EDIT: My bad, you're right, just links to the cygwin homepage. I figured the install would come with something as essential as a compiler, but my original point stands, cygwin is for Windows, not Linux. So I don't understand the point really.

Last edited by GT_Onizuka; 01-18-2004 at 07:40 PM.
 
Old 01-18-2004, 07:37 PM   #3
JellyStones
LQ Newbie
 
Registered: Oct 2003
Distribution: Debian 3.1
Posts: 10

Original Poster
Rep: Reputation: 0
ok I dont think I said that i needed to compile cygwin, I said I needed to compile GCC under cygwin. and the link you gave me I had already looked at and couldnt find the binary. However I am in a much better mood now because i remembered that when u install cygwin it allows you to choose what you would like installed along with it, and I found out that it will install GCC automatically for me, so I wont have to find a binary for it. Thanks for the help hopefully I can get past my second task now which is to install DDD.

Martin Konecny
 
Old 01-18-2004, 07:40 PM   #4
GT_Onizuka
Member
 
Registered: Aug 2003
Location: Atlanta
Distribution: Debian, OS X
Posts: 711

Rep: Reputation: 30
Yeah, I realized I n00bed and I edited my post, guess I just wasn't fast enough >_<. I figured it would have something as neccessary as a compile pre-packaged. Good luck!
 
Old 03-09-2004, 10:38 PM   #5
abc123
LQ Newbie
 
Registered: Mar 2004
Posts: 1

Rep: Reputation: 0
This link might help you.

http://www2.warwick.ac.uk/fac/sci/mo...gwinpart2.html

Good luck
 
Old 04-18-2006, 04:14 AM   #6
maubp
LQ Newbie
 
Registered: Jul 2005
Distribution: Ubuntu
Posts: 6

Rep: Reputation: 0
Quote:
Originally Posted by GT_Onizuka
... I figured it would have something as neccessary as a compile pre-packaged.
It IS available pre-packaged, look in the "Devel" section of the cygwin setup.exe program's package listing.
 
Old 04-18-2006, 04:18 AM   #7
maubp
LQ Newbie
 
Registered: Jul 2005
Distribution: Ubuntu
Posts: 6

Rep: Reputation: 0
BTW abc123, That link should be:

http://www2.warwick.ac.uk/fac/sci/mo.../cygwin/part2/
 
Old 05-04-2006, 01:29 PM   #8
Vitalie Ciubotaru
Member
 
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153

Rep: Reputation: 30
maubp is absolutely right. BTW, GCC comes both as binary and as source within the "Devel" section. This means that you can follow usual instructions
Code:
tar -xjvf gcc-3.4.3-src.tar.bz2
mkdir gcc-build
cd gcc-build
../gcc-3.4.3/configure --prefix=/SOME_COOL_PLACE_LIKE_USR --OTHER_OPTIONS_U_LIKE
make
make install
BTW, you can (probably) compile your GCC in such a way so that to use it as a cross-compiler - use it to compile software, which would run under Linux.
 
Old 05-19-2006, 04:55 AM   #9
ratnakarreddy
LQ Newbie
 
Registered: May 2006
Posts: 5

Rep: Reputation: 0
hi all,
iam very much new to this field(linux and gcc).
iam planning to write program to motorola 68k processor using gcc compiler.
iam using Fedora Core 4.
please tell me the procedure to installing gcc,binutilsann newlibs for m68k.

thanks and regards
ratna.
 
Old 05-21-2006, 08:49 AM   #10
maubp
LQ Newbie
 
Registered: Jul 2005
Distribution: Ubuntu
Posts: 6

Rep: Reputation: 0
Hi ratnakarreddy - your question has nothing to do with using GCC on Windows with Cygwin (the topic of this thread). You might get more help if you start a new thread, or try searching for something more relevant.

Good luck
 
Old 01-22-2007, 04:49 AM   #11
golubevs
LQ Newbie
 
Registered: Jan 2007
Posts: 1

Rep: Reputation: 0
you are in the right place

if you felt you were looking answer to the question "how to install gcc on cygwin?" pay close attention to the posts in this page. in genral the right way to do it is to install cygwin again with everyting you need inside already. in the installation menu either click in side "devel" all the additional parts you want to include like gcc, g++, make , automake etc' or if you don't know what you want to install you may just install all the programs inside devel.
it take few moments (it took me about an hour) but this is nothing compering to the time I spent looking for the right way to do it.

--
http://www.cs.tau.ac.il/~golubevs

Last edited by golubevs; 01-22-2007 at 04:53 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing KDE on Cygwin Kenji Miyamoto General 1 05-22-2006 04:13 PM
Where can i get gcc-2.95.3 for cygwin???? tuxfood Linux - Software 1 10-11-2005 04:34 PM
I want to build mips-ecoff-gcc tool chain under Cygwin. keyboard Programming 4 05-31-2005 03:22 AM
installing blackbox on cygwin acidbreez Linux - Software 1 12-22-2003 08:31 PM
gcc and cygwin fatman Programming 5 04-04-2003 05:34 PM


All times are GMT -5. The time now is 11:58 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration