Results 1 to 9 of 9

Thread: New to linux, how do i compile from tarballs?

  1. #1
    Junior Member
    Join Date
    Mar 2004
    Posts
    5

    New to linux, how do i compile from tarballs?

    I used linux a bit back in college, but i was mostly just using software already on the system. now that i have it on my own system, i find that nearly every program on the market for it requires that i first compile the program to use it. How do i do so?


    edit: added "from" to subject line for clarity.

  2. #2
    Senior Member registered user
    Join Date
    Feb 2004
    Posts
    949
    Ok what arre you trying to do? Compile a program code or make a tarball?

    I can't help with compiling a program but to make a tarball you can use Ark. I don't remember how to do it via command line though.

  3. #3
    Junior Member
    Join Date
    Mar 2004
    Posts
    5
    no, i'v got the tarball, what i need is the compiled program so i can run it. i know how to use ark to extract the tarball, but that just leaves me with a bunch of compiler-related files, that i don't know what to do with.

  4. #4
    Senior Member registered user
    Join Date
    Nov 2002
    Posts
    1,353
    Quote Originally Posted by Logrus
    no, i'v got the tarball, what i need is the compiled program so i can run it. i know how to use ark to extract the tarball, but that just leaves me with a bunch of compiler-related files, that i don't know what to do with.
    You will need to look at any README files or other documentation included in the archive to get precise instructions on how to compile, but it genearally consists of doing the following:

    From the shell navigate into the unarchived directory with cd.

    ./configure

    make

    as root: make install

  5. #5
    Senior Member registered user
    Join Date
    Nov 2002
    Posts
    1,353

    Re: New to linux, how do i compile from tarballs?

    Quote Originally Posted by Logrus
    I used linux a bit back in college, but i was mostly just using software already on the system. now that i have it on my own system, i find that nearly every program on the market for it requires that i first compile the program to use it. How do i do so?


    edit: added "from" to subject line for clarity.
    One more thing. You say that most programs require that you compile before you use them. Since you are new to Linux/Debian you might not know about apt. Currently there are over 13,000 packages available in the Debian repositories. Many programs that you will want to install will be included there. With Debian, installing them couldnt be easier. Simply do the following as root.

    Code:
    apt-get update
    Code:
    apt-get -s install name_of_program
    I always use -s to simulate an install before I go ahead with it this way you can see if there are going to be any dependency conflicts or if there are going to be programs removed because of your install. If you don't get any messages about dependency problems and if no programs are going to be removed then simply hit the up arrow on your keyboard to bring up the previous command and remove the -s. Now when you hit enter the program will be downloaded and installed. If you end up with dependency problems or if you see that programs are going to be removed then try the following.

    Code:
    apt-get -s -t unstable install name_of_program
    This should almost always work, but I still put the -s in there in order to simulate the install before I go through with it. If everything looks good, then simply hit the up arrow, remove the -s and hit enter. The program will be installed and dependencies will be satisfied. I suggest doing some more reading on apt. It's very powerful and one of the main reasons I use Debian.

  6. #6
    Junior Member
    Join Date
    Mar 2004
    Posts
    5
    ./configure: no such file or directory.

    as for the apt one, where can i get a list of progs it supports, and the names it uses for them?

  7. #7
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    929
    The simple answer is to do a google for

    name of program debian

    But a tool which will help is Synaptic. It's a GUI front end for apt-get and will list all programs available (but note that what is available will depend on your sources.list). To install Synaptic connect to the internet. As root (su to root) do:

    apt-get update

    when that's finished, (still as root) do:

    apt-get install synaptic

    ./configure: no such file or directory.
    You need to right click on the package and select "extract here" this will create a new directory. cd to that directory and then do

    ./configure

  8. #8
    Junior Member
    Join Date
    Mar 2004
    Posts
    5
    Quote Originally Posted by fingers99
    [snip]

    ./configure: no such file or directory.
    You need to right click on the package and select "extract here" this will create a new directory. cd to that directory and then do

    ./configure
    that's exactly what i did. with 2 different tarballs from 2 different sources, for 2 different programs.

  9. #9
    Junior Member
    Join Date
    Mar 2004
    Posts
    5
    Quote Originally Posted by fingers99
    The simple answer is to do a google for

    name of program debian

    But a tool which will help is Synaptic. It's a GUI front end for apt-get and will list all programs available (but note that what is available will depend on your sources.list). To install Synaptic connect to the internet. As root (su to root) do:

    apt-get update

    when that's finished, (still as root) do:

    apt-get install synaptic

    [snip]
    in konsole, from the root directory, "apt-get update" gives me 14 pages of error codes, then a new prompt. fails to find files, fails to create files, fails to fetch files from addresses. doesn't successfully do anything at all.

