Cannot execute cmake, fails to link some kind of library

So, i just want to use cmake as my C++ build System, but, when trying to run cmake --version after installing it, it says:
CANNOT LINK EXECUTABLE "cmake": cannot locate symbol "_ZN4Json5ValueaSEOS0_" referenced by "/data/data/com.termux/files/usr/bin/cmake"...
CANNOT LINK EXECUTABLE "cmake": cannot locate symbol "_ZN4Json5ValueaSEOS0_" referenced by "/data/data/com.termux/files/usr/bin/cmake"...
what? i already do that pkg up command, that's seems doesn't do anything, anyone can help me?
4 Replies
FZXO
FZXO4w ago
Maybe apt reinstall cmake
RandomGuy
RandomGuyOP4w ago
that's doesn't work, btw, i change the default package manager to pacman tho, but that's, i think, not the issue, I guess
Max Ivan
Max Ivan4w ago
Try pacman -Syu
RandomGuy
RandomGuyOP4w ago
doesn't work either, it's strange that it doesn't work for no clear reason, it may missing a dependency or what, idk. maybe this cmake package need to be rebuild, or if it just pacman couldn't get the dependency right, i don't know also, did the cmake work in your device? i guess this issue because of jsoncpp, because i try to install other package that has this package as dependency, like Luanti, it will fail:
CANNOT LINK EXECUTABLE "luanti": cannot locate symbol "_ZTIN4Json9ExceptionE" referenced by "/data/data/com.termux/files/usr/bin/luanti"...
CANNOT LINK EXECUTABLE "luanti": cannot locate symbol "_ZTIN4Json9ExceptionE" referenced by "/data/data/com.termux/files/usr/bin/luanti"...
i guess i had to file an issue on GitHub?

Did you find this page helpful?