LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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, 02: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, 02:22 AM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,996

Rep: Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187
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, 04: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, 04:40 PM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
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, 04: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, 04:32 AM   #6
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
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 Aquarius_Girl; 06-28-2010 at 07:48 AM.
 
1 members found this post helpful.
Old 06-28-2010, 04: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, 05: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, 07:46 AM   #9
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,996

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

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

All times are GMT -5. The time now is 11:12 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
Open Source Consulting | Domain Registration