I am working on a machine with
Linux version 2.6.16.46-0.12-smp (geeko@buildhost) (gcc version 4.1.2 20070115 (prerelease) (SUSE Linux)) #1 SMP Thu May 17 14:00:09 UTC 2007
and I don't have root privileges. I was trying to compile a self-written program that needs OpenMP. However limgomp is not installed and thus compilation fails.
Is there a way to install my program, e.g. by somehow using a newer compiler in my home directory or something?
If you have a compiler and sufficient space in writable directories, sure, you can just fetch the sources for missing packages and compile them there.
Installing programs from source usually consists of three steps: configuring, building / compiling and installing (copying to target locations). Read the README to find out what you have to change for configure, then usually just run make
and install into your home directory or skip the install step altogether.
Add the path to the resulting executables to your PATH and you should be able to run your newly compiled programs.
Expect to spend several hours (or days) for reading documentation and waiting for compilation to finish (depends on how much you have to compile). Or, maybe, look for another way to get things done.