Arduino 1.8.19 not launching on RPi 4 Model b

I downloaded the IDE (ARM 32 bit version) via the official website. And, when I ran

sudo /opt/arduino-####/install.sh

(# replaced by "1.8.19"), the IDE showed up under Programming. I clicked it, the hourglass animation went on for 15 seconds and nothing happened. How do I fix this?

Device: RPi 4 Model b, Rasbian 11, 32 bit. As to why I'm trying to program an Arduino on an RPi is that I'm trying to enable serial communication between the 2 devices.
I also have Serial Port and Serial Console enabled. This is the website I used for reference: Install Arduino IDE on Raspberry Pi - Raspberry Pi Spy

EDIT: I decided to just use the online IDE, Arduino Cloud. Problem solved?

Hi @port1. In order to gather more information that might help us to troubleshoot your problem, I'm going to ask you to run the Arduino IDE from the command line, then share the output.

Please do this:

  1. Start a terminal in the Arduino IDE installation folder.
  2. Type the following command:
    /opt/arduino-1.8.19/arduino
    
  3. Press Enter.
  4. Wait for the Arduino IDE startup to hang, which would be indicated by no new text being printed to the command line terminal.
  5. Switch back to the terminal window if the Arduino IDE window took the focus.
  6. Click and drag the mouse to select all the output in the terminal window.
  7. Press Ctrl+C.
    This will copy the selected text to the clipboard.
  8. Open a forum reply here by clicking the Reply button.
  9. Click the </> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the output is correctly formatted.
    Code block
  10. Press Ctrl+V.
    This will paste the output into the code block.
  11. Move the cursor outside of the code block markup before you add any additional text to your reply.
  12. Click the Reply button to post the output.

Please let me know if you have any questions or problems while following those instructions.

which is to say 'start Terminal and type the command', I'm assuming?

I went ahead and opened Terminal, typed in the command and this was the output:

/opt/arduino-1.8.19/java/bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory

I'm getting the same problem with the 64 bit version on a pi400.

I see a previous report about it here:

I re-downloaded the archive from the site, untarred again and it appears that this archive had more files in it. Weird, I don't recall seeing errors related to a premature end of the tar archive. Now the library is there, and it works.

I don't understand. What am I supposed to do? I'm having issues moving the old one to Wastebasket. So The new one (re-downloaded version) stays in Downloads.
Error:
arduino-1.8.19: Unable to move file /opt/arduino-1.8.19 to the wastebasket: Permission denied

I'm having the same problem. Here's the message I get when running it through the command line.

/opt/arduino-1.8.19/arduino: line 35: /opt/arduino-1.8.19/java/bin/java: cannot execute binary file: Exec format error

I get this error when trying to launch Arduino IDE

pi@raspberrypi:/opt/arduino-1.8.19 $ sudo ./install.sh 
Adding desktop shortcut, menu item and file associations for Arduino IDE...


 done!
pi@raspberrypi:/opt/arduino-1.8.19 $ ./arduino
./arduino: ligne 35: /opt/arduino-1.8.19/java/bin/java: Aucun fichier ou dossier de ce type
pi@raspberrypi:/opt/arduino-1.8.19 $ 

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.