Top Level Namespace
Defined Under Namespace
Modules: OpenCC
Instance Method Summary collapse
Instance Method Details
#missing!(lib) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'ext/opencc/extconf.rb', line 3 def missing!(lib) if RUBY_PLATFORM =~ /mingw|mswin/ abort "-----\n#{lib} is missing. Check your installation of OpenCC, and try again.\n-----" elsif RUBY_PLATFORM =~ /darwin/ abort "-----\n#{lib} is missing. You may need to 'brew install opencc', and try again.\n-----" else abort "-----\n#{lib} is missing. You may need to 'sudo apt-get install libopencc-dev', 'sudo pacman -Sy opencc' or 'sudo yum install opencc-devel' and try again.\n-----" end end |