Pythai on Mac OS
<p>Dose anyone have experience installing pythai on mac OS.
I get the following error when I try and install it with "pip install pythai"</p>

<pre><code>gcc -fno-strict-aliasing -I/Users/roopal/anaconda/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/roopal/anaconda/include/python2.7 -c pythai/libthai.c -o build/temp.macosx-10.6-x86_64-2.7/pythai/libthai.o
    pythai/libthai.c:3:10: fatal error: 'thai/thbrk.h' file not found
    #include &lt;thai/thbrk.h&gt;
             ^
    1 error generated.
    error: command 'gcc' failed with exit status 1
</code></pre>

<p>Not sure where to get and put the thai/thbrk.h file</p>

<p>If you Google <code>pythai</code>, the first result that comes up is the project's <a href="https://github.com/hermanschaaf/pythai" rel="nofollow">Github page</a>. If you click on it, then scroll down to the readme, it says in the Installation section</p>

<blockquote>
  <p>PyThai requires <code>libthai-dev</code> to work.</p>
</blockquote>

<p>and gives installation instructions for Debian/Ubuntu. Since you're on OS X, you'll need to build the source from scratch. Going back to Google, a search for <code>libthai</code> leads you to the <a href="https://linux.thai.net/projects/libthai/" rel="nofollow">LibThai website</a>. Reading that page, you'll find that the code is hosted on <a href="https://github.com/tlwg/libthai" rel="nofollow">Github</a>. Click on Releases and download the <code>tar.gz</code> of the latest version, 0.1.25. Unpack the archive, enter its base folder, and run <code>./autogen.sh</code>. If you get an error about an undefined macro, do what it says and rerun <code>autogen.sh</code> with the <code>m4_pattern_allow</code> argument. Once that completes, do the usual for building a package from source - run <code>./configure --help</code> to see if there are any particular options you want to set, then run <code>./configure</code> plus any desired flags, then run <code>make</code>, then run <code>sudo make install</code> and you should be all set.</p>

<p>Obviously, this requires you to have XCode and the XCode command-line tools installed and activated.</p>

python osx python-2.7 pip