简体   繁体   English

如何让CRFSuite在Mac OS X上运行?

[英]How to get CRFSuite to 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 does provide the source package. 我试图让CRFSuite在Mac OS X上运行。作者只有Windows和Linux的二进制文件,但确实提供了源包。 I am guessing I need to somehow compile the source into a Mac OS X executable? 我猜我需要以某种方式将源代码编译成Mac OS X可执行文件? This I have no idea how to do. 这个我不知道该怎么做。 I did some research on this, but nothing actually works. 我对此做了一些研究,但实际上没有任何效果。 I also asked a PhD student at the university specifically this problem--he told me it would be very difficult. 我还问过大学的博士生特别是这个问题 - 他告诉我这将是非常困难的。

I have been able to get CRFSuite to work by using WineSkin, but that's a workaround and not a real solution. 我已经能够通过使用WineSkin让CRFSuite工作,但这是一种解决方法而不是真正的解决方案。

Ideally when I open the Terminal I should be able to invoke CRFSuite by just typing "crfsuite" and not jumping through hoops to pipe commands to a WineSkin Windows Terminal. 理想情况下,当我打开终端时,我应该能够通过输入“crfsuite”来调用CRFSuite,而不是跳过箍到管道命令到WineSkin Windows终端。

It's easy with homebrew . homebrew很容易。

First go to homebrew website - here and install it. 首先去homebrew网站 - 在这里安装它。 It is very simple. 这很简单。

Then do the following in Terminal: 然后在终端中执行以下操作:

brew tap brewsci/science
brew install crfsuite

If anything goes wrong, use 如果出现任何问题,请使用

brew doctor

Once you are up and running, I find it a good idea to occasionally do the following to upgrade brew itself and the installed packages: 一旦启动并运行,我发现偶尔执行以下操作以升级brew本身和已安装的软件包是个好主意:

brew update
brew upgrade

There are lots of gret, up-to-date packages that are so easy to install using homebrew , I use the following: 有很多gret,最新的软件包很容易使用homebrew安装,我使用以下内容:

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 look for additional packages, just use: 如果您想查找其他包,只需使用:

brew search <search string>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM