Nemerle 0.9.3 on MacOSX 10.5.2

5 views
Skip to first unread message

shad0an

unread,
Apr 15, 2008, 5:43:20 PM4/15/08
to Nemerle Forum
I was able to successfully configure and install nemerle, but I seem
unable to actually use it. I keep getting these errors when running
ncc (aka mono ncc.exe):

--------------------------------------------------------------------
Cerberus:~ visage$ ncc

** (/usr/local/bin/ncc.exe:6192): WARNING **: The following assembly
referenced from /usr/local/bin/ncc.exe could not be loaded:
Assembly: Nemerle (assemblyref_index=3)
Version: 0.9.3.0
Public Key: e080a9c724e2bfcd
System error: Unknown error: 0


** (/usr/local/bin/ncc.exe:6192): WARNING **: Could not load file or
assembly 'Nemerle, Version=0.9.3.0, Culture=neutral,
PublicKeyToken=e080a9c724e2bfcd' or one of its dependencies.

Unhandled Exception: System.IO.FileNotFoundException: Could not load
file or assembly 'Nemerle, Version=0.9.3.0, Culture=neutral,
PublicKeyToken=e080a9c724e2bfcd' or one of its dependencies.
File name: 'Nemerle, Version=0.9.3.0, Culture=neutral,
PublicKeyToken=e080a9c724e2bfcd'
--------------------------------------------------------------------


Any ideas? Thanks!
Corey

Ķaмȋļ ๏ Şκaļşκȋ

unread,
Apr 16, 2008, 3:41:07 AM4/16/08
to nemer...@googlegroups.com
Are you sure the Nemerle.dll is properly installed into the GAC?

--
Kamil Skalski
http://nazgul.omega.pl

shad0an

unread,
Apr 16, 2008, 8:30:11 AM4/16/08
to Nemerle Forum
Ah, I think I see what was going wrong. While the install script
claimed it installed the Nemerle dlls, it seems that it wasn't in the
right place. I installed the dlls by hand (gacutil -i) and everything
works well. The script was installing to /usr/lib/mono/gac when it
should have been installing to /Library/Frameworks/Mono.framework/
Versions/1.9/lib/mono/gac.

All is well! Thanks for the tip!

shad0an

unread,
Apr 16, 2008, 8:32:14 AM4/16/08
to Nemerle Forum
Except...

Now I get this error:

Cerberus:Nemerle visage$ ncc -o viterbi.exe viterbi.n
error: cannot find assembly `Nemerle'

It would seem I have to install other things as well. Perhaps I can
define the install location in the config file?

shad0an

unread,
Apr 16, 2008, 12:11:15 PM4/16/08
to Nemerle Forum
And just to complete the thought -- after much exploration, I found
the solution here: http://nemerle.org/mailman/pipermail/bugs/2006-November/002855.html


In short, these are the steps that must be taken to get Nemerle to
work correctly with Mono installed as the framework on MacOSX:

./configure --prefix=/Library/Frameworks/Mono.framework/Home \
--libdir=/Library/Frameworks/Mono.framework/
Libraries;

make
make install

ln -s /Library/Frameworks/Mono.framework/Commands/ncc /usr/bin/ncc;
ln -s /Library/Frameworks/Mono.framework/Commands/ncc.exe
/usr/bin/ncc.exe;
ln -s /Library/Frameworks/Mono.framework/Commands/nemish /usr/bin/
nemish;
ln -s /Library/Frameworks/Mono.framework/Commands/nemish.exe
/usr/bin/nemish.exe;
Reply all
Reply to author
Forward
0 new messages