Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

Arduino 1.8.5 does not work after install

Open ixb11170 opened this issue 6 years ago • 9 comments

The application does not start after install on RPI 3b running Raspbian Jessie.

I followed the instructions on https://www.arduino.cc/en/Guide/Linux, downloaded the ARM version, unpacked, built and installed all successfully.

I got the warning:

Adding desktop shortcut, menu item and file associations for Arduino IDE...
touch: cannot touch '/root/.local/share/applications/mimeapps.list': No such file or directory
/usr/bin/xdg-mime: 803: /usr/bin/xdg-mime: cannot create /root/.local/share/applications/mimeapps.list.new: Directory nonexistent
done!

Found this message in a few other issues posts but can't resolve the problem.

I tried to start the application from the Desktop, as well as from the command line and neither worked. Let me know if any more details would help.

Cheers.

ixb11170 avatar Jul 30 '18 12:07 ixb11170

Please:

  • un-tar the arduino archive in a folder
  • run arduino in that folder from command line
  • copy the output here

cmaglie avatar Aug 08 '18 12:08 cmaglie

for me the installation worked this way: wget http://downloads.arduino.cc/arduino-1.8.5-linuxarm.tar.xz tar -x -f arduino-1.8.10-linuxarm.tar.xz # or which version ever no automatic arduino link creation, instead localize the arduino program in the arduino directory by leafpad and then create a link on the desktop

dsyleixa avatar Aug 09 '18 18:08 dsyleixa

Hello, I had a same issues with a Raspberry Pi 4, Quad core 64 bit ARM cortex-A72 cpu.

I followed this tutorial exactly. https://magpi.raspberrypi.org/articles/program-arduino-uno-raspberry-pi

using sudo apt-get install arduino will install a very outdated version of Arduino on a computer.

Executing the command will result in following error messages.

root@raspberrypi:/opt/arduino-1.8.13# sudo ./install.sh Adding desktop shortcut, menu item and file associations for Arduino IDE...

touch: cannot touch '/root/.config/mimeapps.list': No such file or directory /usr/bin/xdg-mime: 848: /usr/bin/xdg-mime: cannot create /root/.config/mimeapps.list.new: Directory nonexistent

done!

Arduino won't run if you click on the GUI.

Running ARDUINO will result in an error from a source code.

root@raspberrypi:/opt/arduino-1.8.13# ./arduino ./arduino: line 35: /opt/arduino-1.8.13/java/bin/java: cannot execute binary file: Exec format error

I figured out a solution by dsyleixa.

Running ./install.sh will actually break the source code so running ./arduino won't work anymore. Do not run install.sh.

Run the program arduino by using this command after 'cd'ing into the correct directory: ./arduino

Like this!! pi@raspberrypi:~/Desktop/arduino-1.8.13 $ ./arduino

ghost avatar Jun 23 '20 08:06 ghost

Hi @AndersonLovesYou , depending on your Raspbian distribution you should use the arm32 or the arm64 build. The processor is indeed 64bit but the RaspberryPi foundation used to released a single version of their software that runs on all boards (so it's 32bit). Either way, if you downloaded the 64 bit IDE try the 32 bit one :slightly_smiling_face:

facchinm avatar Jun 23 '20 08:06 facchinm

As a heads up, I just downloaded the 32 bit version onto my 32 bit RaspberryPi OS. The install script still has this issue and refuses to play nice.

Eewec avatar Nov 14 '20 16:11 Eewec

Please:

* un-tar the arduino archive in a folder

* run `arduino` in that folder from command line

* copy the output here

[work@haco01 arduino-1.8.13]$ ./arduino ./arduino: line 35: /home/work/Documents/Software/arduino-1.8.13/java/bin/java: cannot execute binary file Any ideas?

arturo-rodriguez35 avatar Apr 12 '21 10:04 arturo-rodriguez35

Still doesn't work for me. I started from zero (deleted all previous installation, downloaded, untar, and ran) and still get the same message

arturo-rodriguez35 avatar Apr 12 '21 14:04 arturo-rodriguez35

what exactly was your download command? what Pi do you use? what Raspberry OS?

dsyleixa avatar Apr 12 '21 15:04 dsyleixa

I ran into the same problem trying to install 1.8.15 using a Raspberry Pi 4 Model B Rev 1.4 running Debian 10.9 (buster).

I manually downloaded the .tar and ran the following commands as user pi from ~/Downloads tar -xf arduino-1.8.15-linuxarm.tar.xz sudo mv arduino-1.8.15 /opt sudo /opt/arduino-1.8.15/install.sh

This sequence of steps produced this error:

touch: cannot touch '/root/.config/mimeapps.list': No such file or directory /usr/bin/xdg-mime: 848: /usr/bin/xdg-mime: cannot create /root/.config/mimeapps.list.new: Directory nonexistent

done!

I was able to correct the error using the following command sequence right after I got the error above.

sudo su cd /root mkdir .config chmod 777 .config exit sudo /opt/arduino-1.8.15/install.sh

The chmod 777 .config command probably isn't needed, but that's what I did. I didn't uninstall after the initial error. I just entered the commands exactly as shown above and the installer executed. The following output was generated by the installer: Adding desktop shortcut, menu item and file associations for Arduino IDE...

done!

After this, I was able to successfully launch the IDE using the Programming->Arduino IDE menu option.

magellannh avatar Jul 03 '21 14:07 magellannh