2016-04-03 35 views
6

OS Xにtreetaggerをインストールしたいと思います。これを簡単にするため、Homebrewで可能かどうか検索しました。だから私はウェブを見て、これを見つけたformulaからpepijnkokkeユーザー。次に、以下のように私はtreetaggerをインストールしようとした:エラー:homebrewでインストール中にinreplaceが失敗しましたか?

[email protected]:~$ brew install /Users/user/Downloads/tree-tagger.rb 

はしかし、私は次のエラーを得た:

==> Installing dependencies for tree-tagger: openssl, wget 
==> Installing tree-tagger dependency: openssl 
==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2g.el_capitan. 
######################################################################## 100.0% 
==> Pouring openssl-1.0.2g.el_capitan.bottle.tar.gz 
==> Caveats 
A CA file has been bootstrapped using certificates from the system 
keychain. To add additional certificates, place .pem files in 
    /usr/local/etc/openssl/certs 

and run 
    /usr/local/opt/openssl/bin/c_rehash 

This formula is keg-only, which means it was not symlinked into /usr/local. 

Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries 

Generally there are no consequences of this for you. If you build your 
own software and it requires this formula, you'll need to add to your 
build variables: 

    LDFLAGS: -L/usr/local/opt/openssl/lib 
    CPPFLAGS: -I/usr/local/opt/openssl/include 

==> Summary 
    /usr/local/Cellar/openssl/1.0.2g: 1,678 files, 12.0M 
==> Installing tree-tagger dependency: wget 
==> Downloading https://homebrew.bintray.com/bottles/wget-1.17.1.el_capitan.bot 
######################################################################## 100.0% 
==> Pouring wget-1.17.1.el_capitan.bottle.1.tar.gz 
    /usr/local/Cellar/wget/1.17.1: 9 files, 1.5M 
==> Installing tree-tagger 
==> Downloading http://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/data/tr 
######################################################################## 100.0% 
Warning: SHA1 support is deprecated and will be removed in a future version. 
Please switch this formula to SHA256. 
Error: SHA1 mismatch 
Expected: d823320b718eb41a5b4fef449a711307caaf0d88 
Actual: 340e09912101acd996642eeed8f623315fa6d672 
Archive: /Library/Caches/Homebrew/tree-tagger-3.2.tar.gz 
To retry an incomplete download, remove the file above. 

は、私は上記のファイルおよびSHAライン(SHA1「d823320b718eb41a5b4fef449a711307caaf0d88」)を削除して、再度試してみました。それでも、私はこれを持っています:

[email protected]:~$ brew install /Users/user/Downloads/tree-tagger.rb==> Downloading http://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/data/tr 
######################################################################## 100.0% 
==> wget http://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/data/tagger-sc 
==> wget http://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/data/english-p 
==> wget http://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/data/english-c 
==> wget http://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/data/install-t 
==> chmod +x ./install-tagger.sh 
==> ./install-tagger.sh 
Error: inreplace failed 
cmd/chunker-read-lemma.perl: 
    expected replacement of /BIN=.*/ with "BIN=/usr/local/Cellar/tree-tagger/3.2/libexec/bin" 
    expected replacement of /CMD=.*/ with "CMD=/usr/local/Cellar/tree-tagger/3.2/libexec/cmd" 
    expected replacement of /LIB=.*/ with "LIB=/usr/local/Cellar/tree-tagger/3.2/libexec/lib" 

どのようにhomebrewとtreetaggerをインストールするのですか?

答えて

4

opensslを自作でインストールしましたか?

brew install openssl 
brew link openssl --force 
brew install treehugger 
4

ドキュメントに記載されている通常の方法でインストールするのはなぜですか。

TreeTaggerをインストールするには、以下の手順が必要です(Windows版の場合は以下を参照)。リンクを右クリックしてファイルをダウンロードします。次に、 "ファイルを保存する"を選択します。すべてのファイルは同じディレクトリに保存する必要があります。

  • お使いのシステム(PC-Linuxでは、マックOS-X (インテルCPU)、PC-Linuxの(古いカーネルのバージョン))のためのタグ付けパッケージをダウンロードします。

    タグスクリプトを同じディレクトリにダウンロードします。

    インストールスクリプトinstall-tagger.shをダウンロードします。

    処理する言語のパラメータファイルをダウンロードします。

    ターミナルウィンドウを開き、ファイルをダウンロードした ディレクトリにインストールスクリプトを実行します。

    のsh install-tagger.sh

    テストを行い、例えばをエコー「こんにちは! | CMD /木鬼 - 英語

あなたはへの完全なパスを指定する必要がないようにPATH変数に〜/自作-compling/CMDと〜/自作-compling/binを追加したい場合がありますタグ付けスクリプトを実行します。

これは私のためにうまくいった!

関連する問題