LinuxQuestions.org
Review your favorite Linux distribution.
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 10-08-2002, 10:05 PM   #1
tigerflag
Member
 
Registered: Aug 2002
Location: Phoenix, AZ
Distribution: PCLinuxOS 2012.08
Posts: 428

Rep: Reputation: 30
Slackware 8.1: "installpkg" command not working?


I'm new to Slackware, new to command-line, totally frustrated...
Just so you know, I've RTFMed, studied man pages (after fighting with BASH to figure out how to do ANYthing), searched all over the Internet before finally bothering you guys.
I have the 4-cd boxed set from Slackware, along with the Slackware Linux Essentials book. Did a full installation, except for Emacs. Trying to install some packages from the sourcecode/additional applications cd, in the "extra" directory.

I've tried "su" to root, and I've tried logged in as root. Same results both ways. Here's what happens:

I cd to "/mnt/cdrom" and then do "ls".
I manage to get to the "Extra" folder and do "ls" again.
I see a package, say, blackbox.
Go into the blackbox folder and see "blackbox-0.62.1-i386-1.tgz" along with a README.txt or something like that.
I do "installpkg blackbox-0.62.1-i386-1.tgz" (w/out the "") and get the following:

"cannot install blackbox-0.62.1-i386-1.tgz package does not end in .tgz ''

Same thing happenes when I try to install Java Runtime Environment from the same Extra folder. I figure I'm doing something wrong that will be obvious to someone, yet when I did "installpkg parted-blah-blah.tgz" it worked perfectly!!!

Using the shell is all hit-and-miss (mostly miss) with me, so if you have any suggestions, can you please tell me EXACTLY what to type?

Thanks for your time...

Siri Amrit
 
Old 10-08-2002, 10:53 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 55
Can be a bad archive,
try
file /path/to/blackbox/blackbox-yada.yada.tgz
What do you get?
 
Old 10-09-2002, 02:41 PM   #3
tigerflag
Member
 
Registered: Aug 2002
Location: Phoenix, AZ
Distribution: PCLinuxOS 2012.08
Posts: 428

Original Poster
Rep: Reputation: 30
Ok, I did all of the following both as user and after su to root. Tried the path you recommended as well as the long path with /mnt/cdrom. Got the same result each time:

input: file /path/to/blackbox-0.62.1/blackbox-0.62.1-i386.tgz
output: Can't stat '/path/to/blackbox-0.62.1/blackbox-0.62.1-i386.tgz' (No such file or directory).

input: file /path/to/java2-runtime-environment/j2re-1.4.0_01-i586.tgz
output: Can't stat '/path/to/java2-runtime-environment/j2re-1.4.0_01-i586.tgz' (No such file or directory).

input: file /path/to/mnt/cdrom/extra/java2-runtime-environment/j2re-1.4.0_01-i586.tgz
output: Can't stat '/path/to/mnt/cdrom/extra/java2-runtime-environment/j2re-1.4.0_01-i586.tgz' (No such file or directory).

input: file /path/to/parted-1.6.1/parted-1.6.1-i386.tgz
output: Can't stat '/path/to/parted-1.6.1/parted-1.6.1-i386.tgz' (No such file or directory).

input: file /path/to/mnt/cdrom/extra/parted-1.6.1/parted-1.6.1-i386.tgz
output: Can't stat '/path/to/mnt/cdrom/extra/parted-1.6.1/parted-1.6.1-i386.tgz' (No such file or directory).

Any ideas/suggestions are MOST appreciated!
 
Old 10-09-2002, 06:02 PM   #4
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 55
What I ment with /path/to prefix you have to substitute with a real path to the file. You said you tried "the long path", so in that long path get rid of /path/to prefix
file /mnt/cdrom/extra/blackbox-0.62.1/blackbox-0.62.1-i386.tgz
 
Old 10-09-2002, 06:18 PM   #5
bynaar
Member
 
Registered: Jul 2002
Posts: 141

Rep: Reputation: 15
Cool

I have experienced the same phenomen . . .

qickfix: run pkgtool as root instead , and chose to install from other directory option.

I worked out fine for me.

It would be nice to know why the installpkg tool 'don't wanna play' so to speak . .
 
Old 10-12-2002, 02:44 PM   #6
tigerflag
Member
 
Registered: Aug 2002
Location: Phoenix, AZ
Distribution: PCLinuxOS 2012.08
Posts: 428

Original Poster
Rep: Reputation: 30
Sorry for taking so long to get back to the forum with this. Life took a few wide turns the last few days...

When I typed in the correct file path for blackbox it returned the following full information:
gzip compressed data, deflated, original filename, 'blackbox-0.62.1-i386-1.tar' last modified: Mon May 6 00:07:39 2002 max compression, os: Unix

When I did the same for java2-runtime-environment it also returned full information on it. Exactly same as above, only specific to: 'j2re-1.4.0_01-i586-1.tar' for the original filename, and different dates for it.

Still, when I tried to do installpkg, it failed with 'can't stat...(No such file or directory). Maybe it's typos on my part, but I'm trying to be really careful.

On a better note, thanks to Bynaar's instructions, I was able to use pkgtool.

Still can't figure out how to install something like OpenOffice 1.0.x from a .tar file, but that can wait for another day...
 
  


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
"service __ restart" bash command isn't working case1984 Linux - Newbie 9 04-10-2008 02:35 PM
rpm -bp command not working says "-bp: unknown option" Niceman2005 Linux - Software 2 11-08-2004 01:36 AM
KDE's "Run Command" not working for URLs scarr2508 Linux - Newbie 0 10-28-2004 04:58 AM
bash command is Not working in "root" jchun Linux - Newbie 2 10-26-2004 01:27 PM
"make" command not working in shell unasriseth Linux - Newbie 6 05-25-2004 09:08 AM


All times are GMT -5. The time now is 10:55 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