Created
March 25, 2016 21:33
-
-
Save ptantiku/0c73e00012941505c614 to your computer and use it in GitHub Desktop.
install libthai4r
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| sudo apt-get update && sudo apt-get upgrade -y | |
| sudo apt-get install -y libdatrie-dev libthai-dev | |
| cd /tmp | |
| mkdir libthai4r && curl -L https://github.com/ptantiku/libthai4r/tarball/master | tar xz --strip 1 -C libthai4r | |
| cd libthai4r | |
| ruby extconf.rb | |
| make | |
| sudo make install | |
| # optional: test thai word break | |
| # ruby test/thbrk.rb | |
| # expected: ภาษา|ไทย|เป็น|ภาษา|ที่|ง่าย|ที่สุด|ใน|โลก |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My output of ruby
extconf.rb:Output of
dpkg -l |grep libdatrie:Output of
dpkg -l |grep libthai: