Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-21-2008, 08:34 AM   #1
LQ Newbie
Registered: Jul 2008
Posts: 15

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


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 08:37 AM.
Old 07-21-2008, 08:59 AM   #2
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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, 12:48 PM   #3
smoked kipper
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, 12:51 PM   #4
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 252Reputation: 252Reputation: 252
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.


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

All times are GMT -5. The time now is 12:59 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration