pyCharm Install on Raspberry Pi running 64-bit Debian

I'm trying to install PyCharm on my 64-bit Debian Pi. The install completed OK without errors but when I try to run Pycharm from terminal I get:

"./pycharm.sh: 168: exec: /opt/pycharm-community-2022.3.2/jbr/bin/java: not found"

However, "java" is present at that location. I used the aarch64 Pycharm package when installing.  Do I need to use the 32-bit package instead, or can the 64-bit package be made to work here?

0
Hi, 

Could you please provide the output of `cat /proc/cpuinfo` from the device?

Also, please provide the output of `/opt/pycharm-community-2022.3.2/jbr/bin/java -version`
0

cat /proc/cpuinfo
processor    : 0
BogoMIPS    : 108.00
Features    : fp asimd evtstrm crc32 cpuid
CPU implementer    : 0x41
CPU architecture: 8
CPU variant    : 0x0
CPU part    : 0xd08
CPU revision    : 3

processor    : 1
BogoMIPS    : 108.00
Features    : fp asimd evtstrm crc32 cpuid
CPU implementer    : 0x41
CPU architecture: 8
CPU variant    : 0x0
CPU part    : 0xd08
CPU revision    : 3

processor    : 2
BogoMIPS    : 108.00
Features    : fp asimd evtstrm crc32 cpuid
CPU implementer    : 0x41
CPU architecture: 8
CPU variant    : 0x0
CPU part    : 0xd08
CPU revision    : 3

processor    : 3
BogoMIPS    : 108.00
Features    : fp asimd evtstrm crc32 cpuid
CPU implementer    : 0x41
CPU architecture: 8
CPU variant    : 0x0
CPU part    : 0xd08
CPU revision    : 3

Hardware    : BCM2835
Revision    : d03114
Serial        : 10000000ee3a32ba
Model        : Raspberry Pi 4 Model B Rev 1.4

----------------------------

/opt/pycharm-community-2022.3.2/jbr/bin/java -version
bash: /opt/pycharm-community-2022.3.2/jbr/bin/java: No such file or directory

-------------------------

/opt/pycharm-community-2022.3.2/jbr/bin $ ls
total 1.2M
drwxr-xr-x 2 4.0K Jan 20  1970 .
drwxr-xr-x 7  4.0K Jan 20  1970 ..
-rwxr-xr-x 1   70K Jan 20  1970 java
-rwxr-xr-x 1   70K Jan 20  1970 javac
-rwxr-xr-x 1   70K Jan 20  1970 javadoc
-rwxr-xr-x 1   70K Jan 20  1970 jcmd
-rwxr-xr-x 1   70K Jan 20  1970 jdb
-rwxr-xr-x 1   70K Jan 20  1970 jfr
-rwxr-xr-x 1   70K Jan 20  1970 jhsdb
-rwxr-xr-x 1   70K Jan 20  1970 jinfo
-rwxr-xr-x 1   70K Jan 20  1970 jmap
-rwxr-xr-x 1   70K Jan 20  1970 jps
-rwxr-xr-x 1   70K Jan 20  1970 jrunscript
-rwxr-xr-x 1   70K Jan 20  1970 jstack
-rwxr-xr-x 1   70K Jan 20  1970 jstat
-rwxr-xr-x 1   70K Jan 20  1970 keytool
-rwxr-xr-x 1   70K Jan 20  1970 rmiregistrycat /proc/cpuinfo
-rwxr-xr-x 1   70K Jan 20  1970 serialver

 

0
Thank you,

```
/opt/pycharm-community-2022.3.2/jbr/bin/java -version
bash: /opt/pycharm-community-2022.3.2/jbr/bin/java: No such file or directory
```

This is suspicious. Could it be that you're using some kind of sandboxed environment? Is `/opt` directory local or network-mounted?

Let's try this:

```
readlink -f /opt/pycharm-community-2022.3.2/jbr/bin/java
```
0

readlink -f /opt/pycharm-community-2022.3.2/jbr/bin/java
/opt/pycharm-community-2022.3.2/jbr/bin/java

The file is there, I don't know why pycharm can't find it

0

Oh, also, no sandbox and local, not network.  Standard Raspberry Pi install other than having upgraded to Debian Bullseye. 

0
Well, it's not just PyCharm, as we have seen a similar issue in bash.

What happens if you simply try to execute this binary by running `/opt/pycharm-community-2022.3.2/jbr/bin/java`?

Try also `bash -c /opt/pycharm-community-2022.3.2/jbr/bin/java`
0

/opt/pycharm-community-2022.3.2/jbr/bin/java
bash: /opt/pycharm-community-2022.3.2/jbr/bin/java: No such file or directory

--------------------------------

bash -c /opt/pycharm-community-2022.3.2/jbr/bin/java
bash: line 1: /opt/pycharm-community-2022.3.2/jbr/bin/java: No such file or directory

0
Well, I'm not sure why the shell can't execute the file, but it seems to be what's causing the issue.
0

Any ideas for fixing it?

0

Any resolution to this? I have run into this exact problem and can't make heads nor tails of it. The ‘java’ executable is there and looks OK but my shell (zsh) says no …

0

请先登录再写评论。