使用macport安装hhvm时出错并使用macport安装失败

时间:2015-06-16 08:59:29

标签: macos python-2.7 port macports hhvm

我尝试在Mac OS X Yosemite上安装HHVM,但它失败了,最后我无法安装任何MacPort。

例如,如果我尝试使用此命令行安装pear:

sudo port install php55-pear

结果:

--->  Computing dependencies for php55-pear
--->  Cleaning php55-pear
--->  Scanning binaries for linking errors
--->  Found 29 broken file(s), matching files to ports  
--->  Found 6 broken port(s), determining rebuild order
--->  Rebuilding in order
     boost @1.55.0 +no_single+no_static+python27
     libdlna @0.2.4 
     harfbuzz-icu @0.9.25 
     webkit-gtk3 @2.2.3 +video
     php54-intl @5.4.16 
     openldap @2.4.31 
--->  Computing dependencies for python27
--->  Staging python27 into destroot
Error: org.macports.destroot for port python27 returned: command execution failed
Please see the log file for port python27 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python27/python27/main.log
Error: Unable to upgrade port: 1
Error rebuilding boost
    while executing
"error "Error rebuilding $portname""
    (procedure "revupgrade_scanandrebuild" line 395)
    invoked from within
"revupgrade_scanandrebuild broken_port_counts $opts"
    (procedure "macports::revupgrade" line 5)
    invoked from within
"macports::revupgrade $opts"
    (procedure "action_revupgrade" line 2)
    invoked from within
"action_revupgrade $action $portlist $opts"
    (procedure "action_target" line 96)
    invoked from within
"$action_proc $action $portlist [array get global_options]"
    (procedure "process_cmd" line 103)
    invoked from within
"process_cmd $remaining_args"
    invoked from within
"if { [llength $remaining_args] > 0 } {

    # If there are remaining arguments, process those as a command
    set exit_status [process_cmd $remaining..."
    (file "/opt/local/bin/port" line 5268)

在日志文件中(/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python27/python27/main.log):

version:1
:msg:main --->  Computing dependencies for python27:info:main .:debug:main python27 has no conflicts
:debug:main Searching for dependency: gettext
:debug:main Found Dependency: receipt exists for gettext
:debug:main Searching for dependency: zlib
:debug:main Found Dependency: receipt exists for zlib
:debug:main Searching for dependency: openssl
:debug:main Found Dependency: receipt exists for openssl
:debug:main Searching for dependency: sqlite3
:debug:main Found Dependency: receipt exists for sqlite3
:debug:main Searching for dependency: db48
:debug:main Found Dependency: receipt exists for db48
:debug:main Searching for dependency: ncurses
:debug:main Found Dependency: receipt exists for ncurses
:debug:main Searching for dependency: bzip2
:debug:main Found Dependency: receipt exists for bzip2
:debug:main Searching for dependency: libedit
:debug:main Found Dependency: receipt exists for libedit
:debug:main Searching for dependency: python_select
:debug:main Found Dependency: receipt exists for python_select
:debug:main Searching for dependency: python2_select
:debug:main Found Dependency: receipt exists for python2_select
:msg:main 
:debug:main Executing org.macports.main (python27)
: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 (python27)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.fetch (python27)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.checksum (python27)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.extract (python27)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.patch (python27)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.configure (python27)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Mon Jun 15 09:32:15 CEST 2015
:notice:build --->  Building python27
:debug:build Executing org.macports.build (python27)
:debug:build Environment: 
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python27/python27/work/.CC_PRINT_OPTIONS'
CPATH='/opt/local/include'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='10.10'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python27/python27/work/Python-2.7.10" && /usr/bin/make -j4 -w all MAKE="/usr/bin/make CC=/usr/bin/clang"'
:debug:build Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python27/python27/work/Python-2.7.10" && /usr/bin/make -j4 -w all MAKE="/usr/bin/make CC=/usr/bin/clang" 
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python27/python27/work/Python-2.7.10'
:info:build /opt/local/bin/gcc-mp-4.8 -c -fno-strict-aliasing -fno-common -dynamic -pipe -Os -fwrapv -m64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include -I/opt/local/include -I/opt/local/include/db48  -DPy_BUILD_CORE -o Python/mactoolboxglue.o Python/mactoolboxglue.c
:info:build In file included from /usr/include/dispatch/dispatch.h:51:0,
:info:build                  from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15,
:info:build                  from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13,
:info:build                  from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:55,
:info:build                  from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19,
:info:build                  from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20,
:info:build                  from Include/pymactoolbox.h:10,
:info:build                  from Python/mactoolboxglue.c:27:
:info:build /usr/include/dispatch/object.h:143:15: error: expected identifier or '(' before '^' token
:info:build  typedef void (^dispatch_block_t)(void);
:info:build                ^
:info:build /usr/include/dispatch/object.h:362:3: error: unknown type name 'dispatch_block_t'
:info:build    dispatch_block_t notification_block);
:info:build    ^
:info:build make: *** [Python/mactoolboxglue.o] Error 1
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python27/python27/work/Python-2.7.10'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python27/python27/work/Python-2.7.10" && /usr/bin/make -j4 -w all MAKE="/usr/bin/make CC=/usr/bin/clang" 
:info:build Exit code: 2
:error:build org.macports.build for port python27 returned: command execution failed
:debug:build Error code: CHILDSTATUS 44681 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"portbuild::build_main org.macports.build"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
:info:build Warning: targets not executed for python27: org.macports.install org.macports.build org.macports.destroot
:notice:build Please see the log file for port python27 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python27/python27/main.log

我不知道如何解决它。有没有人有想法?

阿诺

5 个答案:

答案 0 :(得分:1)

同样的错误。

1 / sudo port selfupdate

结果:

--->  Updating MacPorts base sources using rsync
    MacPorts base version 2.3.3 installed,
    MacPorts base version 2.3.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

2 / sudo port install -d -R valabind

结果:

--->  Computing dependencies for valabind
    --->  Cleaning valabind
    --->  Scanning binaries for linking errors
    --->  Found 15 broken file(s), matching files to ports   
    --->  Found 6 broken port(s), determining rebuild order
    --->  Rebuilding in order
         valabind @0.8.0 
         ushare @1.1a 
         wget @1.14 +ssl
         geocode-glib @3.10.0 
         strigi @0.7.8 
         nepomuk-core @4.12.5 
    --->  Fetching archive for valabind
    --->  Attempting to fetch valabind-0.8.0_1.darwin_14.x86_64.tbz2 from http://lil.fr.packages.macports.org/valabind
    --->  Attempting to fetch valabind-0.8.0_1.darwin_14.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/valabind
    --->  Attempting to fetch valabind-0.8.0_1.darwin_14.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/valabind
    --->  Computing dependencies for valabind
    --->  Fetching distfiles for valabind
    --->  Verifying checksums for valabind
    --->  Extracting valabind
    --->  Configuring valabind
    --->  Building valabind
    Error: org.macports.build for port valabind returned: command execution failed
    Please see the log file for port valabind for details:
        /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_valabind/valabind/main.log
    Error: Unable to upgrade port: 1
    Error rebuilding valabind
        while executing
    "error "Error rebuilding $portname""
        (procedure "revupgrade_scanandrebuild" line 395)
        invoked from within
    "revupgrade_scanandrebuild broken_port_counts $opts"
        (procedure "macports::revupgrade" line 5)
        invoked from within
    "macports::revupgrade $opts"
        (procedure "action_revupgrade" line 2)
        invoked from within
    "action_revupgrade $action $portlist $opts"
        (procedure "action_target" line 96)
        invoked from within
    "$action_proc $action $portlist [array get global_options]"
        (procedure "process_cmd" line 103)
        invoked from within
    "process_cmd $remaining_args"
        invoked from within
    "if { [llength $remaining_args] > 0 } {

        # If there are remaining arguments, process those as a command
        set exit_status [process_cmd $remaining..."
        (file "/opt/local/bin/port" line 5268)

3 / sudo port install -d -R -y valabind

结果:

--->  Computing dependencies for valabind
For valabind: skipping org.macports.main (dry run)
--->  Scanning binaries for linking errors
--->  Found 15 broken file(s), matching files to ports   
--->  Found 6 broken port(s), determining rebuild order
--->  Rebuilding in order
     valabind @0.8.0 
     ushare @1.1a 
     wget @1.14 +ssl
     geocode-glib @3.10.0 
     strigi @0.7.8 
     nepomuk-core @4.12.5 
--->  Computing dependencies for valabind
--->  Building valabind
Error: org.macports.build for port valabind returned: command execution failed
Please see the log file for port valabind for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_valabind/valabind/main.log
Error: Unable to upgrade port: 1
Error rebuilding valabind
    while executing
"error "Error rebuilding $portname""
    (procedure "revupgrade_scanandrebuild" line 395)
    invoked from within
"revupgrade_scanandrebuild broken_port_counts $opts"
    (procedure "macports::revupgrade" line 5)
    invoked from within
"macports::revupgrade $opts"
    (procedure "action_revupgrade" line 2)
    invoked from within
"action_revupgrade $action $portlist $opts"
    (procedure "action_target" line 96)
    invoked from within
"$action_proc $action $portlist [array get global_options]"
    (procedure "process_cmd" line 103)
    invoked from within
"process_cmd $remaining_args"
    invoked from within
"if { [llength $remaining_args] > 0 } {

    # If there are remaining arguments, process those as a command
    set exit_status [process_cmd $remaining..."
    (file "/opt/local/bin/port" line 5268)

答案 1 :(得分:0)

sudo port install php55-pear将无法安装HHVM - 它将安装标准的PHP5引擎,然后将PEAR存储库添加到其中。此外,从错误消息中,我怀疑你所拥有的问题根本不是PHP,而是Python 2.7软件包。您应该使用MacPorts维护者 - 它肯定与HHVM无关,而且可能与PHP无关。

如果你想尝试在Mac上构建HHVM,我一直在努力让它重新启动并运行。在撰写本文时,These directions on the wiki被认为适用于HHVM主人。你可以尝试一下,虽然他们实际上没有任何承诺,Mac支持仍然是超级实验性的。 (并且他们可能不会工作,直到您解决上面的MacPorts问题!)

答案 2 :(得分:0)

我的错误更改。

我遵循了这篇文章中描述的内容:https://trac.macports.org/ticket/40167

我成功启动了命令: sudo port clean all

之后: sudo port -d upgrade python27

但是,最后的结果: Exit code: 2 Error: org.macports.build for port valabind returned: command execution failed DEBUG: Error code: CHILDSTATUS 70008 2 DEBUG: Backtrace: command execution failed while executing "system -nice 0 $fullcmdstring" ("eval" body line 1) invoked from within "eval system $notty $nice \$fullcmdstring" invoked from within "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "portbuild::build_main org.macports.build" ("eval" body line 1) invoked from within "eval $procedure $targetname" Warning: targets not executed for valabind: org.macports.destroot org.macports.build Please see the log file for port valabind for details:     /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_valabind/valabind/main.log DEBUG: can not find channel named "debuglog" while executing "tcl::puts debuglog {DEBUG: Starting logging for valabind}" invoked from within "catch "tcl::puts $args"" Error: Unable to upgrade port: 1 DEBUG: Rebuilding port valabind finished with status 1 Error rebuilding valabind while executing "error "Error rebuilding $portname"" (procedure "revupgrade_scanandrebuild" line 395) invoked from within "revupgrade_scanandrebuild broken_port_counts $opts" (procedure "macports::revupgrade" line 5) invoked from within "macports::revupgrade $opts" (procedure "action_revupgrade" line 2) invoked from within "action_revupgrade $action $portlist $opts" (procedure "action_upgrade" line 25) invoked from within "$action_proc $action $portlist [array get global_options]" (procedure "process_cmd" line 103) invoked from within "process_cmd $remaining_args" invoked from within "if { [llength $remaining_args] > 0 } { # If there are remaining arguments, process those as a command set exit_status [process_cmd $remaining..." (file "/opt/local/bin/port" line 5268)

我现在尝试使用经典代码进行测试:sudo port install php55-pear

结果更改但始终失败:



--->  Computing dependencies for php55-pear
--->  Cleaning php55-pear
--->  Updating database of binaries
--->  Scanning binaries for linking errors               
--->  Found 19 broken file(s), matching files to ports   
--->  Found 7 broken port(s), determining rebuild order
--->  Rebuilding in order
     gcr @3.10.1 
     ushare @1.1a 
     valabind @0.8.0 
     wget @1.14 +ssl
     geocode-glib @3.10.0 
     strigi @0.7.8 
     nepomuk-core @4.12.5 
--->  Fetching archive for libusb
--->  Attempting to fetch libusb-1.0.19_0.darwin_14.x86_64.tbz2 from http://lil.fr.packages.macports.org/libusb
--->  Attempting to fetch libusb-1.0.19_0.darwin_14.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/libusb
--->  Installing libusb @1.0.19_0
--->  Cleaning libusb
--->  Deactivating libusb @1.0.18_0
--->  Cleaning libusb
--->  Activating libusb @1.0.19_0
--->  Cleaning libusb
--->  Fetching archive for libusb-compat
--->  Attempting to fetch libusb-compat-0.1.5_0.darwin_14.x86_64.tbz2 from http://lil.fr.packages.macports.org/libusb-compat
--->  Attempting to fetch libusb-compat-0.1.5_0.darwin_14.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/libusb-compat
--->  Computing dependencies for libusb-compat
--->  Unable to uninstall libusb-compat @0.1.5_0, the following ports depend on it:
--->  	gnupg @1.4.13_1
--->  	gnupg @1.4.16_0
Warning: Uninstall forced.  Proceeding despite dependencies.
--->  Deactivating libusb-compat @0.1.5_0
--->  Unable to deactivate libusb-compat @0.1.5_0, the following ports depend on it:
--->  	gnupg @1.4.16_0
Warning: Deactivate forced.  Proceeding despite dependencies.
--->  Cleaning libusb-compat
--->  Uninstalling libusb-compat @0.1.5_0
--->  Cleaning libusb-compat
--->  Computing dependencies for libusb-compat
--->  Installing libusb-compat @0.1.5_0
--->  Activating libusb-compat @0.1.5_0
--->  Cleaning libusb-compat
--->  Computing dependencies for gnupg
--->  Fetching archive for gnupg
--->  Attempting to fetch gnupg-1.4.19_0.darwin_14.x86_64.tbz2 from http://lil.fr.packages.macports.org/gnupg
--->  Attempting to fetch gnupg-1.4.19_0.darwin_14.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/gnupg
--->  Attempting to fetch gnupg-1.4.19_0.darwin_14.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/gnupg
--->  Fetching distfiles for gnupg
--->  Attempting to fetch gnupg-1.4.19.tar.bz2 from http://lil.fr.distfiles.macports.org/gnupg
--->  Verifying checksums for gnupg                                                  
--->  Extracting gnupg
--->  Applying patches to gnupg
--->  Configuring gnupg
--->  Building gnupg
--->  Staging gnupg into destroot
--->  Installing gnupg @1.4.19_0
--->  Cleaning gnupg
--->  Computing dependencies for gnupg
--->  Deactivating gnupg @1.4.16_0
--->  Cleaning gnupg
--->  Activating gnupg @1.4.19_0
--->  Cleaning gnupg
--->  Computing dependencies for gcr
--->  Fetching archive for gcr
--->  Attempting to fetch gcr-3.16.0_0.darwin_14.x86_64.tbz2 from http://lil.fr.packages.macports.org/gcr
--->  Attempting to fetch gcr-3.16.0_0.darwin_14.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/gcr
--->  Installing gcr @3.16.0_0
--->  Cleaning gcr
--->  Computing dependencies for gcr
--->  Deactivating gcr @3.10.1_1
--->  Cleaning gcr
--->  Activating gcr @3.16.0_0
--->  Cleaning gcr
--->  Computing dependencies for ushare
--->  Cleaning ushare
--->  Computing dependencies for valabind
--->  Building valabind
Error: org.macports.build for port valabind returned: command execution failed
Please see the log file for port valabind for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_valabind/valabind/main.log
Error: Unable to upgrade port: 1
Error rebuilding valabind
    while executing
"error "Error rebuilding $portname""
    (procedure "revupgrade_scanandrebuild" line 395)
    invoked from within
"revupgrade_scanandrebuild broken_port_counts $opts"
    (procedure "macports::revupgrade" line 5)
    invoked from within
"macports::revupgrade $opts"
    (procedure "action_revupgrade" line 2)
    invoked from within
"action_revupgrade $action $portlist $opts"
    (procedure "action_target" line 96)
    invoked from within
"$action_proc $action $portlist [array get global_options]"
    (procedure "process_cmd" line 103)
    invoked from within
"process_cmd $remaining_args"
    invoked from within
"if { [llength $remaining_args] > 0 } {

    # If there are remaining arguments, process those as a command
    set exit_status [process_cmd $remaining..."
    (file "/opt/local/bin/port" line 5268)




答案 3 :(得分:0)

您的梨装置取决于此(损坏)部件。

--->  Found 7 broken port(s), determining rebuild order
--->  Rebuilding in order
      gcr @3.10.1 
      ushare @1.1a 
      valabind @0.8.0 
      wget @1.14 +ssl
      geocode-glib @3.10.0 
      strigi @0.7.8 
      nepomuk-core @4.12.5 

根据您的错误结果,它会在更新valabind时停止。 如果你尝试会发生什么:

port selfupdate
sudo port install -d -R valabind

如果valabind是您php install的依赖项并且具有自身的依赖关系,则port无法处理此问题。根据{{​​1}}页面进行安装或升级:

man port

同时检查valabind here的主页。

调试的好主意是 -R also upgrade dependents (only affects upgrade) - note that this does not upgrade dependents' dependencies 选项。

port -y

答案 4 :(得分:0)

我终于通过两系列操作解决了我的问题

  1. with brew
  2. brew tap homebrew/dupes brew tap homebrew/versions brew tap mcuadros/homebrew-hhvm brew update cd $(brew --repository) git reset --hard FETCH_HEAD brew update brew install hhvm --HEAD brew install ocaml brew link dwarfutils ocaml brew unlink libdwarf brew link dwarfutils ocaml brew link --overwrite ocaml brew link dwarfutils ocaml brew install hhvm --HEAD

    之后...

    1. 使用macports

      sudo port -v selfupdate port upgrade outdated sudo port upgrade outdated sudo port search ImageMagick sudo port install ImageMagick port selfupdate sudo port selfupdate

    2. 一个重要的细节,MacPorts在此次更新中从版本2.3.3升级到版本2.3.4

      MacPort现在再次投入使用。