我正在跟踪去文档,并尝试运行hello.go。 我在Windows 7上,使用msi安装程序安装go 1.1.2。 我有文件“C: Go pkg tool windows_386 8g.exe”(请参阅下面的dir输出),但是当我执行'go.exe运行hello.go'时,我得到的文件不存在错误。
请帮忙。 谢谢。
C:>go.exe run hello.go go build command-line-arguments: exec: "C:\Go\pkg\tool\windows_386\8g.exe": file does not exist C:>go.exe version go version go1.1.2 windows/386 C:>go.exe run hello.go go build command-line-arguments: exec: "C:\Go\pkg\tool\windows_386\8g.exe": file does not exist C:>dir C:\Go\pkg\tool\windows_386\8g.exe The specified path is invalid. C:>dir C:Gopkgtool\windows_386\8g.exe Volume in drive C is Local disk Volume Serial Number is C07E-54F5 Directory of C:Gopkgtoolwindows_386 08/13/2013 07:04 AM 1,831,416 8g.exe 1 File(s) 1,416 bytes 0 Dir(s) 11,407,892,480 bytes free
如何在Windows控制台中正确输出string?
如何以编程方式计算win 7中窗口边框的边框厚度
在Windowed Kiosk模式下运行Chrome
在Windows上为IntelliJ Idea指定JRE
窗口 – 如何获得golang的屏幕分辨率
2个未解决的外部问题
在代码注释中指定Go构build标志“-H = windowsgui”
如何重置远程Windows服务器桌面机器上的密码?
我应该使用什么编程语言/编译器/库来创build一个在Windows XP上运行的应用程序,而无需其他软件?
在问题6224中 ,如果在运行go.exe之前将环境变量PATHEXT设置为只有一个扩展名, go.exe发生此错误。
set PATHEXT=.BAT
go run hello.go
什么是预期的输出?
没有错误和你好世界程序运行
你看到了什么呢?
go build command-line-arguments: exec: "c:\Go\pkg\tool\windows_386\8g.exe": file does not exist
8g Windows 7 64bit go版本go1.1.2 windows / 386
在我的电脑上(W7 64位),我有:
set pa PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
一切都运行良好。
使用“ c:Gopkgtoolwindows_3868g.exe ” c:Gopkgtoolwindows_3868g.exe并且让PATHEXT被设置为恶意的方式,让LookPath失败
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。