2014-10-16 23 views
8

Próbowałem zainstalować i uruchomić DDD stosując następujące polecenia:Bieganie ddd na Mac OS X 10.7.5

brew install libtool 
brew link lesstif 
brew install ddd 

i otrzymała następujący komunikat o błędzie podczas próby uruchomienia DDD:

[email protected]:~$ ddd 
dyld: Library not loaded: /opt/X11/lib/libSM.6.dylib 
Referenced from: /usr/local/lib/libXm.2.dylib 
Reason: image not found 
Trace/BPT trap: 5 

poniżej znajduje moje wyjście z parzenia config:

HOMEBREW_VERSION: 0.9.5 
ORIGIN: https://github.com/Homebrew/homebrew 
HEAD: 7a427a6528c0aa123a43d3adf1c5944ab622c27e 
Last commit: 2 hours ago 
HOMEBREW_PREFIX: /usr/local 
HOMEBREW_CELLAR: /usr/local/Cellar 
CPU: dual-core 64-bit penryn 
OS X: 10.7.5-i386 
Xcode: 4.6.3 
CLT: 4.6.0.0.1.1365549073 
LLVM-GCC: build 2336 
Clang: 4.2 build 425 
X11: 2.6.5 => /usr/X11 
System Ruby: 1.8.7-358 
Perl: /usr/bin/perl 
Python: /usr/bin/python 
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby 

A poniżej moje wyjście z parzenia lekarza:

Warning: Some directories in /usr/local/share/man aren't writable. This can happen if you "sudo make install" software that isn't managed by Homebrew. If a brew tries to add locale information to one of these directories, then the install will fail during the link step. You should probably chown them: 

/usr/local/share/man/de 
/usr/local/share/man/de/man1 
/usr/local/share/man/mann 

Warning: 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/libtcl8.6.dylib 
/usr/local/lib/libtk8.6.dylib 

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

Unexpected header files: 

/usr/local/include/fakemysql.h 
/usr/local/include/fakepq.h 
/usr/local/include/fakesql.h 
/usr/local/include/itcl.h 
/usr/local/include/itcl2TclOO.h 
/usr/local/include/itclDecls.h 
/usr/local/include/itclInt.h 
/usr/local/include/itclIntDecls.h 
/usr/local/include/itclMigrate2TclCore.h 
/usr/local/include/itclTclIntStubsFcn.h 
/usr/local/include/mysqlStubs.h 
/usr/local/include/odbcStubs.h 
/usr/local/include/pqStubs.h 
/usr/local/include/tcl.h 
/usr/local/include/tclDecls.h 
/usr/local/include/tclOO.h 
/usr/local/include/tclOODecls.h 
/usr/local/include/tclPlatDecls.h 
/usr/local/include/tclThread.h 
/usr/local/include/tclTomMath.h 
/usr/local/include/tclTomMathDecls.h 
/usr/local/include/tdbc.h 
/usr/local/include/tdbcDecls.h 
/usr/local/include/tdbcInt.h 
/usr/local/include/tk.h 
/usr/local/include/tkDecls.h 
/usr/local/include/tkPlatDecls.h 

Warning: 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/tcl.pc 
/usr/local/lib/pkgconfig/tk.pc 

Warning: 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/libtclstub8.6.a 
/usr/local/lib/libtkstub8.6.a 

Warning: /usr/bin occurs before /usr/local/bin This means that system-provided programs will be used instead of those provided by Homebrew. The following tools exist at both paths: 

dot 

Consider setting your PATH so that /usr/local/bin occurs before /usr/bin. Here is a one-liner: 

echo export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile 

Czy te ostrzeżenia od lekarza pańskiego są ostrzeżeniami, które powinienem spróbować usunąć? Wszystkie moje pozostałe programy instalacyjne są w porządku, więc niechętnie zaczynają przeglądać te pliki. Dziękuję Ci!

Odpowiedz

2

Więc myślę, Mac OS X 10.7.5. jest dostarczany z XQuartz (tylko 10,8 i później, które nie są dostarczane z instalacją).

Oto, co ostatecznie pracował dla mnie:

The unbrewed dylibs, pliki nagłówkowe, pliki .pc i biblioteki statyczne zostały tam umieszczone przez non-homebrew instalacji R więc odinstalowałem R za pomocą następujących poleceń:

rm -rf /Library/Frameworks/R.framework /Applications/R.app \ 
/usr/bin/R /usr/bin/Rscript 

następnie odinstalowane ddd, odłączone lesstif i odinstalowane lesstif:

brew uninstall ddd 
brew unlink lesstif 
brew uninstall lesstif 

Następny, zainstalowałem TCL-TK:

brew tap homebrew/dupes 
brew install tcl-tk 

Potem zbudowano LessTif ze źródła z wywaru zainstalować:

brew install --build-from-source lesstif 

I relinked lesstif:

brew unlink lesstif && brew link lesstif 

Wreszcie zainstalowałem ddd:

brew install ddd 

I pracował! Nie jestem pewien, które z tych etapów był kluczowym etapem, ale zgaduję, że to:

brew install --build-from-source lesstif 

ja nadal nie wiem, co ci dwaj zrobić inaczej:

brew install --build-from-source lesstif 
brew install lesstif 

I również szukał następującego katalogu i plików:

/opt/X11/lib/libSM.6.dylib exist 

ale nie istniały na moim komputerze.

@new-host:~$ cd ~ 
@new-host:~$ cd /opt 
-bash: cd: /opt: No such file or directory 

Zamiast znalazłem pliki X11 tu:

@new-host:/usr/X11$ cd ~ 
@new-host:~$ cd /usr/X11/lib 
@new-host:/usr/X11/lib$ ls 
... 
libSM.6.dylib 
... 

myślę mógłbym rozwiązać ten problem za pomocą jakiegoś symbolicznego linku, ale nie do końca pewny.

Wreszcie, te niezbyt wietrzone dylibs, pliki nagłówkowe, pliki .pc i statyczne biblioteki zostały tam umieszczone przez instalację inną niż homebrew R. Ale nie jestem pewien, czy istnieje sposób, aby bezpiecznie usunąć je tak, aby wyeliminować ostrzeżenia lekarza warzenia. (Prawdopodobnie będę musiał z nimi żyć).

Instalacja R składał się z trzech pakietów Apple:

org.r-project.R.x86_64.fw.pkg 
org.r-project.R.x86_64.GUI.pkg 
org.r-project.x86_64.tcltk.x11 

Na stronie internetowej R (http://cran.r-project.org/doc/manuals/r-release/R-admin.html#Uninstalling-under-OS-X): Można użyć pkgutil --unlink (nieobsługiwane przez Lion lub nowszym), aby usunąć swoje pliki lub pkgutil --forget jeśli chcesz Apple Installer, aby zapomnieć o pakiecie bez usuwania jego plików (przydatne dla architektury R podczas instalowania wielu wersji R równolegle) lub po usunięciu plików

Odinstalowanie składnika Tcl/Tk (który jest instalowany pod /usr/local) nie jest sim ple. Można wyświetlić listę plików zainstalowany w terminalu przez

pkgutil --files org.r-project.x86_64.tcltk.x11 

Trochę zbyt przerażające dla mnie do walki, że usunięcie tak będzie żyć z brew doctor ostrzeżeń. Po prostu szczęśliwy, że wreszcie zadziałało ddd.