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.
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.