Path managment in Linux programs
Posted
by petersohn
on Stack Overflow
See other posts from Stack Overflow
or by petersohn
Published on 2010-06-15T12:17:03Z
Indexed on
2010/06/15
12:22 UTC
Read the original article
Hit count: 267
I have a newbie Linux programming question. Suppose I have a project that uses Autotools for compiling and deployment, and I have data files that are to be installed in a location like /var/something
or /usr/share/something
etc., but in Autoconf, I can change these installation paths. How should the program find these files? How does it know where they are actually installed (if anywhere, since the program should work even if not installed, but run from where it was built)?
© Stack Overflow or respective owner