LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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
 
Thread Tools
Old 11-05-2009, 09:53 AM   #1
Master_9
LQ Newbie
 
Registered: Oct 2009
Distribution: Debian or DSL
Posts: 4
Thanked: 0
Installing applications locally


[Log in to get rid of this advertisement]
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.
windows_xp_2003 Master_9 is offline     Reply With Quote
Old 11-05-2009, 10:23 AM   #2
emmalg
Member
 
Registered: Jun 2009
Location: UK
Distribution: Various, Ubuntu, Fedora, Open Solaris, Solaris, RHEL
Posts: 31
Thanked: 0
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
windows_xp_2003 emmalg is offline     Reply With Quote


Old 11-05-2009, 10:43 AM   #3
knudfl
Senior Member
 
Registered: Jan 2008
Location: Copenhagen, Denmark
Distribution: pclos2009.2, slack13, Debian Lenny (+30 others, for test only)
Posts: 2,935
Thanked: 277
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 10:52 AM..
linuxpclinuxos knudfl is offline     Reply With Quote


Thanked by:
Old 11-06-2009, 01:44 AM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 5.4
Posts: 7,435
Thanked: 326
If you've got source.tar.gz, you need

tar -zxvf source.tar.gz

the -z un-gzips it
windows_xp_2003 chrism01 is online now     Reply With Quote


Old 11-06-2009, 03:21 AM   #5
Nylex
HCL Maintainer
 
Registered: Jul 2003
Distribution: Slackware
Posts: 5,783
Thanked: 40
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.
linuxsuse Nylex is offline     Reply With Quote


Old 11-06-2009, 01:34 PM   #6
Master_9
LQ Newbie
 
Registered: Oct 2009
Distribution: Debian or DSL
Posts: 4
Thanked: 0

Original Poster
Thanks knudfl , it worked.
windows_xp_2003 Master_9 is offline     Reply With Quote



Reply

Bookmarks


Thread Tools

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


All times are GMT -5. The time now is 11:30 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration