ERR: problem loading library in function import : "dlopen(/usr/local/lib/libgmp.dylib, 9): no suitable image found. Did find:\n\t/usr/local/lib/libgmp.dylib: mach-o, but wrong architecture"
The newer GMP lib version 5.0.1 is compiled for 64-bit? You can compile and install newLISP for 64-bit using the following on Mac OS-X from inside the newlisp-x.x.x directory:
make -f makefile_darwinLP64_utf8
sudo make install
Just made and tested GMP v. 5.0.1 on Mac OX X 10.6 and it passes all tests with newLISP compiled for 64-bit. Make sure you change the module file gmp.lsp, so it finds the correct library first. Change the first line in 'files' to /usr/local/lib/libgmp.dylib .
We live in in this transition time where most of the apps and libraries are still 32-bit and many others are already 64-bit. Mac OS X does 64-bit by default only since version 10.6 Snow Leopard. newLISP still compiles and ships as 32-bit version by default. At one point we will switch over to 64-bit as a default for the binary distributions, but I think it is still to early.