我正在努力建立Kong的开发环境。我有Kong& cassandra安装在我的机器上,能够运行Kong Fine。当我尝试设置开发环境时,我遇到了问题。
首先,我按照提到的here尝试了源安装。
Issue1
在克隆Kong github repo的目录中执行sudo make install
给了我以下信息: -
Use --force to force removal (warning: this may break modules).
Failed removing.
Updating manifest for /usr/local/lib/luarocks/rocks
kong 0.4.2-1 is now built and installed in /usr/local (license: MIT)
执行sudo make dev
失败后出现以下错误: -
bin/kong config -c kong.yml -e TEST
lua: bin/kong:13: module 'kong.cli.utils' not found:
no field package.preload['kong.cli.utils']
no file '/usr/local/share/lua/5.2/kong/cli/utils.lua'
no file '/usr/local/share/lua/5.2/kong/cli/utils/init.lua'
no file '/usr/local/lib/lua/5.2/kong/cli/utils.lua'
no file '/usr/local/lib/lua/5.2/kong/cli/utils/init.lua'
no file './kong/cli/utils.lua'
no file '/usr/share/lua/5.2/kong/cli/utils.lua'
no file '/usr/share/lua/5.2/kong/cli/utils/init.lua'
no file './kong/cli/utils.lua'
no file '/usr/local/lib/lua/5.2/kong/cli/utils.so'
no file '/usr/lib/x86_64-linux-gnu/lua/5.2/kong/cli/utils.so'
no file '/usr/lib/lua/5.2/kong/cli/utils.so'
no file '/usr/local/lib/lua/5.2/loadall.so'
no file './kong/cli/utils.so'
no file '/usr/local/lib/lua/5.2/kong.so'
no file '/usr/lib/x86_64-linux-gnu/lua/5.2/kong.so'
no file '/usr/lib/lua/5.2/kong.so'
no file '/usr/local/lib/lua/5.2/loadall.so'
no file './kong.so'
stack traceback:
[C]: in function 'require'
bin/kong:13: in main chunk
[C]: in ?
make: *** [dev] Error 1
然后我尝试了也失败的流浪汉安装。
第2期
执行以下命令后: -
KONG_PATH=/home/j/code/github.com/kong vagrant up
我收到以下错误: -
There is a syntax error in the following Vagrantfile. The syntax error
message is reproduced below for convenience:
/home/j/code/github.com/kong-vagrant/Vagrantfile:17: syntax error, unexpected ':', expecting kEND
config.vm.network :forwarded_port, guest: 8000, host: 8000
^
/home/j/code/github.com/kong-vagrant/Vagrantfile:18: syntax error, unexpected ':', expecting kEND
config.vm.network :forwarded_port, guest: 8001, host: 8001
^
/home/j/code/github.com/kong-vagrant/Vagrantfile:20: syntax error, unexpected ':', expecting kEND
有人能让我知道出了什么问题吗?
环境
答案 0 :(得分:1)
Kong-vagrant
仅适用
随着Vagrant 1.7起。