Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Tar doesnt work anymore [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
dark_priest
Apprentice
Apprentice


Joined: 18 Aug 2003
Posts: 227
Location: NL

PostPosted: Thu Sep 25, 2003 7:02 am    Post subject: Tar doesnt work anymore [solved] Reply with quote

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
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Thu Sep 25, 2003 8:26 am    Post subject: Reply with quote

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
View user's profile Send private message
dark_priest
Apprentice
Apprentice


Joined: 18 Aug 2003
Posts: 227
Location: NL

PostPosted: Thu Sep 25, 2003 11:47 am    Post subject: Reply with quote

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
View user's profile Send private message
dark_priest
Apprentice
Apprentice


Joined: 18 Aug 2003
Posts: 227
Location: NL

PostPosted: Thu Sep 25, 2003 11:55 am    Post subject: Reply with quote

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
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Thu Sep 25, 2003 12:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
dark_priest
Apprentice
Apprentice


Joined: 18 Aug 2003
Posts: 227
Location: NL

PostPosted: Thu Sep 25, 2003 12:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Thu Sep 25, 2003 2:08 pm    Post subject: Reply with quote

dark_priest wrote:
i will be your slave-bitch for a week if you can tell me how :)
:twisted: a/s/l?
_________________
Please put [SOLVED] in your topic if you are a moron.
Back to top
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Thu Sep 25, 2003 2:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
dark_priest
Apprentice
Apprentice


Joined: 18 Aug 2003
Posts: 227
Location: NL

PostPosted: Thu Sep 25, 2003 4:18 pm    Post subject: Reply with quote

yes i do
/me is a noob
_________________
[ Censored by unpopular demand]
Back to top
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Fri Sep 26, 2003 1:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
dark_priest
Apprentice
Apprentice


Joined: 18 Aug 2003
Posts: 227
Location: NL

PostPosted: Fri Sep 26, 2003 2:58 pm    Post subject: Reply with quote

i re-did the whole process again, this time i was mindslappingly drunk... and it worked :D

so now i have apache with php working+mysql support :)

do NOT ask me how :D
(i RTFM'd whilst drunk, dont ask)
_________________
[ Censored by unpopular demand]
Back to top
View user's profile Send private message
dark_priest
Apprentice
Apprentice


Joined: 18 Aug 2003
Posts: 227
Location: NL

PostPosted: Fri Sep 26, 2003 3:00 pm    Post subject: Reply with quote

The ANSWER has been found...
not that i need it anymore, af of my previous post
_________________
[ Censored by unpopular demand]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum