2009-12-01 80 views
1

我嘗試了幾個技巧,清理所有,沒有運氣。有小費嗎?安裝git-core + svn與MacPort失敗

sudo port install git-core +svn +doc 

---> Computing dependencies for git-core 
---> Building db46 
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_db46/work/db-4.6.21/build_unix" && /usr/bin/make -j2 all " returned error 2 

Command output: /bin/sh ./libtool --mode=compile /usr/bin/gcc-4.2 -c -O2 -arch x86_64 -I../dist/.. -I/opt/local/include -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers ../dist/../db_dump185/db_dump185.c 
/bin/sh ./libtool --mode=compile /usr/bin/gcc-4.2 -c -I. -I../dist/.. -I/opt/local/include -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers -O2 -arch x86_64 ../dist/../common/util_sig.c 
/usr/bin/gcc-4.2 -c -O2 -arch x86_64 -I../dist/.. -I/opt/local/include -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers ../dist/../db_dump185/db_dump185.c -fno-common -DPIC -o .libs/db_dump185.o 
/usr/bin/gcc-4.2 -c -I. -I../dist/.. -I/opt/local/include -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers -O2 -arch x86_64 ../dist/../common/util_sig.c -fno-common -DPIC -o .libs/util_sig.o 
../dist/../db_dump185/db_dump185.c: In function 'main': 
../dist/../db_dump185/db_dump185.c:211: warning: assignment makes pointer from integer without a cast 
../dist/../db_dump185/db_dump185.c:213: warning: assignment makes pointer from integer without a cast 
../dist/../db_dump185/db_dump185.c:228: error: 'DB' has no member named 'seq' 
../dist/../db_dump185/db_dump185.c:228: error: 'R_NEXT' undeclared (first use in this function) 
../dist/../db_dump185/db_dump185.c:228: error: (Each undeclared identifier is reported only once 
../dist/../db_dump185/db_dump185.c:228: error: for each function it appears in.) 
../dist/../db_dump185/db_dump185.c:233: error: 'DB' has no member named 'seq' 
../dist/../db_dump185/db_dump185.c: In function 'db_hash': 
../dist/../db_dump185/db_dump185.c:261: error: 'DB' has no member named 'internal' 
../dist/../db_dump185/db_dump185.c:263: error: 'DB' has no member named 'internal' 
../dist/../db_dump185/db_dump185.c: In function 'db_btree': 
../dist/../db_dump185/db_dump185.c:288: error: 'DB' has no member named 'internal' 
make: *** [db_dump185.lo] Error 1 
make: *** Waiting for unfinished jobs.... 
/usr/bin/gcc-4.2 -c -I. -I../dist/.. -I/opt/local/include -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers -O2 -arch x86_64 ../dist/../common/util_sig.c -o util_sig.o >/dev/null 2>&1 


Error: The following dependencies failed to build: p5-svn-simple subversion-perlbindings apr-util db46 cyrus-sasl2 gettext neon serf subversion p5-term-readkey rsync popt 
Error: Status 1 encountered during processing. 

回答

-2

您是否最近升級到SNOW LEOPARD(或任何其他Mac OS X版本)?

跟着this指南,你的問題就會消失。

+0

謝謝巴勃羅。我以前經歷過雪豹的黑暗日子,並希望他們結束。我試過了,但是你再次提出的建議和相同的東西:( – 2009-12-02 19:13:11

+0

哇,卸載一切,然後選擇重新安裝的東西,呵呵?聽起來像是一個可能是一個好主意,現在又是,但這也是相當破壞性的。它並不一定真正解決這個問題(根據OP的評論),所以,-1代表「你的問題將會消失」的說法。 – lindes 2011-02-15 02:43:20

2

有人建議(例如herehere)將/ usr/local放在一邊,然後再做端口清理db46,然後安裝將會修復這些問題。

這不適合我。然而,這並:

sudo mv /usr/local /usr/local.hold 
# using -f to ignore dependencies, since we're about to re-install it 
sudo port -f uninstall db46 
sudo port clean db46 
# See note below, you may actually want to install something different 
# (like your git-core install) 
sudo port install db46 
sudo mv /usr/local.hold /usr/local 

我真的不知道,如果在/ usr /本地步驟是在我的情況有關 - 我不懷疑,因爲我不安裝有db46。我認爲這只是以前版本的db46引起的問題。

這讓我覺得是db46和/或其端口定義或配置腳本或其他東西中的一個錯誤,這會導致它引用系統中某個地方安裝的頭文件,而不是相同頭文件的版本構建樹。儘管如此,我還沒有深究。另外請注意:我實際上正在爲另一個端口構建它,並且它需要+通用變體(不知道爲什麼,但無論如何) - 所以我上面的端口安裝步驟有點沒用,因爲當我執行端口安裝時在我想要的其他軟件包上,它重新使用了+ universal,並且又出現了相同的問題!嘆。仍然,再次做sudo port -f uninstall db46sudo port clean db46,然後做我的主要安裝使一切正常。

+1

這似乎是徹底的,但它真的很久以前我發佈了這個問題,我記得我去了另一條路,我不想錯過它,謝謝你爲其他人分享它(也許我在未來) – 2011-02-15 11:21:32

+0

不客氣,是的,希望別人會覺得它有用。打一些搜索或其他我所做的,所以我想我會添加答案,一旦我找到了答案);)很高興你在這段時間找到了別的東西。 – lindes 2011-02-15 12:50:24