sh: ninja: command not found

Questions and problems about using polymake go here.

Moderator: Moderators

Posts: 2
Joined: 04 Nov 2017, 16:59

sh: ninja: command not found

Postby tran.mai.ngoc » 03 Apr 2018, 08:30

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!
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

Posts: 107
Joined: 10 Jan 2011, 17:21

Re: sh: ninja: command not found

Postby blorenz » 03 Apr 2018, 10:21

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.


Posts: 1
Joined: 24 Apr 2018, 12:07

Re: sh: ninja: command not found

Postby NoelGi » 01 May 2018, 15:16

Hi Benjamin, is there anything we should pay extra attention to when installing the packages manually?

Return to “Helpdesk”

Who is online

Users browsing this forum: No registered users and 1 guest