0
votes

When I run nginx on my MacOS.

➜  nginx nginx

dyld: Library not loaded: /usr/local/opt/[email protected]/lib/libssl.1.1.dylib Referenced from: /usr/local/bin/nginx Reason: image not found [1] 10170 abort nginx

2
It depends on OpenSSL, like the error tells you. You can brew install openssl to fix this.rustyMagnet

2 Answers

1
votes

I had that problem for a bit, but when I ran

brew uninstall nginx

and then

brew install nginx

It reinstalled properly and I was able to run it without getting that error.

0
votes

Please start by installing HomeBrew http://brew.sh/. It is a package manager for MacOS that allows to easily install various Unix applications. MacOS will prompt you to first install Xcode Command Line Tools (unless you have them already). After installation, the following command, if necessary, will tell you how to complete the installation:

brew doctor
//Then updates all packages with:
brew update
brew upgrade
//Then Install Nginx
brew install nginx
// Then automatically launch Nginx at startup with:
sudo cp /usr/local/opt/nginx/*.plist /Library/LaunchDaemons
sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.nginx.plist

Good luck!