Skip to content

Latest commit

 

History

History
41 lines (23 loc) · 2.25 KB

install.md

File metadata and controls

41 lines (23 loc) · 2.25 KB

Install / 安装

The only requirement is the Go Programming Language, at least v1.7.

兼容 go1.7+

$ go get -u github.com/kataras/iris/iris

this will update the dependencies also.

这将同时更新依赖。

  • If you are connected to the internet through China, according to this, you might have problems installing Iris.
    Follow the below steps:

  • 如果你是在 中国 访问因特网,根据这个问题描述的你在安装 Iris 时可能会有遇到问题。

    按照以下步骤操作:

  1. https://github.com/northbright/Notes/blob/master/Golang/china/get-golang-packages-on-golang-org-in-china.md

  2. $ go get github.com/kataras/iris/iris without -u

$ go get github.com/kataras/iris/iris 不使用 -u

  • If you have any problems installing Iris, just delete the directory $GOPATH/src/github.com/kataras/iris , open your shell and run go get -u github.com/kataras/iris/iris .

    如果你在安装 Iris 过程中还有任何其它问题,只需要删除目录 $GOPATH/src/github.com/kataras/iris , 打开 shell 并执行 go get -u github.com/kataras/iris/iris .

NOTE: If you want a stable version for production, then install v4 instead, its examples, book, middleware and plugins are expecting an import path of:

注意: 如果你想要一个用于产品环境的稳定版本, 可以安装v4, 它的示例中间件插件都需要导入到路径中:

$ go get -u gopkg.in/kataras/iris.v4/iris