LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 11: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, 11: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, 11:53 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
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-13-2009, 12:41 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
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 08:26 AM.
 
Old 02-13-2009, 12:58 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
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, 02: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 02:13 AM.
 
Old 02-19-2009, 09: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, 09: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


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


All times are GMT -5. The time now is 02:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration