Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rake make:upload --no such file to load vendor/rad/init.rb #5

Open
rolandoivan23 opened this issue May 9, 2012 · 1 comment
Open

Comments

@rolandoivan23
Copy link

I try to load my sketch into arduino board but it throws this error rake make:upload --no such file to load vendor/rad/init.rb

hardware.yml

serial_port: /dev/ttyACM0
mcu: atmega328
physical_reset: false

software.yml

arduino_root: /home/rolando/Descargas/arduino-1.0

@biojerm
Copy link

biojerm commented May 16, 2012

I had the same problem. When I looked into it, it seems that RAD did not make the Ruby 1.9 transition. I have been able to get past that error by using ruby 1.8.7. I used RVM to create a local ruby 1.8.7(or ree) in my RAD project root directory.

This link has a nice video on how to setup the .rvmrc
http://screencasts.org/episodes/how-to-use-rvm

after you make the local 1.8.7 environment you will have to locally install RAD, ruby2c and ParseTree. Also, I think you have to install ParseTree 2.2.0 to work with RAD. The latest versions do not work. After doing that I now get this error

rm /home/jeremy/blink_sketch/blink_sketch/Makefile
1 of 17 plugins are being loaded: blink.rb
cd /home/jeremy/blink_sketch/blink_sketch; make depend; make
if grep '^# DO NOT DELETE' Makefile >/dev/null;
then
sed -e '/^# DO NOT DELETE/,$d' Makefile >
Makefile.$$ &&
mv -f Makefile.$$ Makefile;
fi
echo '# DO NOT DELETE THIS LINE -- make depend depends on it.'
>> Makefile;
/Applications/arduino-0012/hardware/tools/avr/bin/avr-gcc -M -mmcu=atmega168 -DF_CPU=16000000 -I/Applications/arduino-0012/hardware/cores/arduino -I/Applications/arduino-0012/hardware/libraries/SoftwareSerial /Applications/arduino-0012/hardware/cores/arduino/pins_arduino.c /Applications/arduino-0012/hardware/cores/arduino/wiring.c /Applications/arduino-0012/hardware/cores/arduino/wiring_analog.c /Applications/arduino-0012/hardware/cores/arduino/wiring_digital.c /Applications/arduino-0012/hardware/cores/arduino/wiring_pulse.c /Applications/arduino-0012/hardware/cores/arduino/wiring_serial.c /Applications/arduino-0012/hardware/cores/arduino/wiring_shift.c /Applications/arduino-0012/hardware/cores/arduino/WInterrupts.c >> Makefile
/bin/sh: 3: /Applications/arduino-0012/hardware/tools/avr/bin/avr-gcc: not found
make: *** [depend] Error 127
make: *** No rule to make target /Applications/arduino-0012/hardware/cores/arduino/pins_arduino.o', needed bycore.a'. Stop.
rake aborted!
Command failed with status (2): [cd /home/jeremy/blink_sketch/blink_sketch;...]

(See full trace by running task with --trace)
jeremy@ubuntu:~/blink_sketch$

I have yet to solve that problem, but if I figure it out I will post the solution here.

Best of luck,
Jeremy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants