Find the answer to your Linux question:
Results 1 to 6 of 6
Where does "make install" install the files to?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Oct 2004
    Posts
    139

    "make install" question


    Where does "make install" install the files to?

  2. #2
    Linux User nalg0rath's Avatar
    Join Date
    Sep 2004
    Location
    Stockholm
    Posts
    303
    Depends on wich program you're compiling. There may be a indication in yor Makefile, $INSTALLDIR can for example be the name of a variable that sets the directory where you install.

    Many programs accept the installation directory to be changed by adding a flag when running ./compile, for example:
    Code:
    ./compile --prefix=/usr
    if you want to install it in /usr (or actually /usr/bin or /usr/sbin).

  3. #3
    Linux Engineer
    Join Date
    Mar 2005
    Posts
    1,431
    Never seen any compile-scripts with the sourcecode, but I have seen the same option on a configure-script...

  4. #4
    Linux User nalg0rath's Avatar
    Join Date
    Sep 2004
    Location
    Stockholm
    Posts
    303
    Quote Originally Posted by jaboua
    Never seen any compile-scripts with the sourcecode, but I have seen the same option on a configure-script...
    sorry, ofcourse it should be:
    Code:
    ./configure --prefix=/usr

  5. #5
    Linux Newbie
    Join Date
    Oct 2004
    Posts
    139
    What do I do if the source code doesn't have a "configure" script?

  6. #6
    Linux Guru sdousley's Avatar
    Join Date
    Feb 2004
    Posts
    1,790
    usually there's a configure script, but if not, there's usually an install script.

    Most souce packages come with an INSTALL or README file that tell u what u need to do.
    "I am not an alcoholic, alcoholics go to meetings"
    Registered Linux user = #372327

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •