2013-03-21 5 views
15

स्थापित करने में त्रुटि मैं GITLAB स्थापित करने का प्रयास कर रहा हूं। मैं क्रियान्वित इस त्रुटि "sudo gem install charlock_holmes --version '0.6.9'" (खंड Install Gems)charlock_holmes इंस्टॉल करने में त्रुटि: GITLAB

GEOGIT:/geogit/Administrative_Tools # sudo gem install charlock_holmes --version '0.6.9' 
Building native extensions. This could take a while... 
ERROR: Error installing charlock_holmes: 
     ERROR: Failed to build gem native extension. 

     /usr/bin/ruby1.9 extconf.rb 
checking for main() in -licui18n... no 
which: no brew in (/usr/sbin:/bin:/usr/bin:/sbin) 
checking for main() in -licui18n... no 

*************************************************************************************** 
*********** icu required (brew install icu4c or apt-get install libicu-dev) *********** 
*************************************************************************************** 
*** extconf.rb failed *** 
Could not create Makefile due to some reason, probably lack of 
necessary libraries and/or headers. Check the mkmf.log file for more 
details. You may need configuration options. 

Provided configuration options: 
     --with-opt-dir 
     --without-opt-dir 
     --with-opt-include 
     --without-opt-include=${opt-dir}/include 
     --with-opt-lib 
     --without-opt-lib=${opt-dir}/ 
     --with-make-prog 
     --without-make-prog 
     --srcdir=. 
     --curdir 
     --ruby=/usr/bin/ruby1.9 
     --with-icu-dir 
     --without-icu-dir 
     --with-icu-include 
     --without-icu-include=${icu-dir}/include 
     --with-icu-lib 
     --without-icu-lib=${icu-dir}/ 
     --with-icui18nlib 
     --without-icui18nlib 
     --with-icui18nlib 
     --without-icui18nlib 

Gem files will remain installed in /usr/lib64/ruby/gems/1.9.1/gems/charlock_holmes-0.6.9 for inspection. 
Results logged to /usr/lib64/ruby/gems/1.9.1/gems/charlock_holmes-0.6.9/ext/charlock_holmes/gem_make.out 

किसी मिलता है, मुझे उन लॉग और त्रुटि डिबग मदद कर सकते हैं?

उत्तर

30

यह लग रहा है issue 1952 तरह

It was actually weirdness with the way my ubuntu VPS is commissioned. Mine did not come with a C compiler or libdev obviously.

The problem fix I found was to install libdev first, then the GCC
Then apt-get install libicu-dev .

अद्यतन 2015: अतिरिक्त टिप्पणियाँ में शामिल हैं:

yum install libicu-devel worked for me

You just need to make sure " patch " is installed (yum install patch) then it should work

+0

** बहुत धन्यवाद !! ** – Proverbio

+1

@Proverbio आपको जवाब स्वीकार करना चाहिए क्योंकि यह स्पष्ट रूप से सही है (मेरी समस्या भी हल हो गई है)। – sadmicrowave

+0

रिकॉर्ड के लिए, आर्क लिनक्स में स्थापित करने के लिए पैकेज को केवल 'आईसीयू' कहा जाता है। – fonini

0

मुझे केंद्र 5.4 सर्वर पर एक ही गलती मिली है, यम रिपोजिटरी में केवल आईसीयू संस्करण 3.6 है, इसलिए मुझे मैन्युअल रूप से लाइब्रेरी आईसीयू 4.2 खोजना और इंस्टॉल करना है जो समस्या को हल करता है। मामले में किसी को किसी और को पता है कि यह कैसे करना है की जरूरत है, मैं इस लिंक http://source.icu-project.org/repos/icu/icu/tags/release-4-2-1/readme.html#HowToBuildUNIX

1

मैं इस्तेमाल किया "यम स्थापित libicu-devel" और फिर मैं charlock_holmes

3

स्थापित कर सकता है MacOS निम्नलिखित निर्भरता स्थापित करने के लिए जाँच करने के लिए सलाह देते हैं:

brew install icu4c 
0

मैं एक ही समस्या की तरह का था:

charlock_holmes-0.7.3/mkmf.log 
have_library: checking for main() in -licui18n... -------------------- no 

मैं मैं तय: जब मैं charlock_holmes मणि स्थापित करने के लिए कोशिश कर रहा था, मैं इस त्रुटि थी @VonC के पहले कमांड को चलाकर:

sudo apt-get install libicu-dev 

आशा है कि मैंने किसी की मदद की है!

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