Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

luasec and openssl? #14

Closed
kevinSuttle opened this issue Nov 19, 2015 · 2 comments
Closed

luasec and openssl? #14

kevinSuttle opened this issue Nov 19, 2015 · 2 comments

Comments

@kevinSuttle
Copy link

❯ brew install kong
==> Installing kong from mashape/homebrew-kong
==> Downloading https://github.com/Mashape/kong/archive/0.5.3.tar.gz
Already downloaded: /Library/Caches/Homebrew/kong-0.5.3.tar.gz
==> make install
Last 15 lines from /Users/kevinSuttle/Library/Logs/Homebrew/kong/01.make:
lrexlib-pcre ~> 2.7.2-1
luacrypto >= 0.3.2-1
yaml ~> 1.1.1-1
lbase64 ~> 20120820-1
stringy ~> 0.4-1
lua-cassandra ~> 0.3.6-0
lua-resty-iputils ~> 0.2.0-1
luasocket ~> 2.0.2-5
lapis ~> 1.1.0-1

Warning: falling back to curl - install luasec to get native HTTPS support

Error: Failed installing dependency: https://luarocks.org/luasec-0.5-2.src.rock - Could not find expected file openssl/ssl.h, or openssl/ssl.h for OPENSSL -- you may have to install OPENSSL in your system and/or pass OPENSSL_DIR or OPENSSL_INCDIR to the luarocks command. Example: luarocks install luasec OPENSSL_DIR=/usr/local
Using https://luarocks.org/luasec-0.5-2.src.rock... switching to 'build' mode
make: *** [install] Error 1

READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
  https://github.com/mashape/homebrew-kong/issues

 ❯ brew install luasec
Error: No available formula with the name "luasec"
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
Error: No formulae found in taps.

❯ luarocks install luasec OPENSSL_DIR=/usr/bin/openssl
Warning: falling back to curl - install luasec to get native HTTPS support
Installing https://luarocks.org/luasec-0.5-2.src.rock...
Using https://luarocks.org/luasec-0.5-2.src.rock... switching to 'build' mode

Error: Could not find expected file openssl/ssl.h, or openssl/ssl.h for OPENSSL -- you may have to install OPENSSL in your system and/or pass OPENSSL_DIR or OPENSSL_INCDIR to the luarocks command. Example: luarocks install luasec OPENSSL_DIR=/usr/local
@kevinSuttle kevinSuttle changed the title Lua/openssl? luasec and openssl? Nov 19, 2015
@thibaultcha
Copy link
Member

You need to make sure the openssl Formula installed by Homebrew is under /usr/local. For this, you will probably need to brew install openssl and brew link --force openssl.

@kevinSuttle
Copy link
Author

Ah didn't do the link. I always forget about that. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants