English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'm trying to compile Ruby (ruby-lang.org) source code in Xubuntu. What do I do with that GZ source code file?

2007-01-22 14:29:57 · 4 answers · asked by Anonymous in Computers & Internet Programming & Design

4 answers

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 )

2007-01-22 14:49:21 · answer #1 · answered by static 1 · 1 0

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.

2007-01-22 14:50:07 · answer #2 · answered by Deirdre H 7 · 0 1

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.

2007-01-22 15:02:32 · answer #3 · answered by Andy T 7 · 0 1

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.

2016-11-01 01:22:20 · answer #4 · answered by ? 4 · 0 0

fedest.com, questions and answers