LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-10-2007, 07:46 PM   #1
SkinnerC
Member
 
Registered: Dec 2007
Location: New England, USA
Distribution: Ubuntu 8.04 LTS, Slackware 12.2
Posts: 138
Blog Entries: 1

Rep: Reputation: 20
Why can't I install a *.tar.gz or a *.tar.bz2 file?


Go easy folks, I'm a noob. I'm trying to install 2 files. first is a .tar.gz and the next is a .tar.bz2. The message I keep getting is 'cannot install *.* package does not end in .tgz'

What am I doing wrong? What do I need to do to correct this? I did search the forum, but I didn't find an answer. This may be due to my inexperience with searching.

Any help is appreciated.

Thanks
 
Old 12-10-2007, 08:07 PM   #2
rg3
Member
 
Registered: Jul 2007
Distribution: Slackware Linux
Posts: 507

Rep: Reputation: Disabled
http://slackwiki.org/Life_of_a_Software_Package
 
Old 12-10-2007, 08:07 PM   #3
happybear
LQ Newbie
 
Registered: Jul 2006
Location: Pilipinas
Distribution: slackware-current
Posts: 16

Rep: Reputation: 1
slackware packages end in .tgz, maybe those are source files, you have to compile them manually, may i ask what package/s are you trying to install? maybe there's already an available one somewhere...
 
Old 12-10-2007, 10:39 PM   #4
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 13.37 Android 4.0
Posts: 2,248

Rep: Reputation: 46
Code:
tar -xvf filename.tar.gz
Same for the other one.

Code:
man tar

Last edited by masonm; 12-10-2007 at 10:41 PM.
 
Old 12-10-2007, 10:53 PM   #5
juanctes
Member
 
Registered: Dec 2004
Location: Argentina, corrientes (far from buenos aires, to the north)
Distribution: Ubuntu :(
Posts: 74

Rep: Reputation: 15
Hi, that error message i think it is from the "instalpkg" command taht accepts only *.tgz files.. you have a compressed and packaged file here, and the compression is in two formats: gz and bz2- you dont install them at most you can decompress them at the right location by doing this:
cd /right/location/
tar -xzf /file/location/FILE.tar.gz
tar -xjf /file/location/FILE.tar.bz2
-x for unpacking
-z/j for decompressing using different algoritms.
-f for file is what follows..
 
Old 12-11-2007, 02:44 AM   #6
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Rep: Reputation: 30
You don't need to use -z or -j anymore. All you need is

tar xvf whatever.tar.gz

tar xvf whatever.tar.bz2
 
Old 12-11-2007, 03:42 AM   #7
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,752

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
If you have src2pkg installed this command: 'src2pkg -I name-of-tarball' might take care of unpacking, configuring, compiling and installing it, or converting it into package form if it happens to be pre-compiled binary content. Works that easy about 80% of the time.
 
Old 12-11-2007, 05:31 AM   #8
SkinnerC
Member
 
Registered: Dec 2007
Location: New England, USA
Distribution: Ubuntu 8.04 LTS, Slackware 12.2
Posts: 138
Blog Entries: 1

Original Poster
Rep: Reputation: 20
I'm trying to install ddclient. I am trying to set up internet access with a dynamic IP so this client is supposed to update my IP with dydnc.com

I will try some of the fixes offered here when I get home tonight.

Thanks
 
Old 12-11-2007, 10:00 AM   #9
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,752

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
I've created a package of the program for you along with src2pkg build script and other necessary file for building from source. But my website hosts ftp server seems to be down at the moment and I haven't been able to upload it.
Getting that to work on Slackware won't be a trivial matter as it requires modification of several config files and it depends on which way you want to use it -I mean on how you connect to the net.
 
Old 12-11-2007, 10:21 AM   #10
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Rep: Reputation: 30
Quote:
I'm trying to install ddclient. I am trying to set up internet access with a dynamic IP so this client is supposed to update my IP with dydnc.com
Do you mean dyndns.com? Sometimes a router will have a setting in it to automatically update your ip. My netgear router has a setting specifically for dyndns.com.
 
Old 12-11-2007, 02:51 PM   #11
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,752

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
Try this. Download and install src2pkg from here:
http://distro.ibiblio.org/pub/linux/...1.7-i486-1.tgz

Then go into your home directory and create a new empty directory. Then, while still on line, cd into the new directory, open an xterm there and paste this into the command-line:
'src2pkg http://distro.ibiblio.org/pub/linux/...client.src2pkg'
A few seconds later you'll have a freshly-built package of ddclient in your /tmp directory which you can then install(as root) with installpkg /tmp/ddclient-3.6.7-i486-1.tgz

Or, you can download the already-made package from here:
http://distro.ibiblio.org/pub/linux/...dclient-3.6.7/

You'll need to do some configuration to get it working the way you want, like editing the /etc/ddclient.conf file and making /etc/rc.d/rc.ddclient executable. If you are going to use it with ppp, then you may need to copy the sample ip-up file into the /etc/ppp dir. Anyway, read the docs in /usr/doc/ddclient-3.6.7. let me knoe how it goes in case I need to change anything in the package.
 
Old 12-13-2007, 10:03 AM   #12
SkinnerC
Member
 
Registered: Dec 2007
Location: New England, USA
Distribution: Ubuntu 8.04 LTS, Slackware 12.2
Posts: 138
Blog Entries: 1

Original Poster
Rep: Reputation: 20
Still working on this.

Or, you can download the already-made package from here:
http://distro.ibiblio.org/pub/linux/...dclient-3.6.7/

You'll need to do some configuration to get it working the way you want, like editing the /etc/ddclient.conf file and making /etc/rc.d/rc.ddclient executable. If you are going to use it with ppp, then you may need to copy the sample ip-up file into the /etc/ppp dir. Anyway, read the docs in /usr/doc/ddclient-3.6.7. let me knoe how it goes in case I need to change anything in the package.[/QUOTE]

I am now reading (gasp!!) the /doc files that came with this and I will be updating my setup accordingly as soon as I understand it. Thanks for the help sofar and I will keep you posted.

Bill
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install pidgin as a .tar.bz2 file epich Linux - Software 10 03-24-2008 08:26 AM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 02:53 AM
How you install file with TAR.BZ2 extension?.. thanks suse2166 Linux - Software 14 01-03-2005 04:55 PM
problem unzipping a tar.bz2 file tar: Error is not recov jyome Linux - Software 4 09-04-2003 01:04 PM


All times are GMT -5. The time now is 08:24 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration