2

アップデート:

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

元の質問:

dpkg現在、Mac OS 10.7.5 にインストールしようとしているので、theos を実行できますsudo make package(インストールされていないため実行できないと表示されていますdkpg)。

ここの指示に従いましたが、 を実行すると問題が発生します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インストールを手伝ってくれる人はいますか?何が問題なのかまったくわかりません。

4

3 に答える 3

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 のアップグレードで問題が発生した理由がよくわかりません。

お役に立てれば。

于 2013-04-22T11:06:46.057 に答える
0

Randy Howard が提案したように、brew代わりに を使用して dpkg をインストールすることでこれを解決しました。port

リンクはこちら: http://mxcl.github.com/homebrew/

Randy が示唆したように、Brew を起動して実行するのは、MacPorts を使用するよりもはるかに簡単でした。後者をアンインストールした後、上のページにある ruby​​ コードを実行dpkgしたところ、数分でインストールできました。

于 2013-03-14T01:56:32.617 に答える