View previous topic :: View next topic |
Author |
Message |
dark_priest Apprentice
Joined: 18 Aug 2003 Posts: 227 Location: NL
|
Posted: Thu Sep 25, 2003 7:02 am Post subject: Tar doesnt work anymore [solved] |
|
|
just did a fresh install for my webserver
downlaoded apche and php
and tried to UnTar them to start installation ...
Code: |
bzip2: (stdin) is not a bzip2 file.
tar: Child returned status 2
tar: Error exit delayed from previous errors
|
at first i thought the file i downloaded was corupted or something, but then i tried to untar apache, and the same thing happened...
anyone got a clue? _________________ [ Censored by unpopular demand]
Last edited by dark_priest on Sat Sep 27, 2003 8:45 am; edited 1 time in total |
|
Back to top |
|
|
nephros Advocate
Joined: 07 Feb 2003 Posts: 2139 Location: Graz, Austria (Europe - no kangaroos.)
|
Posted: Thu Sep 25, 2003 8:26 am Post subject: |
|
|
Hmm, this may seem stupid, but perhaps it's not a bzip2 file but a .gz? Or even an uncompressed tarball?
Have you run "file <filename>" on the files to check that? _________________ Please put [SOLVED] in your topic if you are a moron. |
|
Back to top |
|
|
dark_priest Apprentice
Joined: 18 Aug 2003 Posts: 227 Location: NL
|
Posted: Thu Sep 25, 2003 11:47 am Post subject: |
|
|
Code: |
server root # ls
apache_1.3.28.tar.gz php-4.3.3.tar.gz
server root # file apache_1.3.28.tar.gz
apache_1.3.28.tar.gz: gzip compressed data, was "apache_1.3.28.tar", from Unix, max compression
server root # file php-4.3.3.tar.gz
php-4.3.3.tar.gz: gzip compressed data, was "php-4.3.3.tar", from Unix, max compression
|
its supposed to be .tar.gz right?
Heck, i got them from the official sites! and they worked fine a day ago !
(reinstalled the server cause i make a mess of PHP/apache) _________________ [ Censored by unpopular demand] |
|
Back to top |
|
|
dark_priest Apprentice
Joined: 18 Aug 2003 Posts: 227 Location: NL
|
Posted: Thu Sep 25, 2003 11:55 am Post subject: |
|
|
i untar like this
Code: |
tar -xvjpf apache.xx.XX.xx.tar.gz
|
fully expecting it to untar in the directory is m in, just like yesterday _________________ [ Censored by unpopular demand] |
|
Back to top |
|
|
nephros Advocate
Joined: 07 Feb 2003 Posts: 2139 Location: Graz, Austria (Europe - no kangaroos.)
|
Posted: Thu Sep 25, 2003 12:16 pm Post subject: |
|
|
the are .tar.gz files. That means they are compressed with gzip. (as "file" states correctly.)
tar -j specifies bzip2 compression, and is used for creating and extracting .tar.bz2 files.
tar -z is used for gzip (de)compression.
So either you use tar -xzvf <file>.tar.gz to extract those, or you recompress them: gunzip <file>.tar.gz && bzip2 <file>.tar
BTW: Any reason why you don't use portage to install? _________________ Please put [SOLVED] in your topic if you are a moron. |
|
Back to top |
|
|
dark_priest Apprentice
Joined: 18 Aug 2003 Posts: 227 Location: NL
|
Posted: Thu Sep 25, 2003 12:44 pm Post subject: |
|
|
yes, i havent the foggiets clue of how to emerge apache with a php module embedded!
i will be your slave-bitch for a week if you can tell me how _________________ [ Censored by unpopular demand] |
|
Back to top |
|
|
nephros Advocate
Joined: 07 Feb 2003 Posts: 2139 Location: Graz, Austria (Europe - no kangaroos.)
|
Posted: Thu Sep 25, 2003 2:08 pm Post subject: |
|
|
dark_priest wrote: | i will be your slave-bitch for a week if you can tell me how | a/s/l? _________________ Please put [SOLVED] in your topic if you are a moron. |
|
Back to top |
|
|
nephros Advocate
Joined: 07 Feb 2003 Posts: 2139 Location: Graz, Austria (Europe - no kangaroos.)
|
Posted: Thu Sep 25, 2003 2:14 pm Post subject: |
|
|
Doesn't emerge mod_php do the trick?
I am not really familiar with apache+php, do you mean by embedded you don't want it loaded as a module? _________________ Please put [SOLVED] in your topic if you are a moron. |
|
Back to top |
|
|
dark_priest Apprentice
Joined: 18 Aug 2003 Posts: 227 Location: NL
|
Posted: Thu Sep 25, 2003 4:18 pm Post subject: |
|
|
yes i do
/me is a noob _________________ [ Censored by unpopular demand] |
|
Back to top |
|
|
nephros Advocate
Joined: 07 Feb 2003 Posts: 2139 Location: Graz, Austria (Europe - no kangaroos.)
|
Posted: Fri Sep 26, 2003 1:13 pm Post subject: |
|
|
We all are.
I don't think there is a way to do it with portage right now, but you can always edit the apache ebuild to do it. _________________ Please put [SOLVED] in your topic if you are a moron. |
|
Back to top |
|
|
dark_priest Apprentice
Joined: 18 Aug 2003 Posts: 227 Location: NL
|
Posted: Fri Sep 26, 2003 2:58 pm Post subject: |
|
|
i re-did the whole process again, this time i was mindslappingly drunk... and it worked
so now i have apache with php working+mysql support
do NOT ask me how
(i RTFM'd whilst drunk, dont ask) _________________ [ Censored by unpopular demand] |
|
Back to top |
|
|
dark_priest Apprentice
Joined: 18 Aug 2003 Posts: 227 Location: NL
|
Posted: Fri Sep 26, 2003 3:00 pm Post subject: |
|
|
The ANSWER has been found...
not that i need it anymore, af of my previous post _________________ [ Censored by unpopular demand] |
|
Back to top |
|
|
|