dyld: Library not loaded: libperl.dylib Referenced from: perl5.18
<p>Im getting dyld library not found error in my xcode.</p>

<blockquote>
  <p>dyld: Library not loaded:
  /System/Library/Perl/5.18/darwin-thread-multi-2level/CORE/libperl.dylib
  Referenced from: /usr/bin/perl5.18</p>
</blockquote>

<p>So I tried to reinstall perl as following.But i got the following error message in my terminal when it is getting downloaded</p>

<blockquote>
  <p>Setting Perl 5.16.0 to default bash: line 94: perlbrew: command not
  found</p>
</blockquote>

<p>So i tried to install perlbrew as follows,</p>

<pre><code>\curl -L https://install.perlbrew.pl | bash
</code></pre>

<p>But it is providing the same dyld error message as follows,</p>

<blockquote>
  <p>dyld: Library not loaded:
  /System/Library/Perl/5.18/darwin-thread-multi-2level/CORE/libperl.dylib
  Referenced from: /usr/bin/perl5.18</p>
</blockquote>

<p>How can i be able to sort this out?</p>