Similar Threads

  1. Good compile of 2.6.10 Anyone ??
    By BillS in forum Hardware & Booting
    Replies: 4
    Last Post: 03-15-2005, 12:17 PM
  2. How to compile
    By gamezealot in forum General Support
    Replies: 6
    Last Post: 01-20-2005, 08:54 PM
  3. how to compile with gcc 2.95
    By mu664life in forum General Support
    Replies: 2
    Last Post: 04-20-2004, 12:27 PM
  4. Drive Compile
    By csx_pilot in forum Hardware & Booting
    Replies: 1
    Last Post: 01-04-2004, 05:08 AM
  5. Kernel compile problem - first Knoppix kernel compile
    By Nigel_Tufnel in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 10-20-2003, 01:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


HPE ProLiant MicroServer Gen10 Plus with Power Adapter picture

HPE ProLiant MicroServer Gen10 Plus with Power Adapter

$599.00



HP ProLiant MicroServer Gen8 Tower Server Xeon E3-1220 v2 2.3GHz 16GB RAM picture

HP ProLiant MicroServer Gen8 Tower Server Xeon E3-1220 v2 2.3GHz 16GB RAM

$289.99



HP Proliant MicroServer Gen 8 2.23GHz Xeon 16GB RAM NO SSD picture

HP Proliant MicroServer Gen 8 2.23GHz Xeon 16GB RAM NO SSD

$249.99



Supermicro E300-12C Mini 1U Barebone X12SCV-LVDS LGA1200 SNK-P0073A4 w/ Adapter picture

Supermicro E300-12C Mini 1U Barebone X12SCV-LVDS LGA1200 SNK-P0073A4 w/ Adapter

$225.00



New Barebones Supermicro 5019D Server, 4C/8T Xeon D-2123T, 1U Rackmountable, 10G picture

New Barebones Supermicro 5019D Server, 4C/8T Xeon D-2123T, 1U Rackmountable, 10G

$404.99



Supermicro SYS-6048R-E1CR36N 36B LFF 4U Server  -V3- Choose CPUs/RAM - Wholesale picture

Supermicro SYS-6048R-E1CR36N 36B LFF 4U Server -V3- Choose CPUs/RAM - Wholesale

$4574.00



HP ProLiant Gen10 Micro Server AMD Opteron X3421, 8GB RAM * READ #0689 picture

HP ProLiant Gen10 Micro Server AMD Opteron X3421, 8GB RAM * READ #0689

$399.98



HP PROLIANT MICROSERVER GEN8 INTEL PENTIUM G2020T @ 2.50GHz, 8GB RAM, NO HDD/OS picture

HP PROLIANT MICROSERVER GEN8 INTEL PENTIUM G2020T @ 2.50GHz, 8GB RAM, NO HDD/OS

$164.98



Supermicro 938-16 16-LFF MicroCloud SuperServer 5038MR-H8TRF *No Blade Servers* picture

Supermicro 938-16 16-LFF MicroCloud SuperServer 5038MR-H8TRF *No Blade Servers*

$159.99



BOXX B157552 SuperMicro X10DRT-L 2x Intel 2630V4 NO RAM & SSD Server picture

BOXX B157552 SuperMicro X10DRT-L 2x Intel 2630V4 NO RAM & SSD Server

$137.99