LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 10-24-2013, 05:33 PM   #1
atlantis43
Member
 
Registered: Feb 2013
Posts: 228

Rep: Reputation: Disabled
installing a linux compiler


I was taking an online course in C programming, which allowed downloading of VMWare Player which was fully set up as a Linux compiler: clang, gdb, and c libraries installed. The app was on a temporary 'license' (even though VMWare player is free), and the license has expired, making this unit, at present, useless (frozen).
I have no knowledge of how to duplicate VMWare (which I could re-download from the company) as it was.
If I download the 'free' app, what else has to be done to turn it into a compiler? What has to be added to it, and what sources are available for whatever I need?
I did download Dev C++, but it is so unlike what I'm used to, and I can't find any instructions for it, so I'd like to duplicate what I'm already used to.
Any help greatly appreciated.
I'm using WinXP with 2g ram on a pc, and the VMWare worked fine on this setup.
Richard

Last edited by atlantis43; 10-24-2013 at 05:34 PM. Reason: addnl text
 
Old 10-24-2013, 06:31 PM   #2
grail
Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 7,698

Rep: Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988
I am not sure I follow - 'VMWare Player which was fully set up as a Linux compiler'?

I understand installing a flavour of Linux and also having a compiler available within that distribution ... is this what you meant?

Generally you need a virtual machine environment and an install medium of the distribution you require. On installing the distribution it is a simple process of following the instructions
from its' home page.

Let us know if this is the information you require or if I am way off please explain a little further?
 
Old 10-24-2013, 06:39 PM   #3
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 85
It's difficult to advise you without knowing exactly how the virtual machine you were using was set up, but this takes you through installing Ubuntu Linux on VMWare (it's a fairly old version, and on Windows 7, but the process will be fairly similar):

www.howtogeek.com/howto/11287/how-to-run-ubuntu-in-windows-7-with-vmware-player/

You can find more about using Ubuntu here. Once you have it installed, you can install a C compiler, and other Linux development packages by installing the build-essential meta-package - either using Synaptic Package Manager or by opening a terminal window and running:

Code:
sudo apt-get install build-essential
 
1 members found this post helpful.
Old 10-24-2013, 07:24 PM   #4
John VV
Guru
 
Registered: Aug 2005
Posts: 13,515

Rep: Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804
Dev C++
is the Microsoft Mingw compiler GUI
it builds MICROSOFT windows .exe programs using linux code

now
you can use bloodshed's dev c to install the rest of MinGW in dev c
or better yet
use the MinGW installer ( it is now the same as the Cygwin installer )
then install dev c WITHOUT mingw

but
mingw will only build about 70 to 80% of linux software
 
1 members found this post helpful.
Old 10-24-2013, 07:27 PM   #5
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 453

Rep: Reputation: Disabled
Possibly a much simpler alternative which would also be more useful to someone whose primary operating system is windows would be "cygwin". basically it is a software suite that emulates a linux shell. It has compilers as well as many other familiar components.
The best part is that despite the fact that it will be a familiar environment, the programs you create will be native to windows.

Of course an even better alternative would be to switch to linux.
 
1 members found this post helpful.
Old 10-24-2013, 08:02 PM   #6
atlantis43
Member
 
Registered: Feb 2013
Posts: 228

Original Poster
Rep: Reputation: Disabled
I forgot to mention that all I'm looking for is to duplicate the "compiler" that I was using, to continue to learn C Programming. I'm not really looking for a new OS.

1)Grail:
Quote:
I understand installing a flavour of Linux and also having a compiler available within that distribution ... is this what you meant?
I'm not really sure-----. It's probably what your'e saying, ie-Linux-like. All I know is it used ^D to terminate code, as compared to ^L.
Quote:
Generally you need a virtual machine environment and an install medium of the distribution you require
So I presume that VMWare is a "virtual machine environment"? But I know nothing about the available distros, but perhaps the other posts in this thread cover that.

