2012-05-14 26 views
62

जब मैं इन सबके लिए आता हूं तो मेरी बहुत अक्षमता है इसलिए मेरी अक्षमता को क्षमा करें।मैं ब्रू डॉक्टर त्रुटियों को कैसे ठीक कर सकता हूं

जब मैं ब्रू डॉक्टर चलाता हूं, तो मुझे निम्न मिलता है। क्या कोई मदद कर सकता है?

[/usr/local]$ brew doctor 

Error: Setting DYLD_LIBRARY_PATH can break dynamic linking. 
You should probably unset it. 
Error: Some keg-only formula are linked into the Cellar. 
Linking a keg-only formula, such as gettext, into the cellar with 
brew link f will cause other formulae to detect them during the 
./configure step. This may cause problems when compiling those 
other formulae. 

Binaries provided by keg-only formulae may override system binaries 
with other strange results. 

You may wish to brew unlink these brews: 

libxml2 

Error: Unbrewed dylibs were found in /usr/local/lib. 
If you didn't put them there on purpose they could cause problems when 
building Homebrew formulae, and may need to be deleted. 

Unexpected dylibs: 
/usr/local/lib/libcharset.1.dylib /usr/local/lib/libfreetype.6.dylib /usr/local/lib/libjpeg.8.dylib /usr/local/lib/liblcms.1.0.19.dylib /usr/local/lib/libMagickCore.4.dylib /usr/local/lib/libMagickWand.4.dylib /usr/local/lib/libpng15.15.dylib /usr/local/lib/libtiff.3.dylib /usr/local/lib/libtiffxx.3.dylib /usr/local/lib/libwmf-0.2.7.1.0.dylib /usr/local/lib/libwmflite-0.2.7.0.1.dylib 
Error: Unbrewed .la files were found in /usr/local/lib. 
If you didn't put them there on purpose they could cause problems when 
building Homebrew formulae, and may need to be deleted. 

Unexpected .la files: 
/usr/local/lib/libcharset.la /usr/local/lib/libfreetype.la /usr/local/lib/libjpeg.la /usr/local/lib/liblcms.la /usr/local/lib/libMagickCore.la /usr/local/lib/libMagickWand.la /usr/local/lib/libpng15.la /usr/local/lib/libtiff.la /usr/local/lib/libtiffxx.la /usr/local/lib/libwmf.la /usr/local/lib/libwmflite.la 
Error: Unbrewed .pc files were found in /usr/local/lib/pkgconfig. 
If you didn't put them there on purpose they could cause problems when 
building Homebrew formulae, and may need to be deleted. 

Unexpected .pc files: 
/usr/local/lib/pkgconfig/freetype2.pc /usr/local/lib/pkgconfig/ImageMagick.pc /usr/local/lib/pkgconfig/lcms.pc /usr/local/lib/pkgconfig/libpng15.pc /usr/local/lib/pkgconfig/MagickCore.pc /usr/local/lib/pkgconfig/MagickWand.pc /usr/local/lib/pkgconfig/Wand.pc 
Error: Unbrewed static libraries were found in /usr/local/lib. 
If you didn't put them there on purpose they could cause problems when 
building Homebrew formulae, and may need to be deleted. 

Unexpected static libraries: 
/usr/local/lib/libcharset.a /usr/local/lib/libfreetype.a /usr/local/lib/libjpeg.a /usr/local/lib/liblcms.a /usr/local/lib/libpng15.a /usr/local/lib/libtiff.a /usr/local/lib/libtiffxx.a /usr/local/lib/libwmf.a /usr/local/lib/libwmflite.a 
Error: You have uncommitted modifications to Homebrew's core. 
Unless you know what you are doing, you should run: 
cd /usr/local && git reset --hard 
Error: Some directories in your path end in a slash. 
Directories in your path should not end in a slash. This can break other 
doctor checks. The following directories should be edited: 
/usr/local/git/bin/ 
[/usr/local]$ 

उत्तर

60
Error: Setting DYLD_LIBRARY_PATH can break dynamic linking. You should probably unset it. Error: Some keg-only formula are linked into the Cellar. Linking a keg-only formula, such as gettext, into the cellar with brew link f will cause other formulae to detect them during the ./configure step. This may cause problems when compiling those other formulae. 

Binaries provided by keg-only formulae may override system binaries with other strange results. 

यह आपको अपने डायनामिक लोडिंग लाइब्रेरी पथ को अनसेट करने के लिए कह रहा है। आप इसे कहां सेट कर सकते हैं और इसे हटाकर यह कर सकते हैं। सबसे अधिक संभावना, आप अपने ~/.bashrc में एक पंक्ति या ~/.bash_profile कि export DYLD_LIBRARY_PATH=/some/path:$DYLD_LIBRARY_PATH तरह

You may wish to brew unlink these brews: 

libxml2 

जब ब्रियू लिंक, यह स्थापना के लिए एक सिमलिंक बनाने है लग रहा है। यह है कि आप कैसे python2.6 हो सकता है। python2.7 स्थापित लेकिन python उनमें से एक चलाएगा।

