URGENT!! I need to to extract this file "gcc-core-3.4.2.tar.bz2"

Hi experts,
I need to  to extract this file "gcc-core-3.4.2.tar.bz2" .  Its the total GNU package that contains all the compilers.
This contains gcj,  the gnu java compiler.
What command do i need to do so exactly. The o/s is FreeBSD.


Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

bzip2 -d gcc-core-3.4.2.tar.bz2
tar -xvf gcc-core-3.4.2.tar
If you have bzip2 installed (/usr/ports/archivers/bzip2), and you issue this command:

tar yxf gcc-core-3.4.2.tar.bz2

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
In standard FreeBSD configuration:

tar -jxvf gcc-core-3.4.2.tar.bz2

Read: man tar
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

Maybe try /usr/ports/lang/gcc34 instead, this will register your gcj in proper manner with FreeBSD system
I would recommend to install gcc from ports. This way it will compile and install all needed patches for your system.
1. /stand/sysinstall and then find "install packages" and install "ports" from there.
2. When you have installed ports package, you can update them:
cvsup -g -L 2 -h cvsup2.freebsd.org /usr/share/examples/cvsup/ports-update
cvsup will connect to cvsup2.freebsd.org and update your ports to be up-to-date.
3. cd /usr/ports/lang/gcc (choose your gcc version here)
4. type "make"
5. type "make install"


When you need to install any other package in the future then you will need to do steps 3-5 only. If you want to make sure that you have latest ports references then you have to run step 2 only.
and install net/cvsup-without-gui from sysinstall to get this commands working
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.