'Spike simulator ISA error - command not found

having the spike file and the pk file in a folder, when I run this command in terminal:

spike -m128 pk archive.x

the following error appears:

zsh: command not found: spike

I don't understand why it doesn't work on my machine but it works on others. I already have riscv64 installed.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source