Created
May 20, 2019 10:06
-
-
Save dotemacs/985440fd3b2ce6ac20d6a61bb0a3402f to your computer and use it in GitHub Desktop.
CLR install issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew install nuget | |
$ mkdir ~/dev/clr | |
$ nuget install Clojure -Version 1.9.0 | |
$ mkdir all | |
$ cp -r lib/net40 all | |
$ cp -r tools/net40/* all/net40 | |
$ cp -r lib/net35 all/ | |
$ cp -r tools/net35/* all/net35/ | |
And then: | |
$ touch mklinks.sh | |
To mklinks.sh I added: | |
#!/usr/bin/env bash | |
ln -s Clojure.dll clojure.clr.io.clj.dll | |
ln -s Clojure.dll clojure.core.clj.dll | |
ln -s Clojure.dll clojure.core_clr.clj.dll | |
ln -s Clojure.dll clojure.core_deftype.clj.dll | |
ln -s Clojure.dll clojure.core_print.clj.dll | |
ln -s Clojure.dll clojure.core.protocols.clj.dll | |
ln -s Clojure.dll clojure.core_proxy.clj.dll | |
ln -s Clojure.dll clojure.genclass.clj.dll | |
ln -s Clojure.dll clojure.gvec.clj.dll | |
ln -s Clojure.dll clojure.instant.clj.dll | |
ln -s Clojure.dll clojure.main.clj.dll | |
ln -s Clojure.dll clojure.pprint.cl_format.clj.dll | |
ln -s Clojure.dll clojure.pprint.clj.dll | |
ln -s Clojure.dll clojure.pprint.column_writer.clj.dll | |
ln -s Clojure.dll clojure.pprint.dispatch.clj.dll | |
ln -s Clojure.dll clojure.pprint.pprint_base.clj.dll | |
ln -s Clojure.dll clojure.pprint.pretty_writer.clj.dll | |
ln -s Clojure.dll clojure.pprint.print_table.clj.dll | |
ln -s Clojure.dll clojure.pprint.utilities.clj.dll | |
ln -s Clojure.dll clojure.repl.clj.dll | |
ln -s Clojure.dll clojure.set.clj.dll | |
ln -s Clojure.dll clojure.stacktrace.clj.dll | |
ln -s Clojure.dll clojure.string.clj.dll | |
ln -s Clojure.dll clojure.template.clj.dll | |
ln -s Clojure.dll clojure.test.clj.dll | |
ln -s Clojure.dll clojure.uuid.clj.dll | |
ln -s Clojure.dll clojure.walk.clj.dll | |
ln -s Clojure.dll clojure.spec.cljc.dll | |
ln -s Clojure.dll clojure.spec.gen.cljc.dll | |
ln -s Clojure.dll clojure.core.specs.cljc.dll | |
ln -s Clojure.dll clojure.core.server.cljc.dll | |
ln -s Clojure.dll clojure.edn.cljc.dll | |
Then ran: | |
$ cd all/net40 | |
$ bash ../../mklinks.sh | |
$ cd ../../all/net35 | |
$ bash ../../mklinks.sh | |
$ cd ../.. | |
and then: | |
$ mono all/net40/Clojure.Main.exe | |
Which bombs out with: | |
``` | |
Unhandled Exception: | |
System.TypeInitializationException: The type initializer for 'Clojure.CljMain' threw an exception. ---> System.TypeInitializationException: The type initializer for 'clojure.lang.RT' threw an exception. ---> System.IO.FileNotFoundException: Invalid Image | |
at (wrapper managed-to-native) System.Reflection.Assembly.LoadFrom(string,bool) | |
at System.Reflection.Assembly.LoadFrom (System.String assemblyFile) [0x00000] in <fcbcc99210424b63b9d0b88bd11ce160>:0 | |
at clojure.lang.RT.DoInit () [0x0000a] in <814990e2d98549148927c9ed5c97f15e>:0 | |
at clojure.lang.RT..cctor () [0x01f89] in <814990e2d98549148927c9ed5c97f15e>:0 | |
--- End of inner exception stack trace --- | |
at Clojure.CljMain..cctor () [0x0000f] in <f5aa122c398747a0aa41452d219b2965>:0 | |
--- End of inner exception stack trace --- | |
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'Clojure.CljMain' threw an exception. ---> System.TypeInitializationException: The type initializer for 'clojure.lang.RT' threw an exception. ---> System.IO.FileNotFoundException: Invalid Image | |
at (wrapper managed-to-native) System.Reflection.Assembly.LoadFrom(string,bool) | |
at System.Reflection.Assembly.LoadFrom (System.String assemblyFile) [0x00000] in <fcbcc99210424b63b9d0b88bd11ce160>:0 | |
at clojure.lang.RT.DoInit () [0x0000a] in <814990e2d98549148927c9ed5c97f15e>:0 | |
at clojure.lang.RT..cctor () [0x01f89] in <814990e2d98549148927c9ed5c97f15e>:0 | |
--- End of inner exception stack trace --- | |
at Clojure.CljMain..cctor () [0x0000f] in <f5aa122c398747a0aa41452d219b2965>:0 | |
--- End of inner exception stack trace --- | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment