[Solved] Error with ".tgz" files on Slackware

Issues with installing under all GNU/Linux Distributions
Post Reply
shellycat
Posts: 6
Joined: Thu Apr 10, 2008 12:36 am

[Solved] Error with ".tgz" files on Slackware

Post by shellycat »

I ran this command in the "RPMS" directory:
tar -xvzf *.tgz

Here is the screen output:

Code: Select all

/opt/OOH680_m12_native_packed-1_en-US.9286/RPMS# tar -xvzf *.tgz
tar: openoffice.org-base-2.4.0-9286.i586.tgz: Not found in archive
tar: openoffice.org-calc-2.4.0-9286.i586.tgz: Not found in archive
tar: openoffice.org-core01-2.4.0-9286.i586.tgz: Not found in archive
tar: openoffice.org-core02-2.4.0-9286.i586.tgz: Not found in archive
tar: openoffice.org-core03-2.4.0-9286.i586.tgz: Not found in archive
tar: openoffice.org-core03u-2.4.0-9286.i586.tgz: Not found in archive
tar: openoffice.org-core04-2.4.0-9286.i586.tgz: Not found in archive
tar: openoffice.org-core04u-2.4.0-9286.i586.tgz: Not found in archive
tar: openoffice.org-core05-2.4.0-9286.i586.tgz: Not found in archive
tar: openoffice.org-core05u-2.4.0-9286.i586.tgz: Not found in archive
tar: openoffice.org-core06-2.4.0-9286.i586.tgz: Not found in archive
tar: openoffice.org-core07-2.4.0-9286.i586.tgz: Not found in archive
tar: openoffice.org-core08-2.4.0-9286.i586.tgz: Not found in archive
tar: openoffice.org-core09-2.4.0-9286.i586.tgz: Not found in archive
tar: openoffice.org-core10-2.4.0-9286.i586.tgz: Not found in archive
tar: openoffice.org-draw-2.4.0-9286.i586.tgz: Not found in archive
tar: openoffice.org-emailmerge-2.4.0-9286.i586.tgz: Not found in archive
tar: openoffice.org-gnome-integration-2.4.0-9286.i586.tgz: Not found in archive
tar: openoffice.org-graphicfilter-2.4.0-9286.i586.tgz: Not found in archive
tar: openoffice.org-headless-2.4.0-9286.i586.tgz: Not found in archive
tar: openoffice.org-impress-2.4.0-9286.i586.tgz: Not found in archive
tar: openoffice.org-javafilter-2.4.0-9286.i586.tgz: Not found in archive
tar: openoffice.org-kde-integration-2.4.0-9286.i586.tgz: Not found in archive
tar: openoffice.org-math-2.4.0-9286.i586.tgz: Not found in archive
tar: openoffice.org-onlineupdate-2.4.0-9286.i586.tgz: Not found in archive
tar: openoffice.org-pyuno-2.4.0-9286.i586.tgz: Not found in archive
tar: openoffice.org-testtool-2.4.0-9286.i586.tgz: Not found in archive
tar: openoffice.org-writer-2.4.0-9286.i586.tgz: Not found in archive
tar: openoffice.org-xsltfilter-2.4.0-9286.i586.tgz: Not found in archive
tar: Error exit delayed from previous errors
Now, those archives are certainly there...I don't get this message.
Though I realize it's not of any help to installation, and I will probably have to re-do it, I also ran the same command in the desktop-integration directory (with "*slackware*.tgz") with no such error.

I have already installed OO via command-line twice in the last 2 weeks, so I don't get why I'm having this problem now. Different computer, same exact OS, Slackware 12.

If there is already a post on this, I apologize, I have to leave now for a meeting...just move my post and notify me. I did a quick search and didn't find anything, but can't do more detailed searches at the moment.
Last edited by shellycat on Thu Apr 10, 2008 3:43 pm, edited 1 time in total.
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: Error with ".tgz" files on Slackware (never got this before)

