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

  • Home
  • SEARCH
  • 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 4258348
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:38:13+00:00 2026-05-21T05:38:13+00:00

I am writing this question in part based on a related question on helper-scripts

  • 0

I am writing this question in part based on a related question on helper-scripts.

I have a C++ software system built with autotools. For a small part of its functionality, my system uses a closed-source pre-built binary: AMPL. I’m a freely-available student version of their software. Suppose the name of the AMPL binary file I call from within my C++ code is ampl-student. I run it from within my code using a system(...) call.

I would like ampl-student to be moved to /usr/bin along with the binary of my compiled C++ code when “make install” is run. Where in the Makefile.am should I add ampl-student. Should I just add it to the bin_PROGRAMS variable?

A related question is should I even put ampl-student in /usr/bin. Is there a more appropriate place for a “helper binary”?

I think this is, in general, a bad idea since distributing a pre-built binary along with the code doesn’t guarantee that the binary will run on the end user’s computer. But in this case, the user base is very small, and I happen to know that they are all using the same system configurations. So we are in fact using the deb package as a way to keep everyone updated of new releases of the software system.

Edit 1: I should emphasize that the question is first and foremost asking for where to specify ampl-student in the Makefile.am file used by autotools.

  • 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-05-21T05:38:14+00:00Added an answer on May 21, 2026 at 5:38 am

    I’d install it in $(pkglibexecdir):

    pkglibexec_PROGRAMS = ampl-student
    
    # If you need to know the path in your code
    AM_CPPFLAGS = -DPKGLIBEXECDIR=\"$(pkglibexecdir)\"
    

    It’s not really a user program, so this installs it somewhere out of the way. By default, this is going to be $(prefix)/libexec/$(package).

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

Sidebar

Related Questions

This is related to this question . I'm writing a Flex app (a WindowedApplication)
This is not exactly a programming question, but it's highly related. We are writing
Hello friendly computing people, This is a two part question. I'm writing two shell
I'm writing this question in the spirit of answering your own questions, since I
I'm writing this question from the standpoint of an ASP.NET application. However I realize
I'm writing this question with reference to this one which I wrote yesterday. After
Based on this question I don't want to litter my ready stuff waiting for
I'm writing this question because one little invisible problem has taken from me hours
somewhat related to: libxml2 from java yes, this question is rather long-winded - sorry.
This is just a general question - I was sitting and waiting for a

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.