Forums

Windows 8 Install Problem

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

Windows 8 Install Problem

Postby Captain Blood » Thu Nov 29, 2012 7:19 pm

Hi there,

I'm running Windows 8 Enterprise 64-bit, .NET 4

I have installed the Windows 8 SDK

but Iwhen I run the installer from an admin cli I still get the "gacutil cannot be found" error

Code: Select all
Compiling installation program...

The Cobra Programming Language
Install From Workspace

Working...

==== Print Platform Description

Platform:          Microsoft Windows NT 6.2.9200.0
WMI Op Sys Ver:    Caption=Microsoft Windows 8 Enterprise ; CSDVersion=
Cmd Op Sys Ver:    Microsoft Windows [Version 6.2.9200]
Virtual Machine:   .NET
CLR Version:       v2.0.50727
Env Command Line:  "InstallFromWorkspace"
Env Current Dir:   C:\Cobra\Source
Env OS Version:    Microsoft Windows NT 6.2.9200.0
Env System Dir:    C:\Windows\system32
Env Version:       2.0.50727.6400
.NET Dirs:         VJSharp ; v4.0.30319 ; v3.5 ; v3.0 ; v2.0.50727 ; v1.1.4322 ;
 v1.0.3705

==== Verify running as admin user

==== Verify installation directory

found dir: C:\Cobra

==== Verify running in workspace

Verified.

==== .NET 4.0/4.5 Prompt

Cobra can be installed for .NET 2.0/3.0/3.5 or .NET 4.0/4.5.
Do you want to install for .NET 4.0/4.5? [y]

==== Locate and test Cobra Snapshot compiler

run: Snapshot\cobra.exe -about
   : The Cobra Programming Language svn:2805 (post 0.9) / 2012-10-01
   : on .NET CLR v2.0.50727 on Microsoft Windows NT 6.2.9200.0
   : at C:\Cobra\Source\Snapshot\cobra.exe
   :
   : Copyright (C) 2003-2012 by Cobra Language LLC.  All Rights Reserved.
   :
   : On the web:  http://cobra-language.com/
   : Source:      http://cobra-language.com/source
   : Support:     http://cobra-language.com/support
   : License:     http://www.opensource.org/licenses/mit-license.php
   :
   : Usage:       cobra -h

==== Build new Cobra compiler

run: Snapshot\cobra.exe -compile -native-compiler:C:\Windows\Microsoft.NET\Frame
work\v4.0.30319\csc.exe -turbo -ert:yes cobra.cobra -files:files-to-compile.text

   : Compilation succeeded

==== Retrieve Cobra base version number

run: cobra.exe -version
   : Cobra 0.9.2 on .NET CLR v4.0.30319 on Microsoft Windows NT 6.2.9200.0

base version: 0.9.2

==== Build Cobra.Core library

run: cobra.exe -build-standard-library -debug -native-compiler:C:\Windows\Micros
oft.NET\Framework\v4.0.30319\csc.exe -turbo -out:Cobra.Core.dll -key-file:Cobra.
Core\Cobra.Core.snk  Cobra.Core\AssemblyAttrs.cobra
   : Compilation succeeded

==== Install Cobra.Core library to the GAC

** ERROR: Cannot locate a gacutil. Maybe you can try again using the "Visual Stu
dio Command Prompt" or ".NET SDK Command Prompt".
You may need to install the Windows SDK (https://www.google.com/search?q=windows
+sdk+.net+4)
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


Any help is solving this would be appreciated.

Thanks
Captain Blood
 
Posts: 2

Re: Windows 8 Install Problem

Postby Charles » Thu Nov 29, 2012 9:32 pm

It's a flaw in the installer when run on Win 7 64-bit and apparently Win 8 64-bit.

There are currently two fixes:

1) Enter this at a command prompt:
Code: Select all
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\ldr64 setwow

If that causes a problem with other programs for any reason, you can reverse it with:
Code: Select all
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\ldr64 set64


2) Check out a copy of the current code, which has the installer fix, and run the installer from there. See HowToInstallFromSource

I'll be cutting a new release in a couple days, but you don't have to wait for that. The installer program is the same either way (save for the fix), it's just a matter of how you got the code: 1) .zip or 2) subversion

Thanks for reporting your problem.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: Windows 8 Install Problem

Postby Captain Blood » Tue Dec 04, 2012 1:43 pm

Thank you Charles - I just checked out the latest code and that worked perfectly. Now to learn to use it!

I knew what would be needed but might I suggest you update the "Requirements" section of your How to Install From Source page to mention a Subversion client will also need to be installed? Probably seems blindingly obvious but for Joe Average user it might be a bit baffling when they type "svn" and get a command not found error.

Cheers
Captain Blood
 
Posts: 2

Re: Windows 8 Install Problem

Postby Charles » Tue Dec 04, 2012 7:15 pm

Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: Windows 8 Install Problem

Postby Charles » Tue Dec 04, 2012 7:16 pm

P.S. You can login to the wiki with the same username and password as the forums and edit any pages you like as you make discoveries. Contribs are always welcome.
Charles
 
Posts: 2515
Location: Los Angeles, CA


Return to Discussion

Who is online

Users browsing this forum: No registered users and 9 guests