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

Arduino 1.8.5 does not work after install #7846

Open
ixb11170 opened this issue Jul 30, 2018 · 9 comments
Open

Arduino 1.8.5 does not work after install #7846

ixb11170 opened this issue Jul 30, 2018 · 9 comments
Labels
OS: Linux Specific to the Linux version of the Arduino IDE Type: Bug

Comments

@ixb11170
Copy link

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.

@per1234 per1234 added the OS: Linux Specific to the Linux version of the Arduino IDE label Jul 30, 2018
@cmaglie
Copy link
Member

cmaglie commented Aug 8, 2018

Please:

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

@dsyleixa
Copy link

dsyleixa commented Aug 9, 2018

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

@ghost
Copy link

ghost commented Jun 23, 2020

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

@facchinm
Copy link
Member

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 🙂

@Eewec
Copy link

Eewec commented Nov 14, 2020

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.

@arturo-rodriguez35
Copy link

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
Copy link

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

@dsyleixa
Copy link

dsyleixa commented Apr 12, 2021

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

@magellannh
Copy link

magellannh commented Jul 3, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS: Linux Specific to the Linux version of the Arduino IDE Type: Bug
Projects
None yet
Development

No branches or pull requests

8 participants