2012-05-14 25 views
62

Tôi rất nhiều người mới khi nói đến tất cả những điều này để tha thứ cho sự thiếu năng lực của tôi.Làm thế nào để sửa chữa lỗi bác sĩ pha chế

Khi tôi chạy brew Doctor, tôi nhận được thông tin sau. Ai đó có thể giúp đỡ?

[/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]$ 

Trả lời

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. 

Điều này yêu cầu bạn bỏ đặt đường dẫn thư viện tải động của bạn. Bạn có thể làm điều này bằng cách tìm ra nơi bạn đặt nó và loại bỏ nó. Nhiều khả năng, bạn có một dòng trong ~/.bashrc hoặc ~/.bash_profile trông giống như export DYLD_LIBRARY_PATH=/some/path:$DYLD_LIBRARY_PATH

You may wish to brew unlink these brews: 

libxml2 

Khi Brew liên kết, nó tạo ra một liên kết tượng trưng cho quá trình cài đặt. Đó là cách bạn có thể có python2.6. python2.7 được cài đặt nhưng python sẽ chạy một trong số chúng.

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 

Đây là những file còn sót lại từ bản cài đặt khác. Bạn có thể xóa chúng.

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 

Ở đây, người ta nói với bạn rằng bạn đã thực hiện sửa đổi các tập tin Homebrew. May mắn thay, Homebrew được lưu trữ trong điều khiển phiên bản Git để bạn có thể hoàn nguyên những thay đổi đó.

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/ 

Biến PATH là nơi tìm kiếm máy tính của bạn cho các chương trình khi bạn gõ nó trong dòng lệnh. Bạn có thể thấy đường dẫn của mình với echo $PATH.

Tiêu chuẩn ra lệnh rằng tất cả các đường dẫn trong PATH không được kết thúc bằng dấu gạch chéo. Vì vậy, homebrew đang yêu cầu bạn sửa chữa nó.

nano ~/.bashrc hoặc nano ~/.bash_profile và tìm '/ usr/local/git/bin /' và xóa dấu gạch chéo.

+3

Cũng nhớ khởi động lại thiết bị đầu cuối hoặc chạy nguồn ~/.bashrc khi bạn chỉnh sửa tệp đó – kwyoung11

3

Tôi cũng mới nấu bia. Khi tôi lần đầu tiên thử, tôi đã kết thúc với một danh sách các lỗi bị lỗi. Không phải tất cả cần để được sửa cho tôi để sử dụng bia khi tôi cần. Đặc biệt, tôi có thể bỏ qua các thông báo

Unbrewed * were found in /usr/local/lib 

mà tôi đã nhận được. Tôi tin rằng đó chỉ là vấn đề khi bạn sử dụng các gói cài đặt brew sẽ can thiệp vào những gói bạn đã cài đặt trước đó (trong trường hợp của tôi, đó là NTFS-3g, không liên quan đến việc sử dụng bia của tôi trong tương lai).

Các vấn đề liên quan