英文:
Cgo + windows + mingw-w64 : "sorry, unimplemented: 64-bit mode not compiled in"
问题
在尝试在Windows 8.1上使用以下命令安装suapapa/go_sass时:
go get github.com/suapapa/go_sass
我遇到了以下错误:
> cc1.exe: sorry, unimplemented: 64-bit mode not compiled in
根据stackoverflow和其他论坛的说法,这个问题是因为我没有正确的mingw版本(如果我理解错了,请纠正我)。我的go版本是1.3.3 windows/amd64。
所以我尝试安装了一个我在http://tdm-gcc.tdragon.net/上找到的64位版本的gcc。
我仍然无法安装我想要的包。有什么帮助吗?我对C编译器一点都不熟悉。
英文:
While trying to install suapapa/go_sass on windows 8.1 with the command :
go get github.com/suapapa/go_sass
I came across this error :
> cc1.exe: sorry, unimplemented: 64-bit mode not compiled in
According to stackoverflow and other forums, this problem comes from the fact that i don't have the right mingw version (correct me if i'm wrong). My go version is 1.3.3 windows/amd64.
So i tried installing a 64 bit version of gcc that i found on http://tdm-gcc.tdragon.net/.
I still can't seem to go get the package i want to install. Any help ? I'm not familiar with c compilers at all.
答案1
得分: 1
在安装mingw-64的过程中,你应该像我一样选择架构"i686"。
如果是这样,架构"x86_64"应该可以工作。
英文:
In the installation process of mingw-64,you should select Architecture "i686" as I did.
If so, the architecture "x86_64" should work.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论