Forums

Installation on Win 7 64-bit and/or .NET 4.0

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

Installation on Win 7 64-bit and/or .NET 4.0

Postby Charles » Wed May 02, 2012 2:20 am

I have made improvements to the installer regarding .NET 4.0. I have successfully tested the following:

-- Install on Windows 7 64-bit for .NET/CLR 2.0+
-- Install on Windows 7 64-bit for .NET/CLR 4.0+
-- Install on Windows 7 32-bit for .NET/CLR 2.0+
-- Install on Mac 10.6 for Mono 2.10.9 for CLR 2.0+
-- Install on Mac 10.6 for Mono 2.10.9 for CLR 4.0+

Note that when you install for .NET 4.0, the installer needs access to the "gacutil.exe" for .NET 4.0. This does not come with the ordinary run-time. You will need to install Visual Studio 2010+ or the .NET SDK 4.0+.

Although I did not test on Linux, Cobra will generally install there as well once you have Mono installed. Mono is used on the Mac, and both Linux and Mac are posix/unix family operating systems.

The code changes for the installer are here, if you're curious.

If you have any installation problems after this, report them here in the forums and we'll help you out.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: Installation on Win 7 64bit and/or .NET 4.0

Postby carlosqt » Wed May 02, 2012 2:48 am

excellent! good to see improvements.
I will try it out as soon as I have a chance and give you feedback.

Carlos
carlosqt
 
Posts: 17
Location: Belgium

Re: Installation on Win 7 64bit and/or .NET 4.0

Postby Charles » Wed May 02, 2012 12:10 pm

carlosqt wrote:excellent! good to see improvements.
I will try it out as soon as I have a chance and give you feedback.

Carlos

Thanks.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: Installation on Win 7 64-bit and/or .NET 4.0

Postby DelphiGuy » Thu May 03, 2012 11:46 am

charles:

i tried to install and found it confusing. first, i wasn't at all clear what a cobra "workspace" is, so i wasn't sure if i had one. of course, after i did the install, it became all to obvious that a "cobra workspace" is the "cobra-workspace" folder (Win 7), but that's after the fact. but still: even now i'm not clear as to the essential purpose of that folder. am i expected to develop using that folder as my current working folder?

also, the install resulted in the following errors, which i couldn't fathom:


Compiling installation program...

The Cobra Programming Language
Install From Workspace

Working...

==== Print Platform Description

WMI Op Sys Ver: Caption=Microsoft Windows 7 Home Premium

CSDVersion=Service Pack 1
Cmd Op Sys Ver: nil
Virtual Machine: .NET
CLR Version: v2.0.50727
Env Command Line: "InstallFromWorkspace"
Env OS Version: Microsoft Windows NT 6.1.7601 Service Pack 1
Env System Dir: C:\Windows\system32
Env Version: 2.0.50727.5448

==== Verify running as admin user

** ERROR: Please run this executable as an admin user.
Need help with the above error?
* Make sure you ran as a Windows Administrator.
* Install .NET or a Visual Studio product if you have not before.
* Review http://cobra-language.com/troubleshooting
* Ask at http://cobra-language.com/discuss
* Ask at http://cobra-language.com/irc


to be clear: i am the win admin on this laptop, and i have both .net and VS 2010 Express installed on this machine.

finally, you recommended tortoisesvn. that's a very good recommendation, because it's easy to find on the web and is free and because it will easily install tortoisesvn's command line svn tools, _IF_ you explicitly tell it to do so during tortoisesvn's install routine. unfortunately, the default setting is to install only tortoisesvn's GUI approach. GUI is not a good way for beginners to use svn for cobra, but only because the directions you've provided at http://cobra-language.com/trac/cobra/wiki/HowToInstallFromSource are for installing from the command line. from a beginner's (my) point of view, trying to understand what to with the GUI front end was hopeless, without specific guidance.

-paul
DelphiGuy
 
Posts: 116

Re: Installation on Win 7 64-bit and/or .NET 4.0

Postby Charles » Thu May 03, 2012 3:45 pm

Even though you are logged in as Administrator, your command prompt may not be running with full admin privs, or what some call "elevated". I believe this behavior is a security precaution in Windows. See the "Here's How" section at http://www.sevenforums.com/tutorials/783-elevated-command-prompt.html, try again, and let us know how it goes.

Once you get going, we can augment the error message and the wiki pages.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: Installation on Win 7 64-bit and/or .NET 4.0

Postby DelphiGuy » Thu May 03, 2012 9:14 pm

yes, i created an elevated command prompt and the installation behaved after that. thanks for the tip!
DelphiGuy
 
Posts: 116

Re: Installation on Win 7 64-bit and/or .NET 4.0

Postby torial » Fri May 04, 2012 7:33 am

I run my command prompt as Admin (but this was Win 2k8) and I get this message regardless of whether it is 4.0 or the earlier .Net that is targeted:

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
: Statements.cobra(277): error: Incompatible types. Cannot assign value of type List<of T> on the right to List<of Expr> on the left.
: Statements.cobra(328): error: Incompatible types. Cannot assign value of type List<of T> on the right to List<of Stmt> on the left.
: Statements.cobra(989): error: Incompatible types. Cannot assign value of type List<of T> on the right to List<of Expr> on the left.
: Statements.cobra(1070): error: Incompatible types. Cannot assign value of type List<of T> on the right to List<of Expr> on the left.
: Statements.cobra(1247): error: Incompatible types. Cannot assign value of type List<of T> on the right to List<of Expr> on the left.
: Statements.cobra(1681): error: Incompatible types. Cannot assign value of type List<of T> on the right to List<of Expr> on the left.
: Expr.cobra(643): error: Incompatible types. Cannot assign value of type List<of T> on the right to List<of Expr> on the left.
torial
 
Posts: 229
Location: IA

Re: Installation on Win 7 64-bit and/or .NET 4.0

Postby Charles » Fri May 04, 2012 10:45 am

This broke at some point and is high on my list to fix. But also not easy to fix.

I disabled the building of Cobra.Lang.Compiler.dll in the installer as a result, but I presume you enabled it to get this.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: Installation on Win 7 64-bit and/or .NET 4.0

Postby torial » Fri May 04, 2012 2:42 pm

I may have done that at some point to get a DLL 6 or 9 months ago, but I'm guessing getting latest from SVN would have stomped that... where should I look to see if I enabled it?
torial
 
Posts: 229
Location: IA

Re: Installation on Win 7 64-bit and/or .NET 4.0

Postby Charles » Fri May 04, 2012 3:50 pm

Something like "svn diff" should show if you have any mods. The file in question is Cobra\Source\InstallFromWorkspace.cobra.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Next

Return to Discussion

Who is online

Users browsing this forum: No registered users and 53 guests