Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Generally, <strong>this problem is caused by being unable to find the right libiconv</strong>. Here is how I solve my problem:</p> <p>Check output of <code>otool -L /usr/lib/libiconv.2.dylib</code>. I got the following output:</p> <pre><code>/usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0) </code></pre> <p>Then I install libiconv with Homebrew, <code>brew install libiconv</code>, and show where it was installed using <code>brew list libiconv</code>. I got the following output:</p> <pre><code>/usr/local/Cellar/libiconv/1.14/bin/iconv /usr/local/Cellar/libiconv/1.14/include/ (3 files) /usr/local/Cellar/libiconv/1.14/lib/libcharset.1.dylib /usr/local/Cellar/libiconv/1.14/lib/libiconv.2.dylib /usr/local/Cellar/libiconv/1.14/lib/ (3 other files) /usr/local/Cellar/libiconv/1.14/share/doc/ (6 files) /usr/local/Cellar/libiconv/1.14/share/man/ (6 files) </code></pre> <p>the libiconv is installed in <code>/usr/local/Cellar/libiconv/1.14/lib/libiconv.2.dylib</code>. Then I check verion of newly installed libiconv, <code>otool -L /usr/local/Cellar/libiconv/1.14/lib/libiconv.2.dylib</code>, and I got the following output:</p> <pre><code>/usr/local/Cellar/libiconv/1.14/lib/libiconv.2.dylib: /usr/local/opt/libiconv/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.1.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0) </code></pre> <p>The version is correct, and we need to make this library available for <a href="http://en.wikipedia.org/wiki/Ruby_%28programming_language%29" rel="nofollow">Ruby</a>. Creating a symbol link is a quick solution:</p> <pre><code>sudo ln -s /usr/local/opt/libiconv/lib/libiconv.2.dylib /opt/local/lib/libiconv.2.dylib </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload