I need to install some software as user on a machine where I don't have root access.

So far I've been using gentoo-prefix, but ain't really fine with it: I need GCC 4.6 and gentoo only ships 4.5, I don't like having to compile everything, and I'm not a fan of gentoo and portage.

Is there any other option of doing that?
Something like a fakeroot wouldn't be enough?

  • Might be a duplicate, anyway, I'd answer in quite the same way. (While pkgsrc doesn't save you from compiling yourself, zeroinstall probably could.) – sr_ Jan 24 '12 at 8:54

If you are downloading a source of the GCC you can simply compile it and have it installed in your home directory.

./configure --prefix=$HOME/gcc-4.6

should do it.

Once you do that just make sure that $HOME/gcc-4.6/bin is in the path before /usr/bin or /usr/local/bin and $HOME/gcc-4.6/lib is added to your LD_LIBRARY_PATH environment variable.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.