You are not logged in.

#1 2008-10-14 15:47:39

yumyum
Member
From: Reykjavík, Iceland
Registered: 2008-09-27
Posts: 13

[SOLVED] Set user paths

When i compile programs from source, the executables always go to "/usr/local/bin" but my user account is set to execute only from /usr/bin/ so i either have to make links or enter the full path.

How can I set my user account to /usr/local/bin?

Or how to i compile programs to make the executables go to /usr/bin/ ?

Last edited by yumyum (2008-10-14 15:58:21)

Offline

#2 2008-10-14 15:53:03

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [SOLVED] Set user paths

The preferred method is to pass --prefix=/usr to everything when you're compiling, then you don't need to worry about stuff going into /usr/local. But, if you'd rather go the other way you can add this to ~/.bashrc

export PATH=$PATH:/usr/local/bin

It will be set every time you log in.

Offline

#3 2008-10-14 15:58:36

yumyum
Member
From: Reykjavík, Iceland
Registered: 2008-09-27
Posts: 13

Re: [SOLVED] Set user paths

Thanks!

Offline

Board footer

Powered by FluxBB