Compiling a tar.gz source file in Windows

P

Peter Butter

I have downloaded a couple of free C compiliers and a source file.

What do i do now?

How do I compile it?






Adios,
Peter
 
O

Olof Lagerkvist

Peter said:
I have downloaded a couple of free C compiliers and a source file.

What do i do now?

You have to use gzip and tar to extract the files. These are included in
e.g. UnxUtils for Win32:
http://UnxUtils.sourceforge.net

Extract UnxUtils.zip and use the .exe files in usr\local\wbin. The
following command line will extract a .tar.gz in the current directory:
zcat your_downloaded_file.tar.gz | tar xf -
How do I compile it?

If one of your downloads was a compiler you can try that one. ;)
 
P

Phlip

Peter said:
I have downloaded a couple of free C compiliers and a source file.

What do i do now?

How do I compile it?

If it's in a tar.gz file, it probably needs a GNU environment.

However, installing an entire C compiler is a pain in the nuts. If you
install http://www.cygwin.com , it will come with the GNU environment, and
it also comes with a C compiler. The installer will just push it in for you.
Then you use the Start menu to find a new program called Bash, and start
typing.

Bash is more user friendly than CMD.EXE or COMMAND.COM, so its difficult to
start using. Hit Google.com to find a tutorial for it.
 
C

CBFalconer

Peter said:
I have downloaded a couple of free C compiliers and a source file.

What do i do now?

How do I compile it?

Take dust cover off compilers. Tamp source file down in intake.
Hold down with fingers while turning grinder crank. Make sure to
remove fingers just before squashing. You may find it necessary to
attach the grinder to some fairly solid surface first. Bake at 400
deg. F. in liberally buttered pan.
 
P

Phlip

Olof said:
You have to use gzip and tar to extract the files. These are included in
e.g. UnxUtils for Win32:
http://UnxUtils.sourceforge.net

Extract UnxUtils.zip and use the .exe files in usr\local\wbin. The
following command line will extract a .tar.gz in the current directory:
zcat your_downloaded_file.tar.gz | tar xf -


If one of your downloads was a compiler you can try that one. ;)

To install an entire compiler, that path could range from inconvenient to
agonizing. Just get CygWin.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top