2013-03-13 132 views
2

更新:MacPorts的安裝dpkg的錯誤

sudo port selfupdate沒有返回任何錯誤。這是輸出:

---> Updating MacPorts base sources using rsync 
MacPorts base version 2.1.3 installed, 
MacPorts base version 2.1.3 downloaded. 
---> Updating the ports tree 
---> MacPorts base is already the latest version 

The ports tree has been updated. To upgrade your installed ports, you should run 
    port upgrade outdated 

然而,當我跑sudo port upgrade outdated,我得到了以下錯誤:

---> Configuring expat 
Error: org.macports.configure for port expat returned: configure failure: command execution failed 
Please see the log file for port expat for details: 
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/main.log 
Error: Unable to upgrade port: 1 
To report a bug, follow the instructions in the guide: 
    http://guide.macports.org/#project.tickets 

運行sudo port upgrade gettext返回以下錯誤:

---> Configuring expat 
Error: org.macports.configure for port expat returned: configure failure: command execution failed 
Please see the log file for port expat for details: 
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/main.log 
Error: Unable to upgrade port: 1 
To report a bug, follow the instructions in the guide: 
    http://guide.macports.org/#project.tickets 

原題:

我目前正試圖在我的Mac OS 10.7.5上安裝dpkg,所以我可以運行這些sudo make package(它告訴我,我不能這麼做,因爲沒有安裝dkpg)。

我按照指示here,但是當我運行sudo port install dpkg時遇到問題。這是錯誤:

---> Configuring expat 
Error: org.macports.configure for port expat returned: configure failure: command execution failed 
Please see the log file for port expat for details: 
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/main.log 
Error: Unable to upgrade port: 1 
Error: Unable to execute port: upgrade gettext failed 

這是main.log內容:

version:1 
:debug:main expat has no conflicts 
:debug:main Executing org.macports.main (expat) 
:debug:main changing euid/egid - current euid: 0 - current egid: 0 
:debug:main egid changed to: 501 
:debug:main euid changed to: 502 
:debug:main Skipping completed org.macports.archivefetch (expat) 
:debug:main Privilege de-escalation not attempted as not running as root. 
:debug:main Skipping completed org.macports.fetch (expat) 
:debug:main Privilege de-escalation not attempted as not running as root. 
:debug:main Skipping completed org.macports.checksum (expat) 
:debug:main Privilege de-escalation not attempted as not running as root. 
:debug:main Skipping completed org.macports.extract (expat) 
:debug:main Privilege de-escalation not attempted as not running as root. 
:debug:main Skipping completed org.macports.patch (expat) 
:debug:main Privilege de-escalation not attempted as not running as root. 
:debug:configure configure phase started at Wed Mar 13 14:55:32 CDT 2013 
:notice:configure ---> Configuring expat 
:debug:configure Using compiler 'Mac OS X clang' 
:debug:configure Executing org.macports.configure (expat) 
:debug:configure Environment: CPATH='/opt/local/include' CFLAGS='-pipe -O2 -arch x86_64' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-pipe -O2 -arch x86_64' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.7' CXX='/usr/bin/clang++' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/work/.CC_PRINT_OPTIONS' F90FLAGS='-pipe -O2 -m64' LDFLAGS='-L/opt/local/lib -arch x86_64' OBJC='/usr/bin/clang' FCFLAGS='-pipe -O2 -m64' INSTALL='/usr/bin/install -c' OBJCFLAGS='-pipe -O2 -arch x86_64' FFLAGS='-pipe -O2 -m64' CC_PRINT_OPTIONS='YES' CC='/usr/bin/clang' 
:debug:configure Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/work/expat-2.1.0" && ./configure --prefix=/opt/local' 
:debug:configure Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/work/expat-2.1.0" && ./configure --prefix=/opt/local 
:info:configure sh: line 0: cd: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/work/expat-2.1.0: No such file or directory 
:info:configure Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/work/expat-2.1.0" && ./configure --prefix=/opt/local 
:info:configure Exit code: 1 
:error:configure org.macports.configure for port expat returned: configure failure: command execution failed 
:debug:configure Error code: NONE 
:debug:configure Backtrace: configure failure: command execution failed 
    while executing 
"$procedure $targetname" 
:info:configure Warning: targets not executed for expat: org.macports.install org.macports.configure org.macports.build org.macports.destroot 
:notice:configure Please see the log file for port expat for details: 
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/main.log 

誰能幫我安裝dpkg?我完全不知道問題是什麼。

+0

你運行' sudo port selfupdate'首先?你還安裝了什麼版本的gettext?你嘗試'sudo端口升級gettext'嗎? – prodigitalson 2013-03-13 20:04:42

+0

我試過'sudo port selfupdate',並且工作正常。不過,當我嘗試'sudo port upgrade outdated'時,我確實收到錯誤。我會更新我的問題。 – Charles 2013-03-13 20:05:31

+0

另外,'sudo port upgrade gettext'也會返回一個錯誤。看起來'升級gettext'和'升級過時'的錯誤是一樣的。 – Charles 2013-03-13 20:09:51

回答

0

我通過使用brew而不是port來安裝dpkg來解決這個問題,正如Randy Howard所建議的那樣。

鏈接在這裏:http://mxcl.github.com/homebrew/

蘭迪建議,讓啤酒運行起來比使用MacPorts的是輕鬆了許多。卸載後者後,我運行上面頁面中提供的ruby代碼,並能夠在幾分鐘內安裝dpkg

1

我今天也遇到了這個問題 - 最後刪除了/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/work中的.macports.expat.state文件,然後執行'port fetch expat'手動確認最新的內容已經過期。看起來2.1.0很難過。

這樣做後,才能夠做一個直接'端口升級expat',最終正確升級。

不確定爲什麼它在expat 2.1.0升級時遇到問題。

希望這會有所幫助。

+0

我升級到OX10.9,也遇到了expat問題。但是,gnutar現在是阻擋者。試圖安裝gnutar。我現在處於gettext,expat和gnutar的惡性循環之中。 – zerocog 2013-11-15 20:27:14

+0

找到OX 10.9 Mavericks更新的解決方案。只是不想在星期五直接。解決方案是更新到OS X 10.9 Mavericks: MacPorts-2.2.1-10.9-Mavericks.pkg,網址爲http://guide.macports.org/chunked/installing.macports.html。做到這一點,以及expat,apr,gnutar等......會更新得很好。 – zerocog 2013-11-18 19:33:17