L
Luna Crane
Guest
I know /etc/profile has a PATH variable for binaries, and during configuring a program you can specify "--prefix=/usr --libdir=/usr/lib64" , but these are not usually properly functional (often don't listen), especially when using 32-bit compatibility libraries. The number 1 problem I have in installing programs is getting them to properly find and identify the right libraries on my system. My question is, why isn't there a LIBPATH environment variable that specifies where a binary should look for libraries on the fly, independently of the program's location?
It's already an issue that many of the lib names are non-standard: In essence, /lib can contain 32-bit or 64-bit libraries depending on the system. Many programs don't even consider the more accurate /lib32 + /lib64 setup, and most distros don't either.
Programs and scripts should, for the most part, install anywhere + run anywhere, no matter the distro's specific setup, even if that may mean generically-compiled binaries and libs are included with the program. Furthermore, there shouldn't be a conflict in choosing between system-wide installed libs and libs included with the program. The only way I see to do all of this is a separate LIBPATH environment variable, much like the PATH variable for binaries. I think it could solve many of the incompatibilities between many distros and their packages (even more so than converting packages).
I doubt I'm the first to consider such a thing, so is there a reason there isn't a LIBPATH environment variable?
It's already an issue that many of the lib names are non-standard: In essence, /lib can contain 32-bit or 64-bit libraries depending on the system. Many programs don't even consider the more accurate /lib32 + /lib64 setup, and most distros don't either.
Programs and scripts should, for the most part, install anywhere + run anywhere, no matter the distro's specific setup, even if that may mean generically-compiled binaries and libs are included with the program. Furthermore, there shouldn't be a conflict in choosing between system-wide installed libs and libs included with the program. The only way I see to do all of this is a separate LIBPATH environment variable, much like the PATH variable for binaries. I think it could solve many of the incompatibilities between many distros and their packages (even more so than converting packages).
I doubt I'm the first to consider such a thing, so is there a reason there isn't a LIBPATH environment variable?