0

I have added some pre-compiled tools for developing ARM into the /home/charlie/bin/ARM directory. When I modify the path by PATH=/home/charlie/bin/ARM:"$PATH" I can execute arm-none-eabi-gcc in the terminal.

However when I run make I got this error:

/bin/sh: 1: arm-none-eabi-gcc: not found.

What is the proper mechanism to make new programs located anywhere to be executed like native binaries (for example gcc) and why was I able to run it in terminal after changing PATH but make had problems ?

  • Did you export the modified PATH variable? Did you just modify it in the current terminal, or add it to your ~/.bashrc or ~/.profile and re-source it? – steeldriver Mar 11 '15 at 12:56
  • I added it to ~/.bashrc and then I re- source -ed it. – Al Bundy Mar 11 '15 at 12:59
  • Could you please convert that to an answer so that schmucks like me who go around hunting for unanswered questions don't have to look at this one any more. ;-) (And I'll upvote if you drop me a note and it's a good one too!) – Fabby Mar 14 '15 at 15:36
  • How should I do that? Should I just type answer below or should I also mark it somehow? – Al Bundy Mar 16 '15 at 21:17
0

OP's original answer:

The PATH needs to be EXPORTed too!

export PATH=/home/charlie/bin/ARM:"$PATH"
| improve this answer | |

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.