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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-18-2004, 07:04 PM
|
#1
|
LQ Newbie
Registered: Oct 2003
Distribution: Debian 3.1
Posts: 10
Rep:
|
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
|
|
|
01-18-2004, 07:30 PM
|
#2
|
Member
Registered: Aug 2003
Location: Atlanta
Distribution: Debian, OS X
Posts: 711
Rep:
|
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.
|
|
|
01-18-2004, 07:37 PM
|
#3
|
LQ Newbie
Registered: Oct 2003
Distribution: Debian 3.1
Posts: 10
Original Poster
Rep:
|
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
|
|
|
01-18-2004, 07:40 PM
|
#4
|
Member
Registered: Aug 2003
Location: Atlanta
Distribution: Debian, OS X
Posts: 711
Rep:
|
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!
|
|
|
03-09-2004, 10:38 PM
|
#5
|
LQ Newbie
Registered: Mar 2004
Posts: 1
Rep:
|
|
|
|
04-18-2006, 04:14 AM
|
#6
|
LQ Newbie
Registered: Jul 2005
Distribution: Ubuntu
Posts: 6
Rep:
|
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.
|
|
|
04-18-2006, 04:18 AM
|
#7
|
LQ Newbie
Registered: Jul 2005
Distribution: Ubuntu
Posts: 6
Rep:
|
|
|
|
05-04-2006, 01:29 PM
|
#8
|
Member
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153
Rep:
|
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.
|
|
|
05-19-2006, 04:55 AM
|
#9
|
LQ Newbie
Registered: May 2006
Posts: 5
Rep:
|
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.
|
|
|
05-21-2006, 08:49 AM
|
#10
|
LQ Newbie
Registered: Jul 2005
Distribution: Ubuntu
Posts: 6
Rep:
|
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
|
|
|
01-22-2007, 04:49 AM
|
#11
|
LQ Newbie
Registered: Jan 2007
Posts: 1
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 05:16 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|