using diferent prefix with make install

This is a discussion on using diferent prefix with make install within the Linux Programming forums, part of the Platform Specific Boards category; howdy. Can I make "make install" use someother prefix (different from the one set with configure --prefix) just to install ...

  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    7

    Question using diferent prefix with make install

    howdy.

    Can I make "make install" use someother prefix (different from the one set with configure --prefix) just to install the files without messing with configure --prefix ?



    [ ]'s

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,485
    Well if you configured with /usr/bin (say), did a compile which somehow built that information into the build, and then you decided to install in /bin instead, do you think it would still work?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Oct 2007
    Posts
    32
    Quote Originally Posted by b1nd3r View Post
    howdy.

    Can I make "make install" use someother prefix (different from the one set with configure --prefix) just to install the files without messing with configure --prefix ?



    [ ]'s
    It' depend. Some of the programs can be installed in any directory, some - only in the one specified during configure

  4. #4
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,246
    You can try:
    make install DESTDIR=/some/location
    This only works if the makefile has support to do so.

    Of course the correct way is to just rerun configure specifying the prefix.
    bit∙hub [bit-huhb] n. A source and destination for information.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to make a Packet sniffer/filter?
    By shown in forum C++ Programming
    Replies: 2
    Last Post: 02-22-2009, 08:51 PM
  2. algorithm for this fucntion ?
    By qubit67 in forum C Programming
    Replies: 28
    Last Post: 09-29-2007, 02:24 PM
  3. How to make tarball (.tgz) for app?
    By Marcux in forum Linux Programming
    Replies: 7
    Last Post: 06-22-2007, 06:02 PM
  4. Question about atheists
    By gcn_zelda in forum A Brief History of Cprogramming.com
    Replies: 160
    Last Post: 08-11-2003, 11:50 AM
  5. 'functions' in make?
    By mart_man00 in forum C Programming
    Replies: 1
    Last Post: 06-21-2003, 02:16 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21