title: Curl not working! dyld: Library not loaded: /usr/local/lib/libidn.11.dylib Reason: image not found
body: <p>I've looked at what may be a useful answer at <a href="https://stackoverflow.com/questions/9320298/library-not-loaded-error-libidn-11-dylib-when-trying-to-install-homebrew">Library not loaded error (libidn.11.dylib) when trying to install Homebrew</a>.</p>
  
  <p>However, I don't remember ever having purposely installed MacPorts.  Also, do not want to remove anything before I better understand what I would be doing.</p>
  
  <p>Can anyone help me fix this without potentially doing damage. </p>
  
  <p><a href="https://i.stack.imgur.com/3rzqO.png" rel="nofollow noreferrer">snapshot from my console</a></p>
  
  <p>Another snippet from console:</p>
  
  <pre><code>Jonathans-MacBook-Pro-2:bin JonMac$ pwd
  /usr/local/bin
  Jonathans-MacBook-Pro-2:bin JonMac$ brew install libidn
  /usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory
  /usr/local/bin/brew: line 26: /usr/local/Library/brew.rb: Undefined error: 0
  Jonathans-MacBook-Pro-2:bin JonMac$ 
  </code></pre>
  
  <p>Console log trying alvits' suggestions:</p>
  
  <pre><code>Last login: Mon Jul 18 18:10:39 on ttys002
  Jonathans-MacBook-Pro-2:~ JonMac$ otool -L /usr/local/bin/curl
  /usr/local/bin/curl:
      /usr/local/lib/libcurl.4.dylib (compatibility version 8.0.0, current version 8.0.0)
      /usr/local/lib/libidn.11.dylib (compatibility version 18.0.0, current version 18.11.0)
      /usr/local/lib/libintl.8.dylib (compatibility version 10.0.0, current version 10.2.0)
      /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
      /usr/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.1.0)
      /usr/local/ssl/lib/libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
      /usr/local/ssl/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
      /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP (compatibility version 1.0.0, current version 2.4.0)
      /usr/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.8)
  Jonathans-MacBook-Pro-2:~ JonMac$ cd /System/Library/Frameworks/Ruby.framework/Versions
  Jonathans-MacBook-Pro-2:Versions JonMac$ ls
  2.0 Current
  Jonathans-MacBook-Pro-2:Versions JonMac$ 
  </code></pre>