LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-27-2010, 03:04 AM   #1
EAI
Member
 
Registered: Jun 2010
Posts: 34

Rep: Reputation: 15
tar.gz how to install ubuntu 10.04


Hi

I have downloaded a tar.gz program how is it installed.

I find with windows using dos programing it is easy navigating between files and directories, gw basic etc.

With terminal you type in cd .. it takes you back to the home folder then if you type cd .. again it takes you back to the desktop, if you repeat the same sequence again cd .. terminal just returns with desktop, terminal just appears to work once and thats what makes it hard understanding the programing of terminal.

I find the only way around it is by turning terminal of and restarting it.


Thanks EAI
 
Old 06-27-2010, 03:22 AM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,250

Rep: Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684
So what is your question here? How to install the program you downloaded or how to change directories?

Let's go one at a time:
Install program - this will actually depend on what you have downloaded but as a general rule of thumb:
Code:
tar axf <file_name>.tar.gz
cd <file_name>
./configure
make
sudo make install
There may be other options required, but this work for most source based files.

Change directory - as opposed to windows, consistency everywhere is what is required. If you do an "ls -a" in any directory you will see all files and directories listed along with two that always exist, which are - . and ..
These have the following special significance:
. - the directory you are in
.. - the parent (or next level up) directory of the directory you are in

So now when put in context:
Code:
cd ..
this can only ever mean, take me to the directory on level above where I am now.

Hope that helps.

PS. to get to your home directory, you can just type:
Code:
cd
 
1 members found this post helpful.
Old 06-27-2010, 05:46 AM   #3
Dinithion
Member
 
Registered: Oct 2007
Location: Norway
Distribution: Slackware 14.1
Posts: 446

Rep: Reputation: 59
I haven't used the newest ubuntu, but earlier you had to manually install a compiler before you could install programs manually like grail showed. So you need to install build-essentials first.

Code:
sudo apt-get install build-essentials
before you can go ahead and use commands like make.
 
1 members found this post helpful.
Old 06-27-2010, 05:40 PM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
you will probably have a easier time installing stuff from the menus or package manager rather than compiling source code.

what is it you are trying to install. are you sure it isnt available in the package repos.
 
1 members found this post helpful.
Old 06-28-2010, 05:26 AM   #5
EAI
Member
 
Registered: Jun 2010
Posts: 34

Original Poster
Rep: Reputation: 15
Hi

I tried that and a error occured.

-desktop:/home$ tar axf iriverter_0.16.tar.gz
tar: iriverter_0.16.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
sgu@sgu-desktop:/home$


Thanks EAI








Quote:
Originally Posted by grail View Post
So what is your question here? How to install the program you downloaded or how to change directories?

Let's go one at a time:
Install program - this will actually depend on what you have downloaded but as a general rule of thumb:
Code:
tar axf <file_name>.tar.gz
cd <file_name>
./configure
make
sudo make install
There may be other options required, but this work for most source based files.

Change directory - as opposed to windows, consistency everywhere is what is required. If you do an "ls -a" in any directory you will see all files and directories listed along with two that always exist, which are - . and ..
These have the following special significance:
. - the directory you are in
.. - the parent (or next level up) directory of the directory you are in

So now when put in context:
Code:
cd ..
this can only ever mean, take me to the directory on level above where I am now.

Hope that helps.

PS. to get to your home directory, you can just type:
Code:
cd
 
Old 06-28-2010, 05:32 AM   #6
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,672
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Quote:
Originally Posted by EAI View Post
I tried that and a error occured.

-desktop:/home$ tar axf iriverter_0.16.tar.gz
tar: iriverter_0.16.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
sgu@sgu-desktop:/home$
Execute the following code and post the output here:
Code:
locate iriverter_0.16.tar.gz

Last edited by TheIndependentAquarius; 06-28-2010 at 08:48 AM.
 
1 members found this post helpful.
Old 06-28-2010, 05:54 AM   #7
EAI
Member
 
Registered: Jun 2010
Posts: 34

Original Poster
Rep: Reputation: 15
Hi

I tried that and just ended up with this

"sgu@sgu-desktop:~$ sudo apt-get install build-essentials
[sudo] password for sgu:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package build-essentials
sgu@sgu-desktop:~$
"

Thanks EAI







Quote:
Originally Posted by Dinithion View Post
I haven't used the newest ubuntu, but earlier you had to manually install a compiler before you could install programs manually like grail showed. So you need to install build-essentials first.

Code:
sudo apt-get install build-essentials
before you can go ahead and use commands like make.
 
Old 06-28-2010, 06:40 AM   #8
Dinithion
Member
 
Registered: Oct 2007
Location: Norway
Distribution: Slackware 14.1
Posts: 446

Rep: Reputation: 59
Ops, sorry, that was supposed to be without the s in the end:

Code:
sudo apt-get install build-essential
 
1 members found this post helpful.
Old 06-28-2010, 08:46 AM   #9
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,250

Rep: Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684
I am with anishakaul, you are in the wrong directory when you are typing the extract command.
 
1 members found this post helpful.
Old 06-28-2010, 02:42 PM   #10
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
Is it a Ubuntu Desktop?

Open a terminal: Applications/Accessories/Terminal
Type:
sudo apt-get update
sudo apt-cache show iriverter (To make sure you see then same package I am seeing in the repository which is the same version you are trying to build)
Then:
sudo apt-get install iriverter

There, now you have your iriverter program installed. It should download any dependences required for that program.

Last edited by hanzerik; 06-28-2010 at 02:47 PM.
 
1 members found this post helpful.
  


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
How to install tar.gz on Ubuntu 9.10 (Gnome Sensors Applet) pgonzamailcn Linux - Newbie 7 12-28-2009 09:13 AM
How to install tar.gz & tar.bz2 file on Linux min Krishnendu Linux Mint 2 07-16-2009 07:52 AM
Is it possible to install .tar.gz files on ubuntu deathalele Linux - Software 2 07-20-2008 12:23 PM
need some help with muli-volume tar (ubuntu, bash, gnu tar) MattCarp Linux - General 4 06-05-2006 09:15 AM
how do i install .tar.bz2 files on ubuntu? kriogenic Linux - Newbie 11 02-14-2006 11:26 AM


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