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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-05-2009, 08:53 AM
|
#1
|
LQ Newbie
Registered: Oct 2009
Distribution: Debian or DSL
Posts: 4
Rep:
|
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 source.tar.gz. When I do , is there a flag I can set so it installs to /home/Master_9/bin? Thank you.
|
|
|
11-05-2009, 09:23 AM
|
#2
|
Member
Registered: Jun 2009
Location: Spain
Distribution: Various, Ubuntu, Fedora, Open Solaris, Solaris, RHEL, CentOS
Posts: 64
Rep:
|
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
|
|
|
11-05-2009, 09:43 AM
|
#3
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
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.
|
|
|
11-06-2009, 12:44 AM
|
#4
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,443
|
If you've got source.tar.gz, you need
tar -zxvf source.tar.gz
the -z un-gzips it
|
|
|
11-06-2009, 02:21 AM
|
#5
|
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464
Rep: 
|
Quote:
Originally Posted by chrism01
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.
|
|
|
11-06-2009, 12:34 PM
|
#6
|
LQ Newbie
Registered: Oct 2009
Distribution: Debian or DSL
Posts: 4
Original Poster
Rep:
|
Thanks knudfl  , it worked.
|
|
|
All times are GMT -5. The time now is 09:35 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|