Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8173529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:11:33+00:00 2026-06-06T22:11:33+00:00

I am trying to make software install to a specific directory. I found several

  • 0

I am trying to make software install to a specific directory. I found several ways, but not sure what are the differences between them.

  1. ./configure --prefix=***
  2. make install DESTDIR=***
  3. make install prefix=***

I am confused about the functions of these three. Do they achieve the same goal?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T22:11:34+00:00Added an answer on June 6, 2026 at 10:11 pm

    ./configure --prefix=***

    Number 1 determines where the package will go when it is installed, and where it will look for its associated files when it is run. It’s what you should use if you’re just compiling something for use on a single host.


    make install DESTDIR=***

    Number 2 is for installing to a temporary directory which is not where the package will be run from. For example this is used when building deb packages. The person building the package doesn’t actually install everything into its final place on his own system. He may have a different version installed already and not want to disturb it, or he may not even be root. So he uses

    ./configure --prefix=/usr
    

    so the program will expect to be installed in /usr when it runs, then

    make install DESTDIR=debian/tmp
    

    to actually create the directory structure.


    make install prefix=***

    Number 3 is going to install it to a different place but not create all the directories as DESTDIR=/foo/bar/baz would. It’s commonly used with GNU stow via

    ./configure --prefix=/usr/local && make && sudo make install prefix=/usr/local/stow/foo
    

    , which would install binaries in /usr/local/stow/foo/bin. By comparison,

    make install DESTDIR=/usr/local/stow/foo
    

    would install binaries in /usr/local/stow/foo/usr/local/bin.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make a spec file (rpm) for a insanely big software. The
When trying new software and compiling with the classic ./configure , make , make
I'm trying to make a (super) simple software instrument for a new project I'm
Am trying to figure how can I make some software and USB hardware. Let's
I'm trying to make my python script run upon startup but I get the
I'm trying to make my database smaller but I have no clue where all
I am currently trying to make a GUI for some software and I'm having
I am currently trying to make an updater for my software project. I need
I'm trying to make a cross compiler with the files from http://crossgcc.rts-software.org/doku.php?id=i386linuxgccformac I'm on
I'm trying to install a piece of software ( moddims ) that depends on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.