Gcc .bz2


 
Thread Tools Search this Thread
Operating Systems HP-UX Gcc .bz2
# 1  
Old 12-18-2014
Gcc .bz2

Hello,

I need to install GCC but the only archive (GCC-4.9.2) for it I can find is a .bz2 format file. Looking at How to unpack and install .tar.bz2 library ? provided some help, but when I use tar in that way I get the following, presumably because it's an older version or different flavour of tar.

Code:
 ]/release_backups>tar -jxvf gcc-4.9.2.tar.bz2
tar: j: unknown option
tar: usage  tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] [[-C directory] file] ...

One way forward would be if I could find a .tar.Z version of GCC, or find out how to unpack the .b2z file I have.

Can some one help direct me?

Thanks
# 2  
Old 12-18-2014
.bz2 files can be unpacked with bzip2. This is on a lot of different UNIXes. You can compile it yourself from:

bzip2 : Downloads
This User Gave Thanks to jim mcnamara For This Post:
# 3  
Old 12-18-2014
Thanks Jim

---------- Post updated at 07:33 AM ---------- Previous update was at 07:22 AM ----------

I have downloaded and followed the README instructions and get an error because I don't have GCC, and yet im trying to install GCC so I can install the dependancies for rsync and rsync.

Code:
 /release_backups/bzip2-1.0.6>make
 If compilation produces errors, or a large number of warnings,
please read README.COMPILATION.PROBLEMS -- you might be able to
adjust the flags in this Makefile to improve matters.
 Also in README.COMPILATION.PROBLEMS are some hints that may help
if your build produces an executable which is unable to correctly
handle so-called 'large files' -- files of size 2GB or more.
         gcc -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -c blocksort.c
sh: gcc:  not found.
*** Error exit code 127
 Stop.

# 4  
Old 12-18-2014
I visited the URL you've posted (linuxfromscratch.org) and I saw that direct download link http://ftp.gnu.org/gnu/gcc/gcc-4.9.2/gcc-4.9.2.tar.bz2

If you leave out the archive name and go to GNU Project Archives you will find a tar.gz archive too.

Hope this helps.

---------- Post updated at 03:01 PM ---------- Previous update was at 02:56 PM ----------

D'oh! I see your tar command has no z option Smilie. Check if you have gzip. If so, you could
Code:
gzip -d archive.tar.gz

and then
Code:
tar xvf archive.tar

This User Gave Thanks to junior-helper For This Post:
# 5  
Old 12-18-2014
Thanks Jim, fortunantly we have gunzip installed and that seems to have done the job with the other tar.gz files I think. I will try that now.
# 6  
Old 12-18-2014
At the porting and Archive center you have a GCC package...
I suggest you get that one working first:
Go to:
HP-UX Porting and Archiving Centre | zlib-1.2.8
And download ( 11.11 PA-RISC2.0 binary grzip depot...) and install
then
HP-UX Porting and Archiving Centre | gettext-0.19.3
(same...)
then
HP-UX Porting and Archiving Centre | gcc-4.2.3
Like that you have at least a functional gcc to start with...
Then if you wish to compile bzip2 and install the latest gcc you can go ahead...
This User Gave Thanks to vbe For This Post:
# 7  
Old 12-18-2014
Thanks vbe,

I think you will follow your suggestion and avoid bz2 if I can.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Aria2c to download and extract. tar.bz2

I am using aria2c to download a .tar.bz2 and trying to extract it in the same command. I can download the file but not extract it. I can also manually extract the tar.bz2., but not in the same command. Thank you :). aria2c -x8 -l log.txt -c -d /xx/xx/xxx --use-head=true --http-user "<user>" ... (8 Replies)
Discussion started by: cmccabe
8 Replies

2. UNIX and Linux Applications

Download firefox-19.0.2.tar.bz2

Does anyone know a reliable source to download firefox-19.0.2.tar.bz2 from? I would think you be able to download from firefox or mozilla somewhere. I haven't gotten anything useful from my google searches. (2 Replies)
Discussion started by: cokedude
2 Replies

3. Shell Programming and Scripting

Put one tar.bz2 file to another tar.bz2

Hi experts, I have two tar.bz2 file,: a.tar.bz2 and b.tar.bz2 I want to put a.tar.bz2 in to b.tar.bz2 eg: b.tar.bz2 only have one file named "b.c" contained I want it contain "b.c and a.tar.bz2" I don't want to decompress the b.tar.bz2 to achieve this, I try with "cat a.tar.bz2 >>... (1 Reply)
Discussion started by: yanglei_fage
1 Replies

4. UNIX for Dummies Questions & Answers

Unable to extract bz2-00 file

I have a file having name smthing.tar.bz2-00 I am trying to unzip it using tar -xvjf "name" But I am not able to unzip it. PLease advise for the issue. (3 Replies)
Discussion started by: nixhead
3 Replies

5. Shell Programming and Scripting

.bz2 extension file

How to open a .bz2 file in unix. (1 Reply)
Discussion started by: pritish.sas
1 Replies

6. Shell Programming and Scripting

How to unpack and install .tar.bz2 library ?

Hi, I am trying to unpack and install .tar.bz2 library. I was told to cd / and than tar -jxvf /source-of-library-file?...tar.bz2 to get files unpacked and installed into / Darius $ pwd / $ $ tar -jxvf /tmp/local/root/ncurses-dev-addon.tar.bz2 ncurses-dev-addon/... (3 Replies)
Discussion started by: jack2
3 Replies

7. Solaris

Installing gcc - recieve error message gcc : cannot execute

AIM- Install Oracle 11g on Solaris using VMWare Steps 1.Logged on as root 2.Created subfolders à /usr/local/bin & /usr/local/bin/gcc 3.Downloaded gcc & libiconv & unzipped them on my harddrive & burnt them on CD 4.Copied files from CD to /usr/local/bin/gcc 5.Terminal (root) à pkgadd -d... (8 Replies)
Discussion started by: Ackers
8 Replies

8. Shell Programming and Scripting

compare two tar.bz2

Hello, I am using a bash script to archive directories of text files located in ${root}: tar cf ${root}.tar ${root}* bzip2 ${root}.tar I'd like to compare the newly produced archive two.tar.bz2 with the second latest one.tar.bz2. cmp one.tar.bz2 two.tar.bz2 returns one.tar.bz2 two.tar.bz2... (2 Replies)
Discussion started by: JCR
2 Replies

9. UNIX for Advanced & Expert Users

extracting from tar.bz2

hi could any body tell me how to extract .tar.bz2 files i tried using tar but in vain. i found bzip2 in googling but i could not find it on machine unix tru64 please suggest. (1 Reply)
Discussion started by: Raom
1 Replies

10. UNIX for Dummies Questions & Answers

.bz2 compression

I have heard that bz2 compression a relatively new compression encoding algorithm, far superior to tar and gz. I also remember that I downloaded a FreeBSD LiveCD a while back that was only a couple hundred megs instead of the usual 650ish using bz2 - big difference, I'd say. But to the point, what... (4 Replies)
Discussion started by: Phobos
4 Replies
Login or Register to Ask a Question