Page 1 of 1

sh: ninja: command not found

Posted: 03 Apr 2018, 08:30
by tran.mai.ngoc
Hi,
Polymake was working fine on my computer, and then I terminated it in a terminal with Ctrl+C.
Since then it does not start anymore. Error message:
polymake: WARNING: Recompiling in /home/ngoc/.polymake/wrappers.0/build/Opt, please be patient...
Compilation failed; see the error log below

sh: ninja: command not found

I have tried restarting the computer, reinstalling polymake, and the error still persists.

Could you please let me know what is the right thing to do.
Many thanks!
Ngoc
------------
Specs:
Arch Linux
4.15.12-1-ARCH #1 SMP PREEMPT Wed Mar 21 15:14:56 UTC 2018 x86_64 GNU/Linux

Polymake installed from pacman: polymake-3.2.r2-2

Re: sh: ninja: command not found

Posted: 03 Apr 2018, 10:21
by blorenz
Hello Ngoc,

please install the package 'ninja' manually.

The Arch Linux package for polymake seems to list ninja only as a build-dependency but not as a runtime-dependency. polymake needs ninja to recompile autogenerated wrappers which happens during the startup of polymake.

Best,
Benjamin

Re: sh: ninja: command not found

Posted: 01 May 2018, 15:16
by NoelGi
Hi Benjamin, is there anything we should pay extra attention to when installing the packages manually?

Re: sh: ninja: command not found

Posted: 06 Jul 2018, 11:59
by tran.mai.ngoc
Dear Benjamin,
Sorry, I forgot to respond. Yes this works, many thanks!
For others: ninja installation was simple, I had no issues.
pacman -Ss ninja
(I saw ninja 1.8 something)
install with
pacman -S ninja