Raspberry Piでクロスコンパイルされたプログラムを実行すると、「そのようなファイルやディレクトリはありません」
最近Raspberry Piを購入しました。私はすでにそれを構成しており、自分のデスクトップ(amd64)にarm用のクロスコンパイラーをインストールしています。単純な「hello world」プログラムをコンパイルしてから、それをデスクトップからPiにでコピーしましたscp ./hello david@192.168.1.33:~/hello。私のPiにログインした後、実行するls -l helloと通常の応答が返されます。 -rwxr-xr-x 1 david david 6774 Nov 16 18:08 hello しかし、それを実行しようとすると、次のようになります。 david@raspberry-pi:~$ ./hello -bash: ./hello: No such file or directory david@raspberry-pi:~$ file hello hello: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26, BuildID[sha1]=0x6a926b4968b3e1a2118eeb6e656db3d21c73cf10, not stripped david@raspberry-pi:~$ …