Page 1 of 1

readlink command not found

Posted: Sat Jul 17, 2010 3:01 pm
by pieter
I just installed the CrossPack-AVR-20100115.dmg on my Powerbook with Mac OS 10.3.
After having started with the Getting Started section of the manual I came not further then having edited the 2 files Makefile and main.c.
I just wanted to execute the command avr-gcc-select 4, but came up with the message
/usr/local/CrossPack-AVR/bin/avr-gcc-select: line 1: readlink: command not found
Current default compiler:gcc

Looking inside the shell script it seems not to execute readlink
Tried to do it on the commandline and obviously came with the same result: readlink: command not found

Who knows the answer?

By the way the results are ok. It seems a cosmetic default.
In /usr/local/CrossPack-AVR-20100115/etc/options is found the file gcc-version -> ../../avr-4 and changes to gcc-version -> ../../avr-3 when given the command avr-gcc-select 3.
The same cosmetic defaults are seen when executing the command make. It does create the files main.o, main.elf and main.hex.

Re: readlink command not found

Posted: Sat Jul 17, 2010 7:35 pm
by pieter
Solved by ls -l /usr/local/CrossPack=AVR-20100115/etc/options | tail -c -3 result "-3"