You are not logged in.
I've got two different versions of arm-elf-gcc installed, one in /usr/bin and one in /usr/local/arm-elf/bin. I'm trying to compile something that needs the version in /usr/local/arm-elf/bin, how do I tell bash that I want to use that one, and not the one in /usr/bin?
Thanks!
Last edited by Yes (2009-06-13 14:24:22)
Offline
export PATH="$PATH:/usr/local/arm-elf/bin"
should do the trick
"I'm Winston Wolfe. I solve problems."
~ Need moar games? [arch-games] ~ [aurcheck] AUR haz updates? ~
Offline
Probably with something like:
CC=/usr/local/arm-elf/bin/gcc ./configure
Offline
@arkham: bash will use the binary in the first path it finds, so it should be the other way around.
Offline
export PATH="$PATH:/usr/local/arm-elf/bin"
should do the trick
I tried that, and then when I run 'which arm-elf-gcc' it still says '/usr/bin/arm-elf-gcc'. That means it's still using the wrong one right?
Running 'CC=/usr/local/arm-elf/bin/gcc ./configure' doesn't seem to have any change.
e: Running 'export PATH="/usr/local/arm-elf/bin:$PATH"' seems to have worked. Lemme see if this compiles though...
Thanks : D
e: It worked! Thank you all!
Last edited by Yes (2009-06-13 14:24:06)
Offline
@arkham: bash will use the binary in the first path it finds, so it should be the other way around.
Yeah.. I was 100% sure to have that written it the right way
"I'm Winston Wolfe. I solve problems."
~ Need moar games? [arch-games] ~ [aurcheck] AUR haz updates? ~
Offline