2016-04-03 8 views
6

मैं ओएस एक्स में treetagger इंस्टॉल करना चाहता हूं। इसे आसान बनाने के लिए मैंने होमब्री के साथ यह संभव है कि यह खोजना चाहें। तो मैं वेब पर देखता हूं और पेपिनकोके उपयोगकर्ता से यह formula पाया। इसके बाद, मैं treetagger स्थापित करने के लिए इस प्रकार की कोशिश की:त्रुटि: होमब्रू के साथ इंस्टॉल करते समय इनरप्लेस विफल रहा?

[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. 

मैं ऊपर फ़ाइल और शा लाइन (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" 

होमब्री के साथ treetagger को कैसे स्थापित करें के बारे में कोई विचार?

उत्तर

4

क्या आपने होमब्री के माध्यम से openssl इंस्टॉल करने का प्रयास किया है?

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

आप दस्तावेज़ में उल्लिखित सामान्य तरीके को क्यों स्थापित नहीं करते हैं?

ट्रीटागर स्थापित करने के लिए निम्न चरणों की आवश्यकता है (विंडोज संस्करण के लिए नीचे देखें)। लिंक पर राइट-क्लिक करके फ़ाइलों को डाउनलोड करें। फिर "फ़ाइल को इस रूप में सहेजें" का चयन करें। सभी फाइलें एक ही निर्देशिका में संग्रहीत की जानी चाहिए।

  • अपने सिस्टम के लिए टैगर पैकेज डाउनलोड (पीसी-लिनक्स, मैक ओएस एक्स (इंटेल-सीपीयू), पीसी लिनक्स (पुराने कर्नेल के लिए संस्करण))।

    टैगिंग स्क्रिप्ट को उसी निर्देशिका में डाउनलोड करें।

    स्थापना स्क्रिप्ट install-tagger.sh डाउनलोड करें।

    उन भाषाओं के लिए पैरामीटर फ़ाइलें डाउनलोड करें जिन्हें आप संसाधित करना चाहते हैं।

    खुला एक टर्मिनल विंडो और निर्देशिका है जहाँ आप फ़ाइलें डाउनलोड कर में स्थापना स्क्रिप्ट चलाने:

    श install-tagger.sh

    एक परीक्षण बनाओ, उदा गूंज 'हैलो दुनिया!' | cmd/पेड़ टैगर-अंग्रेज़ी

आप पथ चर में जोड़ने के लिए ~/homebrew-compling/cmd और ~/homebrew-compling/bin ताकि आप का पूर्ण पथ निर्दिष्ट करने की आवश्यकता नहीं करना चाहते हो सकता है टैगिंग स्क्रिप्ट चलाएं।

यह मेरे लिए ठीक काम करता है!

संबंधित मुद्दे