Linux安装Beego:交叉编译和GOBIN错误/profile注释掉这个变量,执行source/etc/profile即可生效。安装完成后,需要将bee的路径添加到环境变量中。解决办法是注释掉GOBIN选项,在/etc/profile文件中设置GOPATH/bin(永久)exportPATH=$GOPATH/bin:$PATH重新生成配置源/etc/profile可能存在的问题:添加后执行bee不成功。查看bee的路径:echo$GOPATH//获取GOPATH的路径我在/data/www/go:find/home/chun/go-name"bee"//在目录output中找到包含bee的文件夹:/data/www/go/bin/linux_386/bee/data/www/go/src/github.com/beego/bee/data/www/go/pkg/linux_386/github.com/beego/bee你可以看到我这里bee在linux系统的安装路径和正常的不一样。在linux_386下,只需要在环境变量中添加/home/chun/go/bin/linux_386就可以了。exportPATH=$GOPATH/bin/linux_386:$PATHsource/etc/profile删除GOPATH下的GOBIN设置(暂时)cd$GOPATHunsetGOBIN作者:Ziheng|haley来源:http://www.cnblogs.com/mylly/Communication通讯:QQ群866437035
