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?
Should it generally be possible to run a program from the source directory (src)
Share
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
libsearch path, add to the environment variableLD_LIBRARY_PATH. Like so: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
I’d recommend against this, though. It can lead to problems and confusion.