Page 1 of 1

Another installation on Mac OS 10.7 issue

Posted: 07 Jul 2012, 14:00
by gordonfroyle
Having successfully installed the bundle on my iMac, I decided to install on my MacBook Pro...

I repeated exactly the same steps ... but this time failure

Code: Select all

Gordon-Royles-MacBook-Pro:polymake.app gordon$ /Applications/polymake.app/Contents/MacOS/polymake.start Can't load shared module /Applications/polymake.app/Contents/MacOS/../Resources//polymake/lib/polymake/lib/core.bundle: dlopen(/Applications/polymake.app/Contents/MacOS/../Resources//polymake/lib/polymake/lib/core.bundle, 9): Library not loaded: /Users/paffenholz/polybundle-2.12/src/polymake.app/Contents/Resources/lib/libgmp.10.dylib Referenced from: /Applications/polymake.app/Contents/MacOS/../Resources//lib/libmpfr.4.dylib Reason: image not found at /Applications/polymake.app/Contents/MacOS/../Resources//polymake/share/polymake/perllib/Polymake/Core/CPlusPlus.pm line 3021.
Both machines are running fully updated 10.7.4 and they seem *almost* identical software wise... here's the output from "uname -a" on the two machines

Darwin verticordia.maths.uwa.edu.au 11.4.0 Darwin Kernel Version 11.4.0: Mon Apr 9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64

Darwin Gordon-Royles-MacBook-Pro.local 11.4.0 Darwin Kernel Version 11.4.0: Mon Apr 9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64 i386

(I'm not sure why the MacBook Pro has the i386 AND the x86_64.....)

Re: Another installation on Mac OS 10.7 issue

Posted: 07 Jul 2012, 14:43
by paffenholz
The problem is the absolute path for libgmp compiled into libmpfr, this directory can't exist on your Macbook. It is surprising that it worked on the other. I will replace the path with a relative one in the next days and upload a new version. Sorry.

Re: Another installation on Mac OS 10.7 issue

Posted: 09 Jul 2012, 00:03
by paffenholz
I have uploaded a corrected version of the bundle (now version 4) that hopefully fixes all path issues. Thanks for reporting this error!

Re: Another installation on Mac OS 10.7 issue

Posted: 09 Jul 2012, 07:03
by gordonfroyle
I have uploaded a corrected version of the bundle (now version 4) that hopefully fixes all path issues. Thanks for reporting this error!
Thanks... this now works on the laptop.

It is really miraculous that -v3 worked on the desktop - could it perhaps have picked up a GMP install somewhere in the system, and not tried to use the incorrect path?

Anyway I'll delete it and install -v4 on both machines.

Re: Another installation on Mac OS 10.7 issue

Posted: 09 Jul 2012, 09:58
by paffenholz
It is really miraculous that -v3 worked on the desktop - could it perhaps have picked up a GMP install somewhere in the system, and not tried to use the incorrect path?
It would not look just somewhere. Maybe you have defined an LD_LIBRARY_PATH variable on one machine, or a DYLD_FALLBACK_PATH pointing to some other gmp? If you did not use the exact same commands it might also be that on the first computer it just did not need to load the lib yet, so it did not notice the wrong path.

Re: Another installation on Mac OS 10.7 issue

Posted: 09 Jul 2012, 10:17
by gordonfroyle
Ah, yes

Code: Select all

echo $LD_LIBRARY_PATH :/Library/gurobi450/mac64/lib