How to make CRFSuite work on Mac OS X?

I am trying to get CRFSuite to work on Mac OS X. The author only has binaries for Windows and Linux, but it provides the source package. I assume I need to somehow compile the source code into a Mac OS X executable? That I have no idea how to do this. I did some research on this, but nothing really works. I also asked the graduate student at the university exactly this problem - he told me that it will be very difficult.

I managed to get CRFSuite to work with WineSkin, but this is a workaround, not a real solution.

Ideally, when I open a terminal, I should be able to call CRFSuite simply by typing β€œcrfsuite” rather than jumping through hoops to send commands to the WineSkin Windows terminal.

+5
source share
1 answer

Easy with homebrew .

First go to your homebrew site - here and install it. It is very simple.

Then follow these steps in the terminal:

 brew tap brewsci/science brew install crfsuite 

If something goes wrong, use

 brew doctor 

Once you're done, it seems to me that sometimes it is recommended to update brew and installed packages:

 brew update brew upgrade 

There are many gret, modern packages that are so easy to install with homebrew , I use the following:

 ant basex cmake coreutils exiftool exiv2 faac ffmpeg fontconfig freetype gawk gd gettext ghostscript gnu-sed gnuplot ilmbase imagemagick jasper jbig2dec jhead jp2a jpeg lame leptonica libpng libtiff libtool lighttpd little-cms2 lua lynx mad netpbm opencv openexr openssl p7zip parallel pcre perlmagick pipebench pipemeter pkg-config platypus proftpd pv qt readline redis sleuthkit sox sqlite sqlitebrowser tag tesseract tree wget x264 xvid xz 

If you want to find additional packages just use:

 brew search <search string> 
+7
source

Source: https://habr.com/ru/post/1202559/


All Articles