install/OSX/MacPortsgit-annexhttp://git-annex.branchable.com/install/OSX/MacPorts/git-annexikiwiki2014-08-15T19:19:49Zcomment 3http://git-annex.branchable.com/install/OSX/MacPorts/comment_3_47a77a03040fe628109bd54f82f9ad7a/Daniel2014-08-15T19:19:49Z2013-01-15T15:22:43Z
<p>Installing via the MacPorts method. I ran into this error.</p>
<pre><code>"_locale_charset", referenced from: _localeEncoding in libHSbase-4.5.1.0.a(PrelIOUtils.o)
ld: symbol(s) not found for architecture x86_64
</code></pre>
<p>I was able to solve and get git-annex to build buy providing the --extra-lib-dirs parameter</p>
<pre><code>cabal install c2hs git-annex --bindir=$HOME/bin --extra-lib-dirs=/usr/lib
</code></pre>
<p>Cheers, <a href="http://woz.io">Daniel Wozniak</a></p>
Macports _iconvhttp://git-annex.branchable.com/install/OSX/MacPorts/comment_21_987f1302f56107c926b6daf83e124654/Alejandro2014-08-15T19:19:49Z2013-07-18T14:23:02Z
<p>If you get an error like <code>undefined symbol _iconv for x86_64</code>, you're most likely using libiconv installed by macports. You can fix this by running</p>
<pre><code>cabal install c2hs git-annex --bindir=$HOME/bin --extra-lib-dirs=/usr/lib
</code></pre>