sh: ninja: command not found

Questions and problems about using polymake go here.

Moderator: Moderators

tran.mai.ngoc
Posts: 3
Joined: 04 Nov 2017, 16:59

sh: ninja: command not found

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

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

blorenz
Developer
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.

Best,
Benjamin

NoelGi
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?

tran.mai.ngoc
Posts: 3
Joined: 04 Nov 2017, 16:59

Re: sh: ninja: command not found

Postby tran.mai.ngoc » 06 Jul 2018, 11:59

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


Return to “Helpdesk”

cron