dovs36921 2015-04-24 09:03
浏览 92

无法安装Revel(无法识别的导入路径)

I'm a beginner in Go and I would like to use the Revel web framework. I installed: Git; Mercurial and even: Bazaar and CVS.

I checked my environment variables. I set environment variable GOPATH to D:\Go and added D:\Go\bin to PATH.But I still get these errors when I go get The Revel Framework (go get github.com/revel/revel)

**

  • package golang.org/x/net/websocket: unrecognized import path "golang.org/x/net/websocket"

  • package gopkg.in/fsnotify.v1: unrecognized import path "gopkg.in/fsnotify.v1"**

  • 写回答

1条回答 默认 最新

  • douchendan0040 2015-07-13 19:09
    关注

    For instalation of GO into your home folder you need this environment variables:

    .
    ├── bin
    ├── go (GO)
    └── src
        ├── revel.project
        │   ├── app
        │   │   ├── controllers
        │   │   ├── models
        │   │   ├── routes
        │   │   ├── tmp
        │   │   └── views
        │   │       ├── admin
        │   │       ├── App
        │   │       ├── errors
        │   │       └── users
        │   ├── conf
        │   ├── messages
        │   ├── public
        │   │   ├── css
        │   │   │   └── administrator
        │   │   ├── img
        │   │   ├── js
        │   │   └── uploads
        │   │       └── 1
        │   ├── resources
        │   ├── scripts
        │   ├── test-results
        │   └── tests
        ├── code.google.com
        ├── github.com
        │   ├── revel
        │   │   ├── cmd
        │   │   ├── modules
        │   │   └── revel
    

    run this in your prompt path or modify if your folders are differents.

      export GOARCH=amd64
      export GOPATH=~/go
      export GOBIN=~/go/go/bin
      export GOROOT=~/go/go
      export PATH=$PATH:$GOPATH/go/bin
      export GOTOOLDIR=~/go/go/pkg/tool/linux_amd64
      export CC="gcc"
      export GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
      export CXX=g++
      export CGO_ENABLED=1
    

    Where ~ is the name of you personal folder in the system (Bash Gnu Linux)

    评论

报告相同问题?

悬赏问题

  • ¥15 用windows做服务的同志有吗
  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 一直显示正在等待HID—ISP