LinuxQuestions.org
Help answer threads with 0 replies.
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 11-05-2009, 08:53 AM   #1
Master_9
LQ Newbie
 
Registered: Oct 2009
Distribution: Debian or DSL
Posts: 4

Rep: Reputation: 0
Installing applications locally


I probably sound like a noob, but that's why I'm posting in the newbie section. If I have a source tarball source.tar.gz, I do
Code:
tar -xvf
source.tar.gz. When I do
Code:
make configure
, is there a flag I can set so it installs to /home/Master_9/bin? Thank you.
 
Old 11-05-2009, 09:23 AM   #2
emmalg
Member
 
Registered: Jun 2009
Location: Spain
Distribution: Various, Ubuntu, Fedora, Open Solaris, Solaris, RHEL, CentOS
Posts: 64

Rep: Reputation: 16
Hi Master_9

Makefiles can be a bit of black magic even to those of us who have written our own!

If the program and makefile have been well written you can probably move the binary to your desired location after compilation with no adverse effects, but I make no guarantee. I've certianly been able to do this with a huge project I worken on (and I never had a configure option in my makefile!).

You make also find that /usr/local/bin is a better place for the binary, it is usually already in your path, therefore if you need to run that binary or call it from a script you don't need to mess around adding to your path.

Alternatively, make it somewhere like /opt and make a link to the binary in /home/Master_9/bin (or /usr/local/bin).


Sorry I haven't been able to help more. If you need help making the links, just let us know.

Cheers
Emma
 
Old 11-05-2009, 09:43 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,689

Rep: Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547
Most source code have a 'configure' file letting you do :
./configure --prefix=/home/Master_9/<new- folder>

If you only have a 'Makefile' it can hopefully be edited
to the preferred install location.

If you want a precise answer, may be you can tell which
application, you want to install.
.....
.....
P.S. : .. At least 5 other methods are used to build software ..
http://www.linuxquestions.org/questi...8/?highlight#4
post # 4.
.....

Last edited by knudfl; 11-05-2009 at 09:52 AM.
 
Old 11-06-2009, 12:44 AM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,269

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
If you've got source.tar.gz, you need

tar -zxvf source.tar.gz

the -z un-gzips it
 
Old 11-06-2009, 02:21 AM   #5
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
If you've got source.tar.gz, you need

tar -zxvf source.tar.gz

the -z un-gzips it
Newer versions of tar don't require the 'z' (or 'j' for bzip) option when extracting.
 
Old 11-06-2009, 12:34 PM   #6
Master_9
LQ Newbie
 
Registered: Oct 2009
Distribution: Debian or DSL
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks knudfl , it worked.
 
  


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 libmp3lame locally JavaNinja Linux - Newbie 6 10-01-2011 09:26 AM
Installing |Applications Big Trev Linux - Newbie 7 12-30-2008 05:16 AM
Installing Applications? /usr/bin/w1zard Linux - Newbie 8 08-26-2005 03:34 AM
Installing *.deb files locally Virp00 Linux - Newbie 12 03-07-2005 06:13 PM
Installing applications Diminished7th Linux - Newbie 2 05-01-2004 08:12 PM


All times are GMT -5. The time now is 07:48 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration