LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-03-2010, 03:16 PM   #1
radwa
LQ Newbie
 
Registered: Mar 2010
Posts: 20

Rep: Reputation: 0
Installing software in fedora


Hi
I have downloaded winrar as .tar.gz
On the forum, it said to install this I need to do a series of steps..

# tar xvzf package.tar.gz (or tar xvjf package.tar.bz2)
# cd package
# ./configure
# make
# make install

but when I start with the first one, I get this reply:
[Radwa@localhost ~]$ tar xvzf pkg.tar.gz
tar: pkg.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Exiting with failure status due to previous errors


What does this mean?

Thanks
 
Old 04-03-2010, 03:43 PM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
My first question is why do you want winrar on linux ?

But having said that, you should really read the error messages.

tar xvzf pkg.tar.gz

is not the same as

tar xvzf package.tar.gz

and you have to be in the same directory you downloaded the file to when you run that command (whichever one is the correct version).

BTW, you can get unrar if all you need is to extract things :
http://atrpms.net/dist/f12/unrar/

Last edited by smoker; 04-03-2010 at 04:03 PM.
 
Old 04-03-2010, 04:09 PM   #3
radwa
LQ Newbie
 
Registered: Mar 2010
Posts: 20

Original Poster
Rep: Reputation: 0
1. I need winrar to compress a folder and be able to send it as an email attachment. Does Fedora do that all on its own? I tried to compress the folder without winrar, but all I got was a folder that had the extension .zip but was exactly the same size.

2. You mentioned to be in the same directory? What is that? sorry but I am still new to all of this.

Thanks for your patience.
 
Old 04-03-2010, 04:21 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,926

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by radwa View Post
Hi
I have downloaded winrar as .tar.gz
On the forum, it said to install this I need to do a series of steps..

# tar xvzf package.tar.gz (or tar xvjf package.tar.bz2)
# cd package
# ./configure
# make
# make install

but when I start with the first one, I get this reply:
[Radwa@localhost ~]$ tar xvzf pkg.tar.gz
tar: pkg.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Exiting with failure status due to previous errors

What does this mean?
Thanks
First, I agree with smoker. Unrar is available for Linux, so while you CAN install winrar, you're better off with unrar.

Second...is this a serious question? You replace "package.tar.gz" with the name of the package you downloaded. Just like when you read something, and it says "state your name"...you don't say "state your name", do you??
 
Old 04-03-2010, 04:31 PM   #5
LouRobytes
Member
 
Registered: Mar 2010
Location: Nova Scotia, Canada
Distribution: Ubuntu & Fedora
Posts: 189

Rep: Reputation: 44
Curiosity, Knowledge, Humour, and Patience. Its all here and what makes this forum great.

Lou
 
Old 04-03-2010, 04:40 PM   #6
radwa
LQ Newbie
 
Registered: Mar 2010
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TB0ne View Post
Second...is this a serious question? You replace "package.tar.gz" with the name of the package you downloaded. Just like when you read something, and it says "state your name"...you don't say "state your name", do you??
I am very new "probably a week or two new" Sorry to have offended you with my question, but surely you were new yourself at some point in time. I have done what you said:

[Radwa@localhost ~]$ tar xvzf winrar.tar.gz
tar: winrar.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Exiting with failure status due to previous errors

Winrar.tar.gz is in my downloads so it is there somewhere. Smoker said I need to be in the same directory. Is that like the same window? what is that?
 
Old 04-03-2010, 04:43 PM   #7
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Quote:
Originally Posted by radwa View Post
I am very new "probably a week or two new" Sorry to have offended you with my question, but surely you were new yourself at some point in time. I have done what you said:

[Radwa@localhost ~]$ tar xvzf winrar.tar.gz
tar: winrar.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Exiting with failure status due to previous errors

Winrar.tar.gz is in my downloads so it is there somewhere. Smoker said I need to be in the same directory. Is that like the same window? what is that?
The terminal is considered to be in a certain directory (a.k.a. folder).

Here are some basic commands:

Print current directory the terminal is in:

pwd

List the directories (folders) and files in the current directory:

ls

Change the current directory:

cd path-to-directory

Note that everything (including paths) must be typed exactly to the letter, because computers can't read your mind or guess what you probably meant. Remember that it's case-sensitive, too, so for example "Winrar.tar.gz" and "winrar.tar.gz" are completely different.

For more info see the tutorials in my signature (I really recommend you read the "LinuxCommand" one).

Last edited by MTK358; 04-03-2010 at 04:47 PM.
 
Old 04-03-2010, 04:47 PM   #8
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
Quote:
Originally Posted by radwa View Post
1. I need winrar to compress a folder and be able to send it as an email attachment. Does Fedora do that all on its own? I tried to compress the folder without winrar, but all I got was a folder that had the extension .zip but was exactly the same size.

2. You mentioned to be in the same directory? What is that? sorry but I am still new to all of this.

Thanks for your patience.
1) If you right click a folder and click "compress" are you saying it doesn't make a smaller file ? Either you are compressing stuff that is already compressed (jpg, zip, etc) or the folder is empty. You can use other free compression tools like bzip2 if you want the smallest filesize.
BTW, tar.gz is extractable under standard windows compression tools.

2) If you don't know what a directory is then how did you compress one ?
If you download something, then it probably went into Downloads. Did you run the command in Downloads ? With the correct filename ?

3) This is your computer, you should try to learn a bit without asking questions of others. People will rapidly lose patience if you ask silly questions. If I tell you a command and you destroy your operating system because you used it in the wrong way, that is your fault not mine. Be responsible.
 
Old 04-03-2010, 05:00 PM   #9
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
If you want to use .tar.[gz|bz2|xz] formats you must remember that archiving and compression are NOT the same thing.

All tar does is store a hierarchy of files and folders in one, convenient to distribute file. It does not compress them.

bz2, gz, xz, Z, etc. just compress a sequence of bytes (a file). They do not archive.

So you can just compress a single file with, for example, gzip, without tar-ing it. Or if you want to compress a whole hierarchy of files, tar them up and run a compression tool on the tar archive.

Separate tools for unrelated jobs (archiving and compressing), just like it's supposed to be.

EDIT: @smoker

Windows does not handle .tar.* archives without third-party tools. They also don't support the free/open source Ogg media format without third-party tools

Last edited by MTK358; 04-03-2010 at 05:06 PM.
 
Old 04-04-2010, 09:55 AM   #10
radwa
LQ Newbie
 
Registered: Mar 2010
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks a lot

@ MTK, that tutorial was exactly what I needed, I am working on it now. thank u!
 
  


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
installing software in Fedora charlesd68 Fedora 4 08-06-2009 12:35 AM
Installing new software in Fedora Linux 9 santoshgk Linux - Newbie 2 09-13-2008 12:06 PM
Installing software Fedora Core 4 djarmb Linux - Newbie 3 11-05-2005 12:31 AM


All times are GMT -5. The time now is 04:48 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