Closed szabgab closed 8 years ago
Hi Gabor, I also have seen this before with other packages. In those cases it had something to do with the same packages being at other locations of your local library of installed modules. Find the locations of where MongoDB is installed and remove it. Then try it again... Which wil fail also due to some order or of compiling the depending modules in BSON.....
I have to wait for that answer on this problem...
I just tried again, this time on Rakudo Star 2015.07 and got different issues:
$ panda install MongoDB
==> Fetching MongoDB
==> Building MongoDB
Compiling lib/MongoDB/Wire.pm to mbc
===SORRY!===
When pre-compiling a module, its dependencies must be pre-compiled first.
Please pre-compile /Users/gabor/rakudo-star-2015.07/install/share/perl6/site/lib/BSON.pm
Use of Nil in numeric context in block at /Users/gabor/rakudo-star-2015.07/install/share/perl6/lib/Panda/Builder.pm:125
Compiling lib/MongoDB/Protocol.pm to mbc
===SORRY!===
When pre-compiling a module, its dependencies must be pre-compiled first.
Please pre-compile /Users/gabor/work/articles/.panda-work/1438855508_1/blib/lib/MongoDB/Wire.pm
Use of Nil in numeric context in block at /Users/gabor/rakudo-star-2015.07/install/share/perl6/lib/Panda/Builder.pm:125
Compiling lib/MongoDB/Cursor.pm to mbc
===SORRY!===
When pre-compiling a module, its dependencies must be pre-compiled first.
Please pre-compile /Users/gabor/work/articles/.panda-work/1438855508_1/blib/lib/MongoDB/Protocol.pm
Use of Nil in numeric context in block at /Users/gabor/rakudo-star-2015.07/install/share/perl6/lib/Panda/Builder.pm:125
Compiling lib/MongoDB/Collection.pm to mbc
===SORRY!===
...
Because of some repairs I've uploaded a new version of MongoDB just a minute ago. Here it installs fine as well as BSON. That it needs BSON module in the messages above was because I needed a direct way to get to the BSON lib for testing. Done that in a BEGIN block changing the INC search path. This will give the above message
I close this issue for now.
On OSX. See also https://github.com/MARTIMM/BSON/issues/8