brew unlink libxml2

Error: Unbrewed dylibs were found in /usr/local/lib. If you didn't put them there on purpose they could cause problems when building Homebrew formulae, and may need to be deleted. 

Unexpected dylibs: /usr/local/lib/libcharset.1.dylib /usr/local/lib/libfreetype.6.dylib /usr/local/lib/libjpeg.8.dylib /usr/local/lib/liblcms.1.0.19.dylib /usr/local/lib/libMagickCore.4.dylib /usr/local/lib/libMagickWand.4.dylib /usr/local/lib/libpng15.15.dylib /usr/local/lib/libtiff.3.dylib /usr/local/lib/libtiffxx.3.dylib /usr/local/lib/libwmf-0.2.7.1.0.dylib /usr/local/lib/libwmflite-0.2.7.0.1.dylib Error: Unbrewed .la files were found in /usr/local/lib. If you didn't put them there on purpose they could cause problems when building Homebrew formulae, and may need to be deleted. 

Unexpected .la files: /usr/local/lib/libcharset.la /usr/local/lib/libfreetype.la /usr/local/lib/libjpeg.la /usr/local/lib/liblcms.la /usr/local/lib/libMagickCore.la /usr/local/lib/libMagickWand.la /usr/local/lib/libpng15.la /usr/local/lib/libtiff.la /usr/local/lib/libtiffxx.la /usr/local/lib/libwmf.la /usr/local/lib/libwmflite.la Error: Unbrewed .pc files were found in /usr/local/lib/pkgconfig. If you didn't put them there on purpose they could cause problems when building Homebrew formulae, and may need to be deleted. 

Unexpected .pc files: /usr/local/lib/pkgconfig/freetype2.pc /usr/local/lib/pkgconfig/ImageMagick.pc /usr/local/lib/pkgconfig/lcms.pc /usr/local/lib/pkgconfig/libpng15.pc /usr/local/lib/pkgconfig/MagickCore.pc /usr/local/lib/pkgconfig/MagickWand.pc /usr/local/lib/pkgconfig/Wand.pc Error: Unbrewed static libraries were found in /usr/local/lib. If you didn't put them there on purpose they could cause problems when building Homebrew formulae, and may need to be deleted. 

Unexpected static libraries: /usr/local/lib/libcharset.a /usr/local/lib/libfreetype.a /usr/local/lib/libjpeg.a /usr/local/lib/liblcms.a /usr/local/lib/libpng15.a /usr/local/lib/libtiff.a /usr/local/lib/libtiffxx.a /usr/local/lib/libwmf.a /usr/local/lib/libwmflite.a 

इन अन्य प्रतिष्ठानों से अवशिष्ट फ़ाइलें हैं। आप उन्हें हटा सकते हैं।

rm FILENAME

Error: You have uncommitted modifications to Homebrew's core. Unless you know what you are doing, you should run: cd /usr/local && git reset --hard 

यहाँ, यह कह रहा है कि आप Homebrew फ़ाइलों के लिए सुधार किए हैं। सौभाग्य से, होमब्रू गिट संस्करण नियंत्रण में संग्रहीत है ताकि आप उन परिवर्तनों को वापस कर सकें।

cd /usr/local && git reset --hard

Error: Some directories in your path end in a slash. Directories in your path should not end in a slash. This can break other doctor checks. The following directories should be edited: /usr/local/git/bin/ 

पथ चर जहां कार्यक्रमों के लिए अपने कंप्यूटर खोज जब आप इसे कमांड लाइन में टाइप है। आप echo $PATH के साथ अपना रास्ता देख सकते हैं।

मानक निर्देश देते हैं कि पथ में सभी पथ स्लैश में समाप्त नहीं होना चाहिए। इस प्रकार, होमब्री आपको इसे ठीक करने के लिए कह रहा है।

nano ~/.bashrc या nano ~/.bash_profile और '/ usr/local/git/bin /' के लिए देखो और पीछे की स्लैश को हटा दें।

+3

जब भी आप उस फ़ाइल को संपादित करते हैं तो टर्मिनल या रन स्रोत ~/.bashrc को पुनरारंभ करना भी याद रखें – kwyoung11

3

मैं भी ब्रूव करने के लिए नया हूं। जब मैंने पहली बार कोशिश की, तो मैंने त्रुटियों की कपड़े धोने की सूची समाप्त कर दी। ब्रूव का उपयोग करने के लिए मुझे सभी की आवश्यकता नहीं है मुझे इसकी आवश्यकता है। विशेष रूप से, मैं

Unbrewed * were found in /usr/local/lib 

संदेश जो मुझे मिल रहा था, को अनदेखा करने में सक्षम था। मेरा मानना ​​है कि वे केवल एक समस्या है जब ब्रू स्थापित पैकेज का उपयोग आपके द्वारा पहले स्थापित किए गए लोगों में हस्तक्षेप करेगा (मेरे मामले में, यह एनटीएफएस -3 जी था, जो ब्रू के मेरे भविष्य के उपयोग से संबंधित नहीं था)।

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