Take the 2-minute tour ×

I'm at a shared terminal and I want to build a program that works fine on my home computer. I don't have sudo permissions. I need to build a couple of libraries: GotoBlas and UMFpack.

Is there some kind of traditional Linux library location that I can use such as home/lib/?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

There isn't one that will "just work", however you can specify additional lib paths when linking, by using the -rpath-link and -rpath options in ld.

-rpath PATH                 Set runtime shared library search path
-rpath-link PATH            Set link time shared library search path

So you can make it whatever will work on your two machines.

share|improve this answer
Rather sad. I wonder what people who use shared normally do? –  Mikhail Oct 24 '11 at 2:35
In a shared environment where you have this level of access there is likely a standard for locally created libraries already in place (defined by the creaters of the shared environment). However, your home machine is entirely separate and so won't conform to this standard. If you can find out what the standard is, then you can reproduce it. –  Paul Oct 24 '11 at 11:18

Your Answer


