[Solved] Shell / Makefile Linker


error messages like

avr-gcc: No such file or directory

Indicate 1 of several things

  1. the executable avr-gcc is not installed (properly)

  2. and/or the PATH env var does not include the directory that holds the executable

  3. the makefile was called incorrectly.

  4. Others

Here are some things to try

When you say “downloaded the makefile”, is that all you downloaded, or did you download a complete package (avr?) If just the makefile, you have to download the whole software package first before you can continue.

Many software packages rely on set-up information being captured automatically or passed in as env-vars to running the make file.

Look through the .txt (sometimes .doc) files that come with the software distribution. Look for README or INSTALL. You might find that you need to run a simple set of commands to setup the environment. Very often

./configure
make
make install

is all you need.

If there are no directions like that with your package, then you need to discover where your avr-gcc is located and add that to the PATH, i.e.

 find / -name 'avr-gcc*'

Take the path returned by, strip off the ending /avr-gcc and add it to your PATH, i.e.

 PATH="${PATH}:/path/to/avr-gcc-subdir"
 export PATH
 make

If this doesn’t work, please edit your question to include a URL to the source code for this package.

I hope this helps.

P.S. Remember to accept the answer that best solves your problem, if any, by pressing the checkmark sign, http://i.imgur.com/uqJeW.png. When you see good Q&A, vote them up by using the gray triangles, http://i.imgur.com/kygEP.png. Note that ‘giving’ reputation points to others does not mean a deduction to your reputation points (unless you have posted a bounty).

2

solved Shell / Makefile Linker