Page 1 of 1

Installing on OS X Snow Leopard 10.6.8 fails?

PostPosted: Wed Jul 06, 2011 3:03 am
by amfischer
I'm trying to install Cobra under 10.6.8, and I get the following error when running sudo bin/install-from-sources (I get the same if I add the which dmcs thing at the end):

Code: Select all
==== Build Cobra.Lang.Compiler library

run: cobra.exe -c -t:lib -namespace:Cobra.Lang.Compiler -files:files-to-compile.text -debug -turbo -out:Cobra.Lang.Compiler.dll -key-file:Cobra.Lang/Cobra.Lang.snk cobra.cobra
   : BackEndJvm/JavaGenerator.cobra(754): error: Incompatible types. Cannot assign value of type String on the right to Type on the left.
   : BackEndJvm/JavaGenerator.cobra(756): error: Incompatible types. Cannot assign value of type String on the right to Type on the left.
   : BackEndJvm/JavaGenerator.cobra(759): error: Cannot mix types String and Type for arithmetic.
   : BackEndJvm/JavaGenerator.cobra(762): error: Cannot mix types String and Type for arithmetic.
   : BackEndJvm/JavaGenerator.cobra(764): error: Cannot return Type because "_computeJavaRef.get" is declared to return a String.
   : BackEndJvm/JavaGenerator.cobra(2373): error: Incompatible types. Cannot assign value of type String on the right to Type on the left.
   : BackEndJvm/JavaGenerator.cobra(2374): error: Cannot apply PLUS to Type and String. Try finding a method that performs this function.
   : Compilation failed - 7 errors, 0 warnings

** ERROR: Exit code from running Source Cobra: 1
Need help with the above error?
 * Make sure you ran with sudo or as root.
 * Mono 2.6.x or Mono 2.10.x or higher are recommended.
 * Review http://cobra-language.com/troubleshooting
 * Ask at http://cobra-language.com/discuss
 * Ask at http://cobra-language.com/irc


I've tried to find info elsewhere in the forum, but nothing jumped out. Oh—the sources I used to compile are whatever came off SVN today. :)

Re: Installing on OS X Snow Leopard 10.6.8 fails?

PostPosted: Wed Jul 06, 2011 10:04 am
by Charles
I've confirmed the problem. I'll post again when it's fixed.

Re: Installing on OS X Snow Leopard 10.6.8 fails?

PostPosted: Wed Jul 06, 2011 5:12 pm
by Charles
Fixed.

Re: Installing on OS X Snow Leopard 10.6.8 fails?

PostPosted: Wed Jul 06, 2011 10:53 pm
by amfischer
And now it says "Success!" :)

Thanks for the incredibly fast turnaround—I'm impressed, and now eager to get into learning this language!

Re: Installing on OS X Snow Leopard 10.6.8 fails?

PostPosted: Thu Jul 07, 2011 8:15 am
by Charles
You're welcome. Let us know how it goes. Try out the new @help directive.