Author Topic: I'm Confused,how To Install .tar.gz Files?  (Read 2223 times)

JUDAL

  • Newbie
  • *
  • Posts: 4
    • View Profile
I'm Confused,how To Install .tar.gz Files?
« on: November 05, 2005, 01:33:47 am »
I'm a newbie here and using console is hard for me....
I have a lot games or soft which is not ipks,but .tar.gz......
can someone tell me the way to install them??
THX A LOT

Borealid

  • Newbie
  • *
  • Posts: 46
    • View Profile
I'm Confused,how To Install .tar.gz Files?
« Reply #1 on: November 05, 2005, 10:02:59 pm »
Quote
I'm a newbie here and using console is hard for me....
I have a lot games or soft which is not ipks,but .tar.gz......
can someone tell me the way to install them??
THX A LOT
[div align=\"right\"][a href=\"index.php?act=findpost&pid=102395\"][{POST_SNAPBACK}][/a][/div]

You're going to have a bit of trouble, here.  See, .tar.gz is generally the source of a program; that means you have to compile it yourself to run it.  Your best bet would be to tell someone who's a more experienced linux user which programs you'd like an ipackage of, and if they're nice they'll make the .ipk for you.

The other way to do it would be to learn how to compile a program.  In general (for 99% of programs), there are only a few easy steps:
1. Extract the source code.
$ tar xvzf [filename].tar.gz
 Explanation:  .tar.gz is a compressed "tarball" of the source.  The 'x' in the above line indicates "extract", the 'v' is "verbose" (it'll show you what's being extracted), the 'z' is "gzip compression" (.gz means it's gzipped), the 'f' means "file" (you give it a filename).

2. Configure the source.
$ ./configure
 Explanation:  This'll look through your system and use autoconf (a program) to set up the program to build correctly for you.

3. Make the source.
$ make
 Explanation:  This causes the source to be automatically compiled using a "makefile".  In case you hadn't noticed, I'm not trying to explain how everything works here, only what you need to do to build the program.

4. Install the resulting program.
# make install
 Explanation:  Notice that's a root prompt, above.  The "install" command to make causes it to look in the makefile for a way to install the program, and then do what it needs to get the program installed for you.

That's it.  However, this won't build a program for the Zaurus (unless you do this ON the Zaurus, in which case it WILL be what you want) unless you go and set up a "cross-compilation environment".  But, in all likelihood, that's more than you want to get yourself into at the moment.  You can try installing gcc on your zaurus and going through the above steps to get your program, or you can just have someone else do it for you.  Are you ready to learn something new?  Do you have the time?  It's up to you.

JUDAL

  • Newbie
  • *
  • Posts: 4
    • View Profile
I'm Confused,how To Install .tar.gz Files?
« Reply #2 on: November 06, 2005, 01:31:36 am »
Really appreciate your detailed reply^-^
I'd like to learn it myself~~step by step!!
THX A LOOOOOOOOOOOOT!!!

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
I'm Confused,how To Install .tar.gz Files?
« Reply #3 on: November 06, 2005, 11:36:00 am »
Also note that sometime people distribute binaries in a tarball (because they can't be bothered to create an ipk), in this case you generally need to extract the contents and look at the dir structure to see if it contains the full path - if so, you can cd / && tar -zxvf the file.

I've also seen some web browsers which change filenames, so your ipkg file may have been renamed to tar.gz.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva