# Kong on MacOS - Openssl error

**URL:** <https://discuss.konghq.com/t/kong-on-macos-openssl-error/9896>\
**Category:** General\
**Tags:** kong-gateway\
**Created:** [March 3, 2022, 2:49pm UTC](https://discuss.konghq.com/t/kong-on-macos-openssl-error/9896 "2022-03-03T14:49:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mavster07](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/mavster07/32/3327_2.png) [@mavster07](https://discuss.konghq.com/u/mavster07)\
**Post date:** [March 3, 2022, 2:49pm UTC](https://discuss.konghq.com/t/kong-on-macos-openssl-error/9896/1 "2022-03-03T14:49:23Z")

</div>

Hi

I am new to Kong and trying to install it on MacOS.

I installed it fine but when I try to do the database migration as outlined here - [Kong Gateway Enterprise Version Support | Kong Docs](https://docs.konghq.com/gateway/2.8.x/install-and-run/macos/) - I get this error :

* * *

kong migrations bootstrap -c ./kong.conf

2022/03/03 14:46:45 [warn] ulimit is currently set to “256”. For better performance set it to at least “4096” using “ulimit -n”

Error: module ‘openssl.rand’ not found:

no field package.preload[‘openssl.rand’]

no file ‘./openssl/rand.lua’

no file ‘./openssl/rand/init.lua’

no file ‘/opt/homebrew/share/lua/5.1/openssl/rand.lua’

no file ‘/opt/homebrew/share/lua/5.1/openssl/rand/init.lua’

no file ‘./openssl/rand.lua’

no file ‘./openssl/rand/init.lua’

no file ‘/opt/homebrew/share/lua/5.1/openssl/rand.lua’

no file ‘/opt/homebrew/share/lua/5.1/openssl/rand/init.lua’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/site/lualib/openssl/rand.ljbc’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/site/lualib/openssl/rand/init.ljbc’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/lualib/openssl/rand.ljbc’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/lualib/openssl/rand/init.ljbc’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/site/lualib/openssl/rand.lua’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/site/lualib/openssl/rand/init.lua’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/lualib/openssl/rand.lua’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/lualib/openssl/rand/init.lua’

no file ‘./openssl/rand.lua’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/luajit/share/luajit-2.1.0-beta3/openssl/rand.lua’

no file ‘/usr/local/share/lua/5.1/openssl/rand.lua’

no file ‘/usr/local/share/lua/5.1/openssl/rand/init.lua’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/luajit/share/lua/5.1/openssl/rand.lua’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/luajit/share/lua/5.1/openssl/rand/init.lua’

no file ‘/opt/homebrew/lib/lua/5.1/openssl/rand.so’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/site/lualib/openssl/rand.so’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/lualib/openssl/rand.so’

no file ‘./openssl/rand.so’

no file ‘/usr/local/lib/lua/5.1/openssl/rand.so’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/luajit/lib/lua/5.1/openssl/rand.so’

no file ‘/usr/local/lib/lua/5.1/loadall.so’

no file ‘/opt/homebrew/lib/lua/5.1/openssl.so’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/site/lualib/openssl.so’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/lualib/openssl.so’

no file ‘./openssl.so’

no file ‘/usr/local/lib/lua/5.1/openssl.so’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/luajit/lib/lua/5.1/openssl.so’

## no file ‘/usr/local/lib/lua/5.1/loadall.so’

I can’t seem to figure out what this error is or how to resolve it. openssl is installed so unsure of how bes to troubleshoot. Any suggestions greatly appreciated.

---

<div class="post-metadata">

**Author:** ![halley-nikolak](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/halley-nikolak/32/3490_2.png) [@halley-nikolak](https://discuss.konghq.com/u/halley-nikolak)\
**Post date:** [July 1, 2022, 9:07pm UTC](https://discuss.konghq.com/t/kong-on-macos-openssl-error/9896/2 "2022-07-01T21:07:51Z")

</div>

Did you manage to fix this issue?
