英文:
Updated GAE to 1.8.6 - what do I do now
问题
我的GAE安装告诉我应该升级。
我下载了压缩包,将旧文件夹go_appengine重命名为go_appengine-1.8.5,然后从压缩包中提取了一个全新的go_appengine文件夹。
现在当我尝试在LiteIde下构建时,出现以下错误信息:
go build runtime: windows/386必须使用make.bash进行引导
当我尝试运行我的应用程序时,出现以下错误:
Failed to build Go application: C:\Go\GAE\go_appengine\google\src\...go找不到导入:"math/big"
我确定有一个简单的命令需要执行来构建所有内容,但我似乎找不到它的位置。
英文:
My installation of GAE told me I should upgrade.
I downloaded the zip - renamed the old folder called go_appengine to go_appengine-1.8.5 and extracted a brand new go_appengine folder from the zip.
Now when I try to build under LiteIde I get the massage:
go build runtime: windows/386 must be bootstrapped using make.bash
and when I try to run my app I get:
Failed to build Go application: C:\Go\GAE\go_appengine\google\src\...go can't find import: "math/big"
I am sure there is a simple command I need to execute to build everything but I cannot seem to find it anywhere.
答案1
得分: 7
我们意识到了这个问题(基本上是我们的失误),正在构建一个新的适用于Windows的Go SDK。
更新:如果你使用的是Windows系统,你需要将1.8.6的SDK替换为1.8.6.1版本。它已经在下载站点上发布了。
英文:
We are aware of the problem (our goof, basically), and are in the process of building a new Go SDK for Windows.
Updated: If you're on Windows, you'll want to replace the 1.8.6 SDK with 1.8.6.1. It's up on the download site now.
答案2
得分: 2
遇到了类似于第二个错误信息的问题,但是当我运行dev_appserver.py时,它找不到"fmt"或任何标准包。
在某个时候,我尝试将goroot\pkg\windows_amd64_appengine目录重命名为goroot\pkg\windows_amd64,就像在1.8.3中所称呼的那样。
然后,不知何故,它奇迹般地起作用了,尽管dev_appserver仍然将旧的目录名传递给go-app-builder。
英文:
Had a problem similar to the second error message, except it couldn't find "fmt" or any of the standard packages when I ran dev_appserver.py
At some point I tried renaming the goroot\pkg\windows_amd64_appengine dir to goroot\pkg\windows_amd64 like it was called in the 1.8.3
and boom! it worked for some reason, though dev_appserver keeps passing the old dir name to go-app-builder
答案3
得分: 0
如果你找不到一个包,通常是因为它不在你的本地系统上,或者不在Go期望找到的位置上。看起来你正在使用Windows,我对Windows作为开发环境并不完全熟悉,但是你的文件结构看起来可能会让编译器感到困惑。
我可以告诉你,Go编译器会在目录GOROOT/src/pkg/math/big
中寻找math/big
包,其中GOROOT是Go运行的位置。所以如果找不到这个包,那么src/pkg/math/big
不是Go运行目录的子目录,这意味着你要么将Go运行在了错误的位置,要么目录出了问题。
再次强调,我对Windows不是很熟悉,但是在Linux终端中,你可以使用$echo $GOROOT
或$which go
来找出GOROOT的位置。可能有一些类似的方法可以找到编译器所在的目录,然后你可以尝试从那里追踪目录。
英文:
If you can't find a package it is usually because it is not on your local system or not where Go expects to find it. It looks like you're using windows, and I'm not completely familiar with windows as a development environment, but your file structure looks like it may be confusing the compiler.
I can say that the Go compiler will be looking for <code>math/big</code> in the directory<code>GOROOT/src/pkg/math/big</code> where GOROOT is the location that Go runs from. So if it can't find the package, then <code>src/pkg/math/big</code> is not a subdirectory of the directory that Go is running from, which means you either have Go running from a bad location or the directories got messed up somehow.
Again, I'm not very familiar with windows, but from a linux terminal you can figure out where the GOROOT is using <code>$echo $GOROOT</code> or <code>$which go</code>. There may be some equivalent way of finding the directory your compiler is running from and then you can try and trace down the directory from there.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论