2)Robhogg:
Quote:
takes you through installing Ubuntu Linux on VMWare
Is Ubuntu Linux different from Ubuntu?
Do I have enough ram (2g) to install Ubuntu if I chose this route? Someone previously mentioned that I would need min of 8g. Also, as mentioned, I'm on WinXP. Win7 post-dates that. Is that a problem?

3)JohnVV: I'm just trying to learn C. The Dev C++ version I downloaded is 5.4.2: I'm not sure if it even has the MingW thing. I like the explicit error msgs that I was getting on my VMWare setup. I can't understand the errmsgs that I get from the Dev C++ compiler. Would that be improved if I were to pursue what you mentioned?
4) Mreff555:
Quote:
Of course an even better alternative would be to switch to linux.
Your suggestion is noted, but I don't think I would know what to do with all my old Windows apps. Most are so old (yet still quite functional) that they probably wouldn't be compatible with Linux-----and I'm too old for new tricks!

Last edited by atlantis43; 10-24-2013 at 08:08 PM.
 
Old 10-24-2013, 08:22 PM   #7
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 453

Rep: Reputation: Disabled
Quote:
Originally Posted by atlantis43 View Post
Your suggestion is noted, but I don't think I would know what to do with all my old Windows apps. Most are so old (yet still quite functional) that they probably wouldn't be compatible with Linux-----and I'm too old for new tricks!

Again I recommend looking in to cygwin. I was mostly joking about switching.
I run cygwin at work because I hate coding in a windows environment but I'm stuck with a windows machine at work. It works very well for this purpose and is much less involved than a virtual environment.

http://www.cygwin.com/
 
1 members found this post helpful.
Old 10-24-2013, 08:39 PM   #8
atlantis43
Member
 
Registered: Feb 2013
Posts: 228

Original Poster
Rep: Reputation: Disabled
mreff555:
Disregard this msg: I do have SP3 installed, so it should accept Cygwin.


Checked the site, and found
Quote:
The Cygwin DLL currently works with all recent, commercially released x86 32 bit and 64 bit versions of Windows, starting with Windows XP SP3.
Don't know whether I ever installed SP3. Would you know if there's any way to check on that?
I don't think that MS still supports XP, but I'll search for a possible download while awaiting a response.

Last edited by atlantis43; 10-24-2013 at 08:46 PM.
 
Old 10-24-2013, 08:54 PM   #9
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 453

Rep: Reputation: Disabled
Let us know if everything works out!!
 
Old 10-25-2013, 01:49 AM   #10
grail
Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 7,698

Rep: Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988
If it were me I would stick with vmware and install something basic like Slackware or Arch to give you just a command line and then away you go.

John_VV is very knowledgeable in the C/C++ arena so my only question to you would be do you need to compile Windows executables or can you compile in the Linux environment and run / test there as well?
If yes, my above suggestion may be easy, if no then follow other suggestions.
 
1 members found this post helpful.
Old 10-25-2013, 02:28 AM   #11
John VV
Guru
 
Registered: Aug 2005
Posts: 13,515

Rep: Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804
i used MinGW / gnuwin32
and
Cygwin for many years
even built KDE2 desktop in cygwin

but it really depends on what YOU want and need

make MS windows .exe's and windows .dll's
or
make linux binary's and ".so / .a" library's

Microsoft windows programming
or
Linux programming
there is a lot of overlap , most of the time .

MinGW will turn Linux !!!! source code into a Microsoft binary -- most of the time .

CygWin will run linux programs and ( 70% or so of them) and somewhat build linux source code and make linux binary's that can be ran through the cygwin.dll emulator !!!!


