title: Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib On Mac
body: <p>Let me make it clear first,  none of available answers worked for me! </p>
  
  <p>I am using Laravel Valet. And iTerm2 with .zsh. When i run php artisan it gives me following error: </p>
  
  <p><a href="https://i.stack.imgur.com/os6uq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/os6uq.png" alt="enter image description here"></a> </p>
  
  <p>I tried following fixes but nothing worked form me. </p>
  
  <pre><code> brew remove openssl
   brew install openssl
  </code></pre>
  
  <p>This did not fixed my problem. Then i tried to do another one </p>
  
  <pre><code>echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' &gt;&gt; ~/.bash_profile
  source ~/.bash_profile
  </code></pre>
  
  <p>By doing this it works for that opened tab only but on left side it shows something like this: </p>
  
  <p><code>\h:\W \u$</code></p>
  
  <p><a href="https://i.stack.imgur.com/APmJA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/APmJA.png" alt="enter image description here"></a></p>
  
  <p>So so tried to do this: </p>
  
  <pre><code>echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' &gt;&gt; ~/.zshrc
      source ~/.zshrc
  </code></pre>
  
  <p>I thought it would work but it also did not work. :)</p>
  
  <p>I have tried restarting iTerm also.</p>
  
  <p>I also checked Library is exist in my <code>usr/local/opt/openssl</code></p>
  
  <p>So what would be the reason for this? </p>
  
  <p>Thank you in advance!</p>