Post by acknak »

Exactly what are you trying to accomplish?

Just offhand, I'd say you get that message because the *.tgz files are already present in that directory.

Not knowing how a Slackware install is normally done, I can't begin to guess what you expect to happen.
AOO4/LO5 • Linux • Fedora 23
User avatar
kingfisher
Volunteer
Posts: 2123
Joined: Tue Nov 20, 2007 10:53 am

Re: Error with ".tgz" files on Slackware (never got this before)

Post by kingfisher »

It looks as though you are trying to unpack some .tgz files but the directory contains .rpm files. :?
Apache OpenOffice 4.1.9 on Linux
shellycat
Posts: 6
Joined: Thu Apr 10, 2008 12:36 am

Re: Error with ".tgz" files on Slackware (never got this before)

Post by shellycat »

acknak wrote:Exactly what are you trying to accomplish?
Just offhand, I'd say you get that message because the *.tgz files are already present in that directory...
I'm trying to unpack the *.tgz files to install. Maybe I am doing something wrong because I don't have my notes with me (I don't install much). These are the steps I did:
  1. Downloaded OO to the root directory..downloaded the 1 big .tgz file.
  2. cd /opt
  3. tar -xzvf /root/OOo_2.4.0_LinuxIntel_install_wJRE_en-US.tar.gz
    (This unpacks a bunch of .rpm files, which is how you install on Debian.)
  4. cd /opt/OOH680_m12_native_packed-1_en-US.9286/RPMS
[*]rpm2tgz *.rpm (This converts all .rpm to .tgz files. And I checked...the .tgz files were created.)
[*]tar -xzvf /opt/OOH680_m12_native_packed-1_en-US.9286/RPMS/*.tgz
(This is where I got the error. You also have to do the rpm2tgz and tar in the /desktop-integration folder to create menu entries and icons, which did not give me this error. That is of no help without the program installed first...but I tried it just to see if I would get the error in that directory too, and I don't.)
kingfisher wrote:It looks as though you are trying to unpack some .tgz files but the directory contains .rpm files. :?
It did, and I know that should not be a problem because I specified *.tgz, but nonetheless, I deleted the .rpm files before trying the command again, and it still didn't work.

I'm thinking I am forgetting some basic thing about using the tar command the second time, but since the redo of the OpenOffice website/wiki, I can't find any instructions except for doing an .rpm install. Although there were errors in the instructions for non-rpm-users, at least they were there and the errors were easy to figure out...in fact, I contacted (someone) about it.

But if I was doing the tar command wrong the second time, it should not work in the /desktop-integration directory, either. So it has to be another problem. Thing is, there are only a few steps to this process, so I didn't think I needed to copy them down before I left the house this afternoon.

Something else that confuses me now is, I see the .tgz files I created both in the /opt and in the /opt/OOH680_m12_native_packed-1_en-US.9286 directories...probably I ran the command once without cd-ing into the correct directory, unless the OO version has changed in the last 2 weeks. In any case, though I am sure I accidentally ran the rpm2tgz command while in the wrong directory at least once, I also ran it in the right one, since the .tgz files are there!
shellycat
Posts: 6
Joined: Thu Apr 10, 2008 12:36 am

Re: Error with ".tgz" files on Slackware (never got this before)

Post by shellycat »

I'm thinking maybe I don't run tar twice...maybe I just run the setup script, though I think that's wrong.
Anyways, after deleting everything except the original download, I tried it all again, and got the same errors.

I thought maybe I was remembering wrong and I am just supposed to run the "./setup" after conversion (after CD-ing from RPMS to "../"), so I tried that, and got this error:

Code: Select all

Checksumming...
Extracting ...
93128 blocks
Done.
Using /var/tmp/install_5021/usr/java/jre1.6.0_04/bin/java
java version "1.6.0_04"
Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode)

Running installer
/var/tmp/install_5021/usr/java/jre1.6.0_04/bin/java -DHOME=/root -DJRE_FILE=jre-6u4-linux-i586.rpm -jar JavaSetup.jar
System locale: en_US
Root privileges
OS: Linux
Mode: installation
Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
        at java.awt.GraphicsEnvironment.checkHeadless(Unknown Source)
        at java.awt.Window.<init>(Unknown Source)
        at java.awt.Frame.<init>(Unknown Source)
        at java.awt.Frame.<init>(Unknown Source)
        at javax.swing.SwingUtilities$SharedOwnerFrame.<init>(Unknown Source)
        at javax.swing.SwingUtilities.getSharedOwnerFrame(Unknown Source)
        at javax.swing.JDialog.<init>(Unknown Source)
        at javax.swing.JDialog.<init>(Unknown Source)
        at javax.swing.JDialog.<init>(Unknown Source)
        at org.openoffice.setup.SetupFrame.<init>(SetupFrame.java:117)
        at org.openoffice.setup.Main.main(Main.java:62)
root@LX-SCHLIKER:/opt/OOH680_m12_native_packed-1_en-US.9286# cd RPMS
root@LX-SCHLIKER:/opt/OOH680_m12_native_packed-1_en-US.9286/RPMS# ../setup
Checksumming...
Extracting ...
93128 blocks
Done.
Using /var/tmp/install_5126/usr/java/jre1.6.0_04/bin/java
java version "1.6.0_04"
Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode)

Running installer
/var/tmp/install_5126/usr/java/jre1.6.0_04/bin/java -DHOME=/root -DJRE_FILE=jre-6u4-linux-i586.rpm -jar JavaSetup.jar
System locale: en_US
Root privileges
OS: Linux
Mode: installation
Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
        at java.awt.GraphicsEnvironment.checkHeadless(Unknown Source)
        at java.awt.Window.<init>(Unknown Source)
        at java.awt.Frame.<init>(Unknown Source)
        at java.awt.Frame.<init>(Unknown Source)
        at javax.swing.SwingUtilities$SharedOwnerFrame.<init>(Unknown Source)
        at javax.swing.SwingUtilities.getSharedOwnerFrame(Unknown Source)
        at javax.swing.JDialog.<init>(Unknown Source)
        at javax.swing.JDialog.<init>(Unknown Source)
        at javax.swing.JDialog.<init>(Unknown Source)
        at org.openoffice.setup.SetupFrame.<init>(SetupFrame.java:117)
        at org.openoffice.setup.Main.main(Main.java:62)
Unless there is some problem with running this as root? I'm pretty sure there shouldn't be.
(Yes, I know the security reasons, but this install will only last less than 2 months on my student hard drive, then I will wipe it out when I'm done with the class for which I installed XP on it, so I am not at all concerned about that. So as long as root has its password, that's enough security for my situation. And most people here are total newbies at Linux, the few that are forced to use it.)
User avatar
kingfisher
Volunteer
Posts: 2123
Joined: Tue Nov 20, 2007 10:53 am

Re: Error with ".tgz" files on Slackware (never got this before)

Post by kingfisher »

The Set-Up Guide I have (may be aged) states:
Setup Guide wrote:Running rpm2tgz produces a .tgz file which can be installed using the installpkg or pkgtool utility.
There are some set-up guides on the website. There may be newer ones hidden in the wiki.
Apache OpenOffice 4.1.9 on Linux
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: Error with ".tgz" files on Slackware (never got this before)

Post by acknak »

kingfisher wrote:[*]rpm2tgz *.rpm (This converts all .rpm to .tgz files. And I checked...the .tgz files were created.)
[*]tar -xzvf /opt/OOH680_m12_native_packed-1_en-US.9286/RPMS/*.tgz
(This is where I got the error. ...
Right. I see now, thanks for spelling it out.
Look at the second tar command for a second. When you run that, the wildcard is expanded by the shell before the tar command is run. So it's equivalent to this:
  • tar -xzvf file1.tgz file2.tgz file3.tgz ...
and passing more than one name to tar means that it should (using my example) open file1.tgz and extract "file2.tgz" and "file3.tgz", and so on.

Of course, those tar files don't exist in file1.tgz, so you get the error.

It's a bit of a nasty trick.

If you want to unpack all the archives in the directory, you have to do something like this:
  • for f in *.tgz; do tar xvzf "$f"; done
Now, tar is run once for each tar archive in the directory, like so:
  • tar -xzvf file1.tgz
    tar -xzvf file2.tgz
    tar -xzvf file3.tgz
    ...
AOO4/LO5 • Linux • Fedora 23
shellycat
Posts: 6
Joined: Thu Apr 10, 2008 12:36 am

Re: Error with ".tgz" files on Slackware (never got this before)

Post by shellycat »

kingfisher wrote:The Set-Up Guide I have (may be aged) states:
Setup Guide wrote:Running rpm2tgz produces a .tgz file which can be installed using the installpkg or pkgtool utility.
There are some set-up guides on the website. There may be newer ones hidden in the wiki.
Yes, but I have never used "pkgtool", and though I should get around to setting it up sometime (and on a previous try one thing led to another dependency, and another, and I was just never able to find the actual first step I needed to do to get it installed)...I just don't have several hours to devote to that method when simply using tar only takes a minute or two.

In other words, manually installing OO is so easy there is no need to go through all that extra hullaballoo. And I just can't do it right now.

Previously, within the .rpm instructions for Debian users, there were "if you don't use .rpm" instructions.


[Sidenote: BTW, I checked last night, and I did not write down these instructions. I probably just had the the webpage pulled up while I installed. Unfortunately, these instructions are totally missing from the new Wiki and Docs.]
shellycat
Posts: 6
Joined: Thu Apr 10, 2008 12:36 am

Re: Error with ".tgz" files on Slackware (never got this before)

Post by shellycat »

acknak wrote:If you want to unpack all the archives in the directory, you have to do something like this:
  • for f in *.tgz; do tar xvzf "$f"; done
Now, tar is run once for each tar archive in the directory, like so:
  • tar -xzvf file1.tgz
    tar -xzvf file2.tgz
    tar -xzvf file3.tgz
    ...
Thanks...I know I didn't do that before, but since I don't know exactly what I did do, I will try it. Maybe it will solve the error.
shellycat
Posts: 6
Joined: Thu Apr 10, 2008 12:36 am

Re: Error with ".tgz" files on Slackware (never got this before)

Post by shellycat »

Doing this...

Code: Select all

for f in /opt/OOH680_m12_native_packed-1_en-US.9286/RPMS/*.tgz; do tar xvzf "$f"; done
tar -xzvf /opt/OOH680_m12_native_packed-1_en-US.9286/RPMS/desktop-integration/*.tgz
...did solve my problem. Thank you!

Note that you have to run the command straight when there is only one file, as in the desktop-integration directory.
I should also mention the only reasons the paths above point to "/opt" is because I wasn't sure, initially, if it was necessary to unpack to there...it's not.
FYI...before I was using OO 2.2...maybe something is different.
ciotog
Posts: 3
Joined: Mon Apr 14, 2008 4:40 pm

Re: Error with ".tgz" files on Slackware (never got this before)

Post by ciotog »

shellycat wrote:Yes, but I have never used "pkgtool", and though I should get around to setting it up sometime (and on a previous try one thing led to another dependency, and another, and I was just never able to find the actual first step I needed to do to get it installed)...I just don't have several hours to devote to that method when simply using tar only takes a minute or two.

In other words, manually installing OO is so easy there is no need to go through all that extra hullaballoo. And I just can't do it right now.
pkgtool comes already installed on any standard Slackware system, you shouldn't need to go through any steps to get it installed.

The problem with using tar to install OO is that you then can't use upgradepkg to upgrade it later, should you want to do that.

I also fail to see how running "installpkg *.tgz" is harder than the accepted solution.
Post Reply