LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 07-21-2008, 07:34 AM   #1
yogesh619
LQ Newbie
 
Registered: Jul 2008
Posts: 15

Rep: Reputation: 0
want to install third part application under /opt


Hi!!!

i want to install a third party application on my system (fedora 9)
for that i downloads a .tar.bz2 file and do the following steps

1 download .tar.bz2 file
2 extract it in some directory
3 ./configure
4 make
5 make install

i want to install this application in directory " /opt " how can i do this??

and want to know how it works.

Last edited by yogesh619; 07-21-2008 at 07:37 AM.
 
Old 07-21-2008, 07:59 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
If you are using "make", then there is a file named "Makefile". I believe this has the instructions for where the executable gets located.
 
Old 07-21-2008, 11:48 AM   #3
smoked kipper
Member
 
Registered: May 2008
Location: UK
Distribution: Slackware,Slamd64
Posts: 81

Rep: Reputation: 15
Use ./configure --help to see what options are available. If it's an autoconf script (most ./configure scripts are), then you can set the install directory with --prefix.

./configure --prefix=/opt

This doesn't work with everything, of course, but most developers use autoconf these days though, and most who don't have enough sense to support the --prefix option, so it should work just fine. You might want to check the Makefile (this is only created after running ./configure), there should be a line like 'prefix = /opt' (sometimes it's PREFIX), view it with less and use / to search. Occasionally you'll get a moronic package (usually in early development) that doesn't support an alternative location and you have to edit the Makefile manually, but if it has a configure script, it's rarely a problem.
 
Old 07-21-2008, 11:51 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Usually a ./configure --help will print out all available options for the configuration of such application, that's if the programmers created a good package with options.
 
  


Reply



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
Where to install software /opt? or /usr/local? sfwalter Linux - General 4 08-23-2013 11:22 PM
install gimp2.5 in /opt/gimp-2.5 complains about gegl when it does indeed exist crazywizzard Linux - Software 2 05-08-2008 11:00 PM
Regarding # /opt/CTEact/bin/act & /opt/SUNWexplo/bin/explorer not available for x86 rajaniyer123 Solaris / OpenSolaris 6 04-24-2008 09:09 AM
Extract the used part of dynamic library for my application??? okeyla Programming 1 12-21-2005 02:24 PM
java does not install in opt but install in usr bbmak Linux - Software 6 10-02-2005 11:13 PM

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

All times are GMT -5. The time now is 01:41 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