LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-12-2009, 10:13 PM   #1
asaruhu
LQ Newbie
 
Registered: Feb 2009
Location: atlanta, ga
Posts: 6

Rep: Reputation: 0
Talking what am i doing wrong?


alan_ri suggested i download the following program to install codecs and follow the instructions to install; i hate to reveal my incompetence but i need this, thanks:

[asaruhu@comcast ~]$ tar -xvf all-20061022.tar.bz2
tar: all-20061022.tar.bz2: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
[asaruhu@comcast ~]$ su
Password:
[root@comcast asaruhu]# tar -xvf all-20061022.tar.bz2
tar: all-20061022.tar.bz2: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
[root@comcast asaruhu]# cd /temp
bash: cd: /temp: No such file or directory
[root@comcast asaruhu]# cd /tmp
[root@comcast tmp]# tar -xvf all-20061022.tar.bz2
tar: all-20061022.tar.bz2: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
[root@comcast tmp]#
how do i let bash know that i want to install/extract/open the package?
stumped!
 
Old 02-12-2009, 10:49 PM   #2
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
I believe .bz2 files need the j option, so... 'tar jxvf ...'
 
Old 02-12-2009, 10:53 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Also use auto-completion to prevent misspelling the filename (Press the TAB key after the first few characters). And yes, use the -j option for bzip2. Make sure you are in the same directory as the file you downloaded.

Also take a look at the tar manpage or "tar --help".
 
Old 02-12-2009, 11:41 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
You will have to change to the directory with the file.

cd Desktop
tar xvf all-20061022.tar.bz2

Or the full path : tar xvf Desktop/all-20061022.tar.bz2

The ( j ) option and ( - ) was used on older Linux's
... shoudn't be needed any more.?
....

Last edited by knudfl; 02-13-2009 at 07:26 AM.
 
Old 02-12-2009, 11:58 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Not using a dash is actually inherited from the first version of tar. You do need it if you have more than one option that takes an argument, such as: tar -C / -czf /mnt/disk/backup.tar.gz /home /usr

Might as well always include it. I wasn't aware that the j or x were optional when unarchiving, but including it would be more portable and IMHO the proper way of doing it and teaching how to use it.
 
Old 02-13-2009, 01:00 AM   #6
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
The code;
Code:
tar -xvf all-20061022.tar.bz2
will do just fine.The only problem you asaruhu have is that you are not in the directory that you should be.You have probably saved the downloaded file on the desktop and when you open the terminal you are in the /home directory not in the /home/you/Desktop.That's way the command is not working.So you can cut the file from your desktop or wherever it might be and paste it to your home folder,then open the terminal and run the tar command.After that run;
Code:
mkdir /usr/local/lib/codecs/
then check if you have /usr/lib/win32 directory,if you don't create one with the following command;
Code:
mkdir /usr/lib/win32
After that run;
Code:
cp all-20061022/* /usr/local/lib/codecs/
and then;
Code:
chmod 755 /usr/local/lib/codecs/*
and finally;
Code:
cp /usr/local/lib/codecs/* /usr/lib/win32/
That's it.
P.S.
Don't forget to do all this as root.

Last edited by alan_ri; 02-13-2009 at 01:13 AM.
 
Old 02-19-2009, 08:19 AM   #7
asaruhu
LQ Newbie
 
Registered: Feb 2009
Location: atlanta, ga
Posts: 6

Original Poster
Rep: Reputation: 0
codec installation success!!!

i had a partial success in the installation of the codecs following alan_ri's instructions, so thank you!
although i now hear snow buzzing from the computer there is still some work for me to do in clearing the issue. this success is however very exiting as it shows me that with perseverance and the aid lent by this community i will succeed in mastering this. thank you all!!!
handel's watermusic is next!
 
Old 02-19-2009, 08:56 AM   #8
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
I'm glad that you did it,asaruhu.
 
  


Reply



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
Fortran - G95 - Wrong Syntax or wrong compiler settings laucian Programming 1 03-21-2008 10:18 AM
2domain but backingup the wrong one .. what am i doing wrong salimmeethoo Linux - Server 3 10-17-2007 10:43 AM
What is wrong with reiserfs? wrong free space mesh2005 Linux - General 1 05-03-2007 07:21 AM
my time is wrong and calender is also wrong Paxmaster Linux - General 6 12-16-2004 12:46 AM
What am I doing wrong? warkrime Linux - Newbie 6 07-13-2003 07:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:50 AM.

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