- I'm using the Ubuntu in UserLAnd on an android.
- I just installed from the Android SDK Manager sdkmanager cmake 3.18.1.
Now, I can see the cmake executable from its directory cmake/3.18.1/bin
byls
, but when I run ./cmake
, bash returns bash: ./cmake: No such file or directory
. What went wrong? The full output from console:
ubuntu@me:~/cmake/3.18.1/bin$ ls
ccmake cmake cpack ctest ninja
ubuntu@me:~/cmake/3.18.1/bin$ ./cmake
bash: ./cmake: No such file or directory
ubuntu@me:~/cmake/3.18.1/bin$ file ./cmake
./cmake: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, stripped
ubuntu@me:~/cmake/3.18.1/bin$ ldd ./cmake
not a dynamic executable
ubuntu@me:~/cmake/3.18.1/bin$ uname -m
aarch64
Thanks!
./
refers to the current directory - are you actually executing the command fromcmake/3.18.1/bin
? – steeldriver Nov 11 '23 at 03:14file ./cmake
and/orldd ./cmake
may be diagnostic. – steeldriver Nov 11 '23 at 03:30file
andldd
gives me, I'm running on a 32-bit architecture but thiscmake
is 64-bit. The solution is to install 32-bitcmake
instead, right? – wicstas Nov 11 '23 at 03:47uname -m
– steeldriver Nov 11 '23 at 03:50aarch64
. – wicstas Nov 11 '23 at 03:53