Error: Failed installing dependency
TengSimon opened this issue · 7 comments
Last login: Tue Sep 4 17:54:02 on ttys000
renlipings-MacBook-Pro:~ tengxiangchao$ brew install kong
==> Installing kong from kong/kong
==> Downloading https://bintray.com/kong/kong-community-edition-src/download_file?file_path=dists%2Fkong-community-edition-0.14.1.tar.gz
Already downloaded: /Users/tengxiangchao/Library/Caches/Homebrew/downloads/0f5aeaed3403fe3ed44c24847b3544d03507462e27bc3cd6e3ec2e56473ebf21--kong-community-edition-0.14.1.tar.gz
==> Patching
patching file kong/templates/kong_defaults.lua
==> luarocks-5.1 --tree=/usr/local/Cellar/kong/0.14.1 make CRYPTO_DIR=/usr/local/opt/openssl OPENSSL_DIR=/usr/local/opt/openssl
Last 15 lines from /Users/tengxiangchao/Library/Logs/Homebrew/kong/01.openssl:
luasec 0.6-2 is now installed in /usr/local/Cellar/kong/0.14.1 (license: MIT)
kong 0.14.1-0 depends on penlight == 1.5.4 (not installed)
Installing https://luarocks.org/penlight-1.5.4-1.rockspec
Missing dependencies for penlight 1.5.4-1:
luafilesystem (not installed)
penlight 1.5.4-1 depends on luafilesystem (not installed)
Installing https://luarocks.org/luafilesystem-1.7.0-2.src.rock
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/opt/openresty/luajit/include/luajit-2.1 -c src/lfs.c -o src/lfs.o
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -bundle -undefined dynamic_lookup -all_load -o lfs.so -L/usr/local/opt/openresty/luajit/lib src/lfs.o
luafilesystem 1.7.0-2 is now installed in /usr/local/Cellar/kong/0.14.1 (license: MIT/X11)
Error: Failed installing dependency: https://luarocks.org/penlight-1.5.4-1.rockspec - Error fetching file: Failed downloading http://stevedonovan.github.io/files/penlight-1.5.4.zip - penlight-1.5.4.zip
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/kong/homebrew-kong/issues
These open issues may also help:
brew install --devel kong #79
0.14 no kong.conf #78
Where is kong.conf file? #53
error: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version while accessing https://github.com/kong/homebrew-kong/info/refs?service=git-upload-pack #68
kong 0.13.1-0 depends on luasec 0.6 not installed #73
Cannot install Kong via homebrew. [Failed installing dependency: https://luarocks.org/luasec-0.6-1.rockspec - Failed cloning git repository.] #50
renlipings-MacBook-Pro:~ tengxiangchao$
Is this error consistent? seems like a download hick-up ?
I'm not a kong user, but came across this thread when investigating about a very similar problem I had in a lua application on some servers.
In my case, the reason was the version of luasec packaged in Ubuntu 16.04 was too old. GitHub has dropped support old versions of TLS (< TLSv1.2) and a lot of deprecated ciphers. Apparently, old luasec versions don't deal well with that. I don't know for sure on Apple stuff, but in my case upgrading luasec did the trick (luarocks install luasec
). It's very likely that your problem is related to luasec/openssl. Hope this helps.
Error: Failed installing dependency: https://luarocks.org/penlight-1.5.4-1.rockspec - Error fetching file: Failed downloading http://stevedonovan.github.io/files/penlight-1.5.4.zip - penlight-1.5.4.zip
It's interesting that the error happened downloading an http
URL, not https
. Many of the related issues linked in the end of this ticket are related to users in networks that block downloading from Github URLs. Are you able to access this URL from the same machine where you tried to run kong on? http://stevedonovan.github.io/files/penlight-1.5.4.zip
Hi, I am closing this issue because of lack of activity. If you think it is still unresolved, please reopen with the requested information. Thanks!