When I extract a tar file using this command: tar xvzf gcc-4.7.1.tar.gz
(This is the directory the tar
file is in:
cd /u/test/GCC-4.7.1/
)
The files were extracted but they are in /dev/...
(see below for actual file paths and names) - How do I install GCC from this point now?
This is probably related to my other question, but I am now using SCO 6 (not SCO 5.0.7) and a new GCC compiler.
The files I extracted are not in the same folder where the tar
file is either.
Extracting files
Below are the exact steps I took to extract and search for the files I extracted:
cd /u/test/GCC-4.7.1/
tar xvzf gcc-4.7.1.tar.gz
cd /u/test/GCC-4.7.1/
ls -la
The only file in there is the tar
file.
Edit
The tar
extracted successfully showing this:
key Device Block Size(K) Tape
0 /dev/rfdo48ds9 18 360 No
1 /dev/rfd148dx9 18 360 NO
2 /dev/rfd096ds15 10 1200 NO
3 /dev/rfd196ds15 10 1200 NO
4 /dev/rfd0135ds9 18 720 NO
5 /dev/rfd1135ds9 18 720 NO
6 /dev/rfd0135ds18 18 1440 NO
7 /dev/rfd1135ds18 18 1440 NO
8 /dev/rct0 20 0 YES
9 /dev/rctmini 20 0 YES
10 /dev/rdsk/fp03d 18 720 NO
11 /dev/rdsk/fp03h 18 1440 NO
12 /dev/rdsk/fp03v21 10 20330 NO
gzip -dc gcc-4.7.1.tar.gz | tar xAvf
and that has shown:tar: device argument required
- I executed this script as root. – Kevdog777 Jul 30 '12 at 12:19gzip -dc gcc-4.7.1.tar.gz | tar xAvf - > file-list 2>&1
, then send the file out somehow. FTP, email, Z-modem... – Warren Young Jul 30 '12 at 12:25tar: suppressing absolute pathnames
tar: 1 file(s) not extracted
– Kevdog777 Jul 30 '12 at 12:29>
symbol. It looks like it is trying to do something now. – Kevdog777 Jul 30 '12 at 12:31file-list 2>&1
a file / directory path? Where do the files go after extracting? It has been a while since I last did this, and forgot how I did it last time. – Kevdog777 Aug 17 '12 at 15:46file-list
is a file; it contains a list of files.2>&1
is a redirection operator. This is not the place to explain what it means to you. And the files go where they normally would, just as if you'd left the> file-list 2>&1
off. Did you not try any of this before asking? A simplels
would have answered all of your questions. – Warren Young Aug 17 '12 at 16:08ls
is, that will show a simple list of all files and folders in that folder. I didn't try any of this, as I did not know any of this before asking, hence why I asked in the first place. – Kevdog777 Aug 20 '12 at 07:35