doc: removed lua-dir if failed to install by default.

This commit is contained in:
Yuansheng 2019-08-23 11:07:27 +08:00 committed by YuanSheng Wang
parent e0a59dfaba
commit c4cb7cd250
2 changed files with 6 additions and 1 deletions

View File

@ -102,9 +102,12 @@ We recommend that you use [luarocks](https://luarocks.org/) to install APISIX, a
#### Install APISIX
```shell
sudo luarocks install --lua-dir=/usr/local/openresty/luajit apisix
luarocks install --lua-dir=/usr/local/openresty/luajit apisix
```
If you got some error like `unknow flag --lua-dir`, this is because `luarocks` version is too low.
We need to remove option `lua-dir` and run again: `luarocks install apisix`.
If all goes well, you will see the message like this:
> apisix is now built and installed in /usr (license: Apache License 2.0)

View File

@ -100,6 +100,8 @@ APISIX 是基于 [openresty](http://openresty.org/) 之上构建的, 配置数
sudo luarocks install --lua-dir=/usr/local/openresty/luajit apisix
```
如果你得到 `unknow flag --lua-dir` 这类错误,这是因为 `luarocks` 版本过低。这时我们需要移除 `lua-dir` 选项重新运行:`luarocks install apisix`。
如果一切顺利,你会在最后看到这样的信息:
> apisix is now built and installed in /usr (license: Apache License 2.0)