Click to See Complete Forum and Search --> : MySQL install difficulties


BeAvE
01-23-2003, 11:04 PM
Ok I have Apache up and running with PHP enabled on my Mandrake 9.0 machine. Now I'm trying to install MySQL on it. I'm having troubles with the install though.

I'm following this tutorial

http://perl.about.com/library/weekly/aa110800a.htm

and getting this error

[root@localhost local]# gzip -dc /tmp/mysql-3.23.54a-pc-linux-i686.tar.gz | tar -xvf
tar: option requires an argument -- f
Try `tar --help' for more information.
[root@localhost local]#

I've looked at tar --help and I've tried every iteration of xvf I can think of (--x --v --f, --xvf, ...ad naseum). I'm pretty green at the command line so I'm sure there's some dumb error there, but I just can't catch it. Any help will be greatly appreciated.

Thanks in advance.

theN
01-24-2003, 02:30 AM
You don't need to use gzip. tar has a built-in filter to extract *.gz files.

Sorry I don't remember the exact flags, please verify this -
tar xzvf mysql-3.23.54a-pc-linux-i686.tar.gz.
The file will get extracted into a directory with the name mysql-3.23.54a-pc-linux-i686

Check out man tar. It would show filters for *.gz, *.bz2 files.

/me vaguely remembers the f flag means; name of the file to be extracted follows (or something along those lines).

HTH
theN