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 5979601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:40:57+00:00 2026-05-22T21:40:57+00:00

Should it generally be possible to run a program from the source directory (src)

  • 0

Should it generally be possible to run a program from the source directory (src) after having invoked ./configure and make (but not make install)? I’m trying to fix a bug in an application and it seems unnecessary to run make install after each code change. Unfortunately I can’t run the application in the source directory since it tries to access files in the lib installation directory (which do not exist before make install). Is the application wrongly configured or do I have to reinstall it after each change to the source code?

  • 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-22T21:40:58+00:00Added an answer on May 22, 2026 at 9:40 pm

    It all depends on the application and what components or files it expects to be visible and where. But assuming no required configuration or dependencies, then yes, you can run the program in-place.

    To add a directory to your lib search path, add to the environment variable LD_LIBRARY_PATH. Like so:

    LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/user/myproject/lib" ./someprogram
    

    Note that specifiying a variable assignment on the command line in front of the program you run sets that variable for that run only. (Note, no semicolon — this is a single command.) If you want to set the variable for the entire session, use

    export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/user/myproject/lib"
    

    I’d recommend against this, though. It can lead to problems and confusion.

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

Sidebar

Related Questions

The general advice is that you should not call GC.Collect from your code, but
I know you generally should not depend on order for your unit tests, but
It is generally accepted that the use of cursors in stored procedures should be
Is it possible to find any information about what a Python program running right
Possible Duplicate: Working with large numbers in PHP. I run a completely useless Facebook
Possible Duplicates: Should we support IE6 anymore? IE6: To support or not to support.
Possible Duplicate: General strategy to resolve Java memory leak? I have a standalone program
Generally speaking - is it possible to draw with javascript two diagonal lines inside
Possible Duplicate: Gui toolkits, which should I use? I've got a fair bit of
What should be the general guidelines/gotchas for dividing application code (App_Code) into separate files?

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.