LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 01-15-2005, 07:57 AM   #1
Gsee
Member
 
Registered: Mar 2004
Location: Australia
Distribution: FreeBSD, OpenBSD, Gentoo, Debian
Posts: 153

Rep: Reputation: 30
OpenBSD + bz2 files


I know this MUST be a simple thing but I've tried looking it up and can't find what I need.

Basically I'm trying to do:

tar jxvf xxxxxx.bz2

but I receive:

tar: unknown option j

so I try yxvf xxxxx.bz2

but I receive:

tar: unknown option y

I think I haven't got something installed but I'm not sure what, where to get it from nor how to install it.

Gsee
 
Old 01-15-2005, 08:03 AM   #2
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
Do it in two steps.

bunzip2 xxxxxx.bz2
tar xvf xxxxx.tar

I think you could also pipe it... but I wouldn't bother if you have the space.
 
Old 01-15-2005, 08:05 AM   #3
Gsee
Member
 
Registered: Mar 2004
Location: Australia
Distribution: FreeBSD, OpenBSD, Gentoo, Debian
Posts: 153

Original Poster
Rep: Reputation: 30
Ah... see there's the problem:

bunzip2: Command not found

Presumably meaning bunzip2 isn't installed? How do I install it and where from?

Thanks for your quick reply.

Gsee
 
Old 01-15-2005, 08:08 AM   #4
Gsee
Member
 
Registered: Mar 2004
Location: Australia
Distribution: FreeBSD, OpenBSD, Gentoo, Debian
Posts: 153

Original Poster
Rep: Reputation: 30
Sorry, should mention my OS isOpenBSD 3.6.
 
Old 01-15-2005, 08:08 AM   #5
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
[code]pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/3....zip2-1.0.2.tgz

This will install the bzip2 utilities.

Edit: Sorry... I can't seem to make that link expand.

/pub/OpenBSD/3.6/packages/i386/bzip2-1.0.2.tgz
ftp://ftp.openbsd.org in front of it.

Last edited by frob23; 01-15-2005 at 08:24 AM.
 
Old 01-15-2005, 08:15 AM   #6
Gsee
Member
 
Registered: Mar 2004
Location: Australia
Distribution: FreeBSD, OpenBSD, Gentoo, Debian
Posts: 153

Original Poster
Rep: Reputation: 30
Ok, I did the pkg_add and then rebooted.

Now I enter:

bunzip2 xxxx.tar.bz2

and get:

bunzip2: can't load library 'libc.so.30.3'
 
Old 01-15-2005, 08:22 AM   #7
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
Okay... you should have needed to reboot. Also, did you install the package from the link before I edited it or after? Because if it was before then you probably installed the wrong binary. Do a pkg_delele of it and install the i386 binary.

What probably happens is it is looking for a library you don't have... oops... let me edit it one more time to point to 3.6 as well. I clearly wasn't paying attention when I hit the ftp tree this morning.
 
Old 01-15-2005, 08:25 AM   #8
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
ftp://ftp.openbsd.org/pub/OpenBSD/3....zip2-1.0.2.tgz

pkg_add that link and it should work. Sorry about the misdirection there. I don't know where my mind is... probably need sleep since I have been working all night.
 
Old 01-15-2005, 08:28 AM   #9
Gsee
Member
 
Registered: Mar 2004
Location: Australia
Distribution: FreeBSD, OpenBSD, Gentoo, Debian
Posts: 153

Original Poster
Rep: Reputation: 30
I swear this should be an easy process....

I just pkg_delete'd the bunzip2 pkg.

Then I re pkg_add'd the CORRECT file. I figured out what the url compression was but blindly followed the 3.5 link the first time... made sure it was 3.6 this time.

bunzip2 maildrop-1.8.0.tar.bz2
bunzip2: maildrop-1.8.0.tar.bz2 is not a bzip2 file.
 
Old 01-15-2005, 08:35 AM   #10
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
Okay... well... bunzip2 is working... or at least not giving an error.

What does "file maildrop-1.8.0.tar.bz2" give you?

Is there any reason you need 1.8.0 and can't use the 1.5.3 version that is supported in the ports for OpenBSD?

ftp://ftp.openbsd.org/pub/OpenBSD/3....drop-1.5.3.tgz
 
Old 01-15-2005, 08:40 AM   #11
Gsee
Member
 
Registered: Mar 2004
Location: Australia
Distribution: FreeBSD, OpenBSD, Gentoo, Debian
Posts: 153

Original Poster
Rep: Reputation: 30
file maildrop-1.8.0.tar.bz2 said it was an HTML document... hmm... could be onto something there

I've just downloaded the version from the ports.

Thanks for your help - where I can find a search function for the ports? For example I had a fair idea I needed bunzip2 but didn't know where to find it within the ports. I'm a user of Gentoo also and Gentoo has the
'emerge -s bunzip2' option which will list closes matches that are listed in the emerge tree. Is there a similar option in OpenBSD?

Thanks again,

Gsee
 
Old 01-15-2005, 08:45 AM   #12
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
http://www.openbsd.org/3.6_packages/i386.html

This is the list of packages for OpenBSD 3.6

You can find them all in the directory of the ftp link I provided above.

How big is that file you have? I'm sure you could get 1.8.0 if you really needed it, you would just need to make sure you downloaded the right thing.
 
Old 01-15-2005, 08:49 AM   #13
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
As for a way to search them... you could install the ports tree or something. To be honest, I don't have OpenBSD currently installed and I haven't ever installed it on a machine which I used for an extended period of time. Not because it is bad but I just have really weak machines to test stuff on (I actually need to use my desktop computer so FreeBSD is safe on it).
 
Old 01-15-2005, 08:59 AM   #14
Gsee
Member
 
Registered: Mar 2004
Location: Australia
Distribution: FreeBSD, OpenBSD, Gentoo, Debian
Posts: 153

Original Poster
Rep: Reputation: 30
Not sure how big the file was. I've deleted it. Now all I need to do is find out where I'm suppoed to run the make command for this version of maildrop. I'm following a guide to setup qmail and the guide tells me how to use maildrop-1.8.0 hence why I was trying to use it. They told me where to get it from but as we've found out, the file they send me to was a HTML file.

I cp's the maildrop file into a dir called /package/maildrop and then did a:
tar xvf maildrop-1.5.3.tgz

what's the general rule of thumb to now find where to run the
./configure
make
make install?

Sorry to be a pain and thanks for your help

Gsee
 
Old 01-15-2005, 09:05 AM   #15
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
You don't need to untar it... it is a package. Just use the pkg_add command like you did for bzip2

pkg_add /package/maildrop/maildrop-1.5.3.tgz

---
EDIT: You really aren't being a pain at all. You are giving me something to do while I wait out the clock here at my work. Another hour before I can get home to sleep. And I have got to keep my mind active somehow.

Last edited by frob23; 01-15-2005 at 09:26 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
.bz2 files Mr. Hill Linux - Newbie 4 03-13-2005 04:19 AM
How can konqueror view html files in .gz & .bz2 files directly? ailinzhe Linux - Software 5 05-24-2004 08:36 AM
.tar.bz2 files Agileuk Linux - Newbie 7 09-28-2003 12:36 PM
unzipping files using bz2 bruce64 Linux - Software 6 07-17-2003 02:51 PM
installing bz2 files? MrGardenHoseMan Linux - Software 2 07-03-2003 03:48 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 09:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration