Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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?

share|improve this question
    
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

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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