I followed the instructions from the book, titled Installing Arduino in Raspian. BIG FAIL. The word electronics did not show up. I have the latest download of Wheezy. Would appreciate some help on this. Thanks Jimmy
I followed the instructions from the book, titled Installing Arduino in Raspian. BIG FAIL. The word electronics did not show up. I have the latest download of Wheezy. Would appreciate some help on this. Thanks Jimmy
Here's what I did to get the Arduino IDE on the Raspberry Pi:
sudo apt-get update
sudo apt get install arduino
The update command will make sure that you get the latest versions of all the files. If you do not do this it may not find
some of the files and it will not install. I've had this happen to me twice now.
The install command will automatically download and install all the files needed (including arduino-core) for the Arduino IDE.
After you have have done this you should see the Electronics folder in your Applications menu. The Arduino IDE should be in
that folder.
Good luck.
OK, let's try this, I know it looks like a lot but you will only need to do 1 or 2 (not both), and
3 only if 1 or 2 fails:
1) If you know how to use the vi editor:
a. Make a backup copy first:
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
b. Edit the file:
sudo vi /etc/apt/sources.list
c. Add this line:
deb http://mirrordirector.raspbian.org/raspbian wheezy main contrib non-free rpi
d. Try the apt-get update and install again.
2) If you do not know how to use vi use a graphical interface editor by:
a. Make a backup copy as shown in 1a
b. Assuming you are in the pi home directory (/home/pi) so you know where the file is,
copy the sources.list file:
sudo cp /etc/apt/sources.list .
c. Change the ownership so you can modify it:
sudo chown pi:pi sources.list
d. Use any text editor you like to add the same line as in 1c
e. Put the modified file back where it belongs:
sudo chown root:root sources.list
sudo mv sources.list /etc/apt
Note: using chown again is probably not needed if sudo is used to move it back, but
just in case I added the command anyway.
f. Try the atp-get update and install again.
3) If 1 or 2 fails
Do another apt-get install and send the error output and standard output from that command to
the file arduino.txt using this command:
sudo apt-get install arduino 2>&1 arduino.txt
None of the normal text output from the command will be sent to the screen so just wait until the
command line prompt is displayed before going to the next command.
Change the ownership of arduino.txt to make sure you can read and write it:
sudo chown pi:pi arduino.txt
Attach the arduino.txt file to an email and send it to the email address in my profile.
If there is an error message in the file I should be able to find it and help fix it.
Just for fun I started with a fresh install.
I did
sudo apt-get update
sudo apt-get upgrade
sudo reboot
sudo apt-get install arduino
everything worked fine.
Now it did install java, the avr tools, etc...
the only think I can think of is that the installation did not complete somehow. Do what Gary said and capture your output. Are you sure you have plenty of diskspace? I did this on a 16gb card, a 2 or a 4 may be too small.
It definitely installed it in /usr/share/arduino and it created the Electronics folder in the menu and put Arduin IDE
in there.
We can solve this for you, I'm sure it is something silly.
Mike
Hi Mike and Jimmy,
I have installed the Arduino IDE five or six times on the Pi (I have two Pi's, one 256MB and one 512MB, and have upgraded Raspbian and
the SD card disks a couple of times on each) and the only thing I've had problems with recently is forgetting to update before the install.
However Jimmy, Mike's disk size question is a good one. The Arduino IDE install requires a quite a bit of disk space mainly because of
Java and the way apt-get caches packages it is installing and I'm pretty sure that it was a problem on one of my earliest install attempts
with a 2GB SD card. This was one of the main reasons for my first SD card upgrades. I definitely recommend a 4GB SD card minimum if
you plan to add any software at all to the Pi.
If you have a 4 GB or larger SD card or just prefer to skip my first two suggestions and go directly to the ouput capture go ahead. Like Mike
said I'm sure we can help you get this working.
I didn't remember having any issues when I had installed it before either. As a matter of fact tonight I did it on 2 seperate pi's and had no issues with the instructions I gave. One I did over VNC and one through ssh on the console. I've gotta believe something went wrong in the install, either ran out of disk space, or something couldnt get resolved. But the packages seemed pretty tight tonight.
We'll get him going.
Mike
I didn't remember having any issues when I had installed it before either. As a matter of fact tonight I did it on 2 seperate pi's and had no issues with the instructions I gave. One I did over VNC and one through ssh on the console. I've gotta believe something went wrong in the install, either ran out of disk space, or something couldnt get resolved. But the packages seemed pretty tight tonight.
We'll get him going.
Mike