LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-14-2007, 07:10 AM   #1
bigwheel
LQ Newbie
 
Registered: Feb 2005
Distribution: Slackware 11.0, Slax
Posts: 28

Rep: Reputation: 15
basic configure-make-make install question


When you download an application, where do you put the tarball, and where do you extract it to?

Does configure-make-make install move it to the appropriate directory, or do you have to know where to put it?

Having installed the application, how do you know where in the directory structure you have to be to execute the application?

Links to tutorials or how-to's would be appreciated.

Example: I typically download everything from the web to /home/paul/Downloads. I then extracted mplayer from the tarball and by default(?) it was extracted further down the /home/paul/Downloads/ tree:

/home/paul/Downloads/MPlayer-1.0rc1/MPlayer-1.0rc1/

after running configure-make-make install in this directory, I can get mplayer to work from the command line but only when I cd into this directory. I would like to be able to use it from the KDE menu.

I'm not sure if the problem is that it was extracted incorrectly or if I did configure-make-make install incorrectly, or both.

Slackware 10.2
 
Old 01-14-2007, 07:44 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
By default make install usually installs applications in /usr/local. You can change the prefix by running ./configure with the option --prefix=/some/place
./configure --prefix=/usr is a good choice because then the executable will be put in /usr/bin and should be in your $PATH, /usr/local/bin may not be in your path. Find what else you can tweak about the build by running ./configure --help
 
Old 01-14-2007, 07:47 AM   #3
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware64 14.0
Posts: 1,517

Rep: Reputation: 90
Quote:
Originally Posted by bigwheel
When you download an application, where do you put the tarball, and where do you extract it to?
It does not really matter. Put it in /usr/src if you want or anywhere.

Quote:
Does configure-make-make install move it to the appropriate directory, or do you have to know where to put it?
Most applications install as default to /usr/local. If you want it to install to for example /usr you usually have to tell it explicitly when configuring the source.

Quote:
Having installed the application, how do you know where in the directory structure you have to be to execute the application?
Most applications can be executed from commandline from anywhere. As long as the binary file that is installed is found in your PATH (for example /usr/bin, /usr/local/bin and /opt/kde/bin are in the PATH for a normal user).

Quote:
Example:
after running configure-make-make install in this directory, I can get mplayer to work from the command line but only when I cd into this directory. I would like to be able to use it from the KDE menu.
The mplayer binary should be installed to /usr/bin or /usr/local/bin. Open up a terminal window and type "mplayer" to see if it is found. The program files should be in /usr/local/lib/MPlayer... or /usr/lib/MPlayer... (not sure about Caps)
 
Old 01-14-2007, 07:57 AM   #4
The Headacher
Member
 
Registered: Jan 2007
Distribution: Vector Linux
Posts: 90

Rep: Reputation: 15
Quote:
When you download an application, where do you put the tarball, and where do you extract it to?
That's personal. I always put stuff I'm going to build in a 'build' subdirectory in my home directory

Quote:
Does configure-make-make install move it to the appropriate directory, or do you have to know where to put it?
make install copies the compiled source to the appropriate directory (well, it does some other stuff too). If you just used ./configure without any arguments, the prefix /usr/local will be used: the executable (binary) file goes to /usr/local/bin, libraries go to /usr/local/lib etcetera.

I always use
Code:
./ configure --prefix=/usr
This ensures that the pkg-config file will go to the right directory.
Quote:
I can get mplayer to work from the command line but only when I cd into this directory. I would like to be able to use it from the KDE menu.
Perhaps /usr/local/bin is not in your PATH. You should be able to add menu entries yourself with KDE (I'm not using it now so I can't tell exactly how). look for the gmplayer executable in /usr/local/bin.
 
Old 01-14-2007, 10:09 AM   #5
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
I dont think you will have gmplayer installed as during build you have to do --enable-gui. See the mplayer install notes.

Putting mplayer in KDE menu is pretty useless until you have gmplayer, cos mplayer needs the file as argument. In KDE, when you want to open a movie file right click and say open with... , put in mplayer and tick "Remember".

The KDE menu can be edited by the Configure menu command in the "settings" submenu of KDE start menu.
 
  


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
a dilema after configure, make, make install... alixx Linux - Newbie 8 01-07-2007 06:09 PM
RPM's or ./configure-make-make install? i_suck_at_linux General 8 12-11-2005 02:02 PM
configure, make and make install commands don't work for me Fenster Fedora 8 08-18-2004 10:58 AM
Installed using ./configure, make, make install, how to remove? EnVoy Mandriva 4 03-10-2004 07:05 PM
Can I automate the tar, ./configure, make, and make install of about 50 packages? JoeLinux Linux - General 2 04-13-2002 03:35 AM


All times are GMT -5. The time now is 11:34 AM.

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