Question:
How do I compile source code in Linux?
2007-01-22 19:29:57 UTC
I'm trying to compile Ruby (ruby-lang.org) source code in Xubuntu. What do I do with that GZ source code file?
Four answers:
static
2007-01-22 19:49:21 UTC
step 1: gunzip

step 2: tar -xvf

step 3: cd ./

step 4: ./configure ( notice the . before the /configure )

step 5: make

step 6: make install



HOWEVER, many options can exist. The above is a standard list of steps and is for c/c++ source code. If your file is 'ruby' source ( files ending in .rb ) then usually you just need to do 'ruby ./setup.rb'. Read the INSTALL or README file that is located in the directory created after untarring (Step 2 above )
Deirdre H
2007-01-22 19:50:07 UTC
gz isn't a source file, it's a zipped file. you need to unzip it, and then deal with it depending on what it is. If it's a source file, such as a .c file, you use the command cc *.c, where *.c is the filename.



I don't know about the programming language you are using, as I'm only a c programmer. The compiler should be able to be called on the command line.
Andy T
2007-01-22 20:02:32 UTC
Usually the steps are those commented on, GZ files usually .tar.gz and they are called tarballs, think what you got is a Zip file containing Ruby's SDK source.
?
2016-11-01 05:22:20 UTC
gz isn't a source report, this is a zipped report. you will be able to desire to unzip it, and then manage it reckoning on what it is. If this is a source report, which contain a .c report, you employ the command cc *.c, the place *.c is the filename. i do no longer comprehend concerning the programming language you're utilising, as i'm purely a c programmer. The compiler must be waiting to be reported as on the command line.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...