opennars / OpenNARS-for-Applications

General reasoning component for applications based on NARS theory.
https://cis.temple.edu/~pwang/NARS-Intro.html
MIT License
91 stars 40 forks source link

Can not find NAR shell #266

Closed zelin8 closed 2 months ago

zelin8 commented 6 months ago

I followed the instructions and try to run NAR shell but it says:

./NAR : The term './NAR' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

I 've ran the build.sh. Is there something I missed?

ARCJ137442 commented 2 months ago

Maybe this happened in PowerShell on Windows?

Windows executables have a .exe extension, and ONA requires cygwin on Windows to compile.

If you have compiled successfully while running build.sh, you need to run ./NAR.exe shell in PowerShell instead of ./NAR shell; If any compilation errors occur while build.sh is running, also consider configuring cygwin for successful compilation.

patham9 commented 2 months ago

Yes on windows it has to be ./NAR.exe shell instead not ./NAR shell. Cygwin will work, WSL too. Visual Studio has own build tools but its C99 compliance should be good enough in the meanwhile to compile&run the system but not using the provided build.sh. I recommend Clang and GCC however.