installing polymake 4.3 on Mac OS X 11.1, Big Sur

Discussions on installation issues go here.
lisa
Posts: 3
Joined: 14 Jan 2021, 15:00

installing polymake 4.3 on Mac OS X 11.1, Big Sur

Postby lisa » 14 Jan 2021, 15:09

Hey there,

I'm trying to install polymake on my Intel-MacBook with the latest update Big Sur.
Installing Polymake via the terminal works just fine but when I try to launch polymake there is an error message saying this

Code: Select all

polymake: ERROR: "/usr/local/Cellar/polymake/4.3/share/polymake/apps/common/perllib/PmSvg.pm", line 21: Can't locate SVG.pm in @INC (you may need to install the SVG module) (@INC contains: Polymake::Core::Application=ARRAY(0x7f90b76f9f18) /usr/local/Cellar/polymake/4.3/share/polymake/perllib /usr/local/Cellar/polymake/4.3/lib/polymake/perlx/5.32.0/darwin-thread-multi-2level /usr/local/Cellar/polymake/4.3/lib/polymake/perlx/5.32.0 /usr/local/Cellar/polymake/4.3/lib/polymake/perlx /usr/local/Cellar/polymake/4.3/libexec/perl5/lib/perl5/darwin-thread-multi-2level /usr/local/Cellar/polymake/4.3/libexec/perl5/lib/perl5 /usr/local/Cellar/perl/5.32.0/lib/perl5/site_perl/5.32.0/darwin-thread-multi-2level /usr/local/Cellar/perl/5.32.0/lib/perl5/site_perl/5.32.0 /usr/local/Cellar/perl/5.32.0/lib/perl5/5.32.0/darwin-thread-multi-2level /usr/local/Cellar/perl/5.32.0/lib/perl5/5.32.0 /usr/local/lib/perl5/site_perl/5.32.0/darwin-thread-multi-2level /usr/local/lib/perl5/site_perl/5.32.0 Polymake::Core::Application=ARRAY(0x7f90b76cab78))
I tried to install the SVG module but just get the answer that it is already installed on my Mac.

Does someone have an Idea what I can do to solve this problem?

Thanks for helping!
Lisa

paffenholz
Developer
Posts: 213
Joined: 24 Dec 2010, 13:47

Re: installing polymake 4.3 on Mac OS X 11.1, Big Sur

Postby paffenholz » 14 Jan 2021, 17:37

This looks like a polymake installed via Homebrew? So you issued

Code: Select all

brew install polymake
at most two days ago (I only updated the formula on tuesday to hopefully also work for Big Sur, seems it still does not).

By design of homebrew all perl modules used by polymake are bundled together with the polymake binary, and it has no access to modules installed elswere. But SVG should be among the modules that come with polymake (those are all installed into

Code: Select all

/usr/local/Cellar/polymake/4.3/libexec/perl5/lib/perl5
).

If it is missing there is no way you can fix this locally. Installing it locally in your home or system wide will not help, as those directories are not searched. This is a design choice of homebrew that I cannot override.

I will later check the bottle whether it really misses SVG and then write more.

Andreas

lisa
Posts: 3
Joined: 14 Jan 2021, 15:00

Re: installing polymake 4.3 on Mac OS X 11.1, Big Sur

Postby lisa » 14 Jan 2021, 18:13

I actually just tried it two minutes ago again with uninstall and deleting any downloaded files then getting the most recent ones via Homebrew, but I get the same error message. I also checked wether the folder you mentioned has a module SVG in it and couldn't find one.

Thanks for helping so fast,
Lisa

paffenholz
Developer
Posts: 213
Joined: 24 Dec 2010, 13:47

Re: installing polymake 4.3 on Mac OS X 11.1, Big Sur

Postby paffenholz » 14 Jan 2021, 18:17

SVG is indeed missing in the latest bottle, and I also remember now that I had a reason to remove the module some time ago (it did not compile properly). However, SVG is not a necessary prerequesite for polymake, so it should work without.

I assume you still have an old local polymake configuration around (in $HOME/.polymake, observe the dot!), from a time when SVG was present and polymake configured it for its own use?

polymake should start if you move this directory so that polymake can create a new one:

Code: Select all

mv -i $HOME/.polymake $HOME/.polymake-old
or similar. With the next start, polymake will recreate the configuration, and unless you have included third-party extensions in polymake or written your own, you won't notice much difference. You loose the command history, and of course the ability to export to SVG.

I will check if polymake by now also compiles with SVG, but that may take some time.

lisa
Posts: 3
Joined: 14 Jan 2021, 15:00

Re: installing polymake 4.3 on Mac OS X 11.1, Big Sur

Postby lisa » 14 Jan 2021, 18:37

The command you suggested worked. Now everything works just fine.

Thanks for the quick help!
Lisa

User avatar
gawrilow
Main Author
Posts: 425
Joined: 25 Dec 2010, 17:40

Re: installing polymake 4.3 on Mac OS X 11.1, Big Sur

Postby gawrilow » 14 Jan 2021, 20:40

...

Code: Select all

mv -i $HOME/.polymake $HOME/.polymake-old
or similar. With the next start, polymake will recreate the configuration, and unless you have included third-party extensions in polymake or written your own, you won't notice much difference. You loose the command history, and of course the ability to export to SVG.
There is a more gentle way to fix configuration issues without loosing all other custom settings:

Code: Select all

polymake --reconfigure
should automatically disable the SVG interface if it stopped working.


Return to “Installing polymake”