if you REALLY want to learn gcc and autotools
( personally a WAY WAY WAY better system than Microsoft's visual studio and 'VS express 8' )

there are development gui's like eclipse .
I tend to use QT graphics so i use "QT creator" and "qmake"

I would install one of the major distros
OpenSUSE 12.3
LinuxMint 15
-- both of these two are good for a New To Linux user----

-- if you want an EXPERIMENTAL operating system, one that might FORCE you to have to fix it and REALLY LEARN THINGS !!!!!
install Fedora 19
but fedora uses the newest of the new , and as a result YOU WILL !!! have to hack most programs to get them to build on fedora

but YOU WILL LEARN -- trial by FIRE

or Debian stable ( mint is a spin off )



so installing a linux OS is your best bet

Last edited by John VV; 10-25-2013 at 02:31 AM.
 
Old 10-25-2013, 10:20 AM   #12
atlantis43
Member
 
Registered: Feb 2013
Posts: 228

Original Poster
Rep: Reputation: Disabled
Grail;
Quote:
my only question to you would be do you need to compile Windows executables or can you compile in the Linux environment and run / test there as well?
Right now, simply trying to learn C----that's all! Just for the intellectual exercise. So what you're suggesting is probably the best.
John VV's suggestions are way over my head (at this point), though he's correct in that I simply want to make binary files, not win.exe.
I'll take a look at the things he has mentioned, more for curiosity and for possible later use.

Thanks to all
 
Old 10-25-2013, 02:07 PM   #13
John VV
Guru
 
Registered: Aug 2005
Posts: 13,515

Rep: Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804
well if you are going to stick with MS Windows
there is a FREE commandline ( cmd.exe) ONLY version of Microsofts compiler

VS express 8 i think is the current free one ( but it has been years scene i used VisualStudio )

but if you are going to STAY with Microisoft , then i would recommend that you BUY the current VS for a single HOME install

Mingw will NOT i repeat NOT BUILD Microsoft code!!!!
it can not , and will NOT

it only will build a Microsoft Windows *.exe & .dll( with the use of 'dlltool') using LINUX code
 
Old 10-26-2013, 11:59 AM   #14
atlantis43
Member
 
Registered: Feb 2013
Posts: 228

Original Poster
Rep: Reputation: Disabled
Quote:
-- if you want an EXPERIMENTAL operating system, one that might FORCE you to have to fix it and REALLY LEARN THINGS !!!!!
install Fedora 19
but fedora uses the newest of the new , and as a result YOU WILL !!! have to hack most programs to get them to build on fedora
So far, I've only tried, unsuccessfully, to re-install the VMWare player with the virtual machine that I had been using ("appliance50-19-VMWare", supplied for the on-line course) which I found was still available for download. Just to mention that the name Fedora did come up on the appliance, though I don't know if it was Fedora 19, but I think that's what the "19" means.
So next I'll look for an unmodified version of fedora 19 and try to install that.
Here's hoping it works!

Last edited by atlantis43; 10-26-2013 at 12:02 PM.
 
Old 10-26-2013, 05:54 PM   #15
atlantis43
Member
 
Registered: Feb 2013
Posts: 228

Original Poster
Rep: Reputation: Disabled
bad luck all around. Seems that my pc has gotten bad case of VMware resistance, and gets an "unrecoverable error" when trying to open VM whether I try to set up a VM either from my original Appliance or from Linux installation.
Time to give up with that. Maybe try Cygwin, or just learn how to use gdb on Dev C++.

Thanks again for all the attempted help.
 
  


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 (executing) ggc compiler and wxWidgets on Red Hat Linux 4 Mihir V Patankar Linux - Newbie 2 05-26-2009 05:36 PM
Installing g++ 3.4.6 linux compiler bavondrake Linux - Newbie 5 09-13-2007 11:36 AM
Installing c compiler RH sbabcock23 Linux - Newbie 11 01-11-2007 02:38 PM
Installing a compiler in linux jkumars Linux - Software 6 12-22-2004 07:15 AM


All times are GMT -5. The time now is 05:07 PM.

Main Menu
Advertisement
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