提问者:小点点

安装HHVM失败:未加载libicudata。53.dylib


我尝试在Mac OSX上使用HHVM MacPort安装https://github.com/facebook/hhvm/wiki/Building-and-installing-HHVM-on-OSX-10.10方法(方法:Macport:手工安装)。

  1. sudo端口-v安装autoconf自动机binutils野牛升压clang-3.6 cmake elfool chain gawk google-glog jemalloc libelf libjpeg-turbo libmcrypt libmemcache libpng md5sha1sum ocaml oniguruma5 readline tbb

给出以下结果:

--->  Computing dependencies for autoconf.
--->  Cleaning autoconf
--->  Removing work directory for autoconf
--->  Cleaning automake
--->  Removing work directory for automake
--->  Computing dependencies for binutils.
--->  Cleaning binutils
--->  Removing work directory for binutils
--->  Computing dependencies for bison.
--->  Cleaning bison
--->  Removing work directory for bison
--->  Computing dependencies for boost.
--->  Cleaning boost
--->  Removing work directory for boost
--->  Computing dependencies for clang-3.6.
--->  Cleaning clang-3.6
--->  Removing work directory for clang-3.6
--->  Computing dependencies for cmake.
--->  Cleaning cmake
--->  Removing work directory for cmake
--->  Computing dependencies for elftoolchain.
--->  Cleaning elftoolchain
--->  Removing work directory for elftoolchain
--->  Computing dependencies for gawk.
--->  Cleaning gawk
--->  Removing work directory for gawk
--->  Computing dependencies for google-glog.
--->  Cleaning google-glog
--->  Removing work directory for google-glog
--->  Activating jemalloc @3.6.0_1
x ./
x ./+COMMENT
x ./+CONTENTS
x ./+DESC
x ./+PORTFILE
x ./+STATE
x ./opt/
x ./opt/local/
x ./opt/local/bin/
x ./opt/local/include/
x ./opt/local/lib/
x ./opt/local/share/
x ./opt/local/share/doc/
x ./opt/local/share/man/
x ./opt/local/share/man/man3/
x ./opt/local/share/man/man3/jemalloc.3.gz
x ./opt/local/share/doc/jemalloc/
x ./opt/local/share/doc/jemalloc/jemalloc.html
x ./opt/local/lib/libjemalloc.1.dylib
x ./opt/local/lib/libjemalloc.a
x ./opt/local/lib/libjemalloc.dylib
x ./opt/local/lib/libjemalloc_pic.a
x ./opt/local/include/jemalloc/
x ./opt/local/include/jemalloc/jemalloc.h
x ./opt/local/bin/jemalloc-prof
x ./opt/local/bin/jemalloc.sh
Error: org.macports.activate for port jemalloc returned: Image error: /opt/local/bin/jemalloc.sh already exists and does not belong to a registered port.  Unable to activate port jemalloc. Use 'port -f activate jemalloc' to force the activation.
Please see the log file for port jemalloc for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_jemalloc/jemalloc/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port jemalloc failed

jemalloc:

sudo端口-f激活jemalloc---

激活jemloalloc

sudo端口-f激活jemalloc@3.6.0_1 ---

之后,我运行以下命令:

git克隆https://github.com/facebook/hhvm.git

cd hhvm

git子模块更新--init--递归

没事的。

cmake之后:

cmake \-DCMAKE \-U C \-U编译器=clang-mp-3.6-DCMAKE \-U CXX \-U编译器=clang-mp-3.6-DCMAKE \-U ASM \-U编译器=clang-mp-3.6 \-DCMAKE \-U编译器=clang-mp-3.6 \-DCMAKE \-U C \-U标志=“-ISSYSTEM/opt/local/include”-DCMAKE \-U CXX \-U标志=“-ISSYSTEM/opt/local/include”\-MCRUUTER=0-可修改的可修改的可修改的可修改的可修改的可修改的扩展插件\-IMAGICRUUTER=Off-DMYSU UNIX \-U-USU-SOCK \-U=Off \-AD=“/opt/local/lib/elftoolchain/libdwarf.3.dylib”\-DLIBDWARF\u INCLUDE\u DIRS=“/opt/local/INCLUDE/elftoolchain/”

结果:

-- The ASM compiler identification is unknown
-- Found assembler: /opt/local/bin/clang-mp-3.6
-- Warning: Did not find file Compiler/-ASM
-- Build type not specified: cmake build type Release.
-- Boost version: 1.59.0
-- Found the following Boost libraries:
--   system
--   program_options
--   filesystem
--   context
-- Could NOT find LIBINOTIFY (missing:  LIBINOTIFY_LIBRARY LIBINOTIFY_INCLUDE_DIR) 
-- System PCRE does not have JIT enabled - will use hhvm-third-party/pcre
-- Found libevent: /opt/local/lib/libevent.dylib
-- Found libsqlite3: /opt/local/lib/libsqlite3.dylib
-- Could NOT find DOUBLE_CONVERSION (missing:  DOUBLE_CONVERSION_LIBRARY DOUBLE_CONVERSION_INCLUDE_DIR) 
-- Using third-party bundled double-conversion
-- Found LZ4: /usr/local/lib/liblz4.dylib
-- Could NOT find FastLZ (missing:  FASTLZ_LIBRARY FASTLZ_INCLUDE_DIR) 
-- Using third-party bundled fastlz
-- Found libzip: /opt/local/lib/libzip.dylib 0.11.1
-- Found ICU header files in /opt/local/include
-- Found ICU libraries: /opt/local/lib/libicuuc.dylib
-- Found jemalloc: /opt/local/lib/libjemalloc.dylib
-- Found Intel TBB
-- Looking for dwarf_producer_init
-- Looking for dwarf_producer_init - found
-- Performing Test DW_CONST
-- Performing Test DW_CONST - Success
-- Looking for dwarf_producer_init_c
-- Looking for dwarf_producer_init_c - not found
-- libdwarf uses const char* type
-- libdwarf does not have dwarf_producer_init_c, using dwarf_producer_init
Generating Release build
-- Did not find system RE2
-- Building RE2 from third-party
-- Boost version: 1.59.0
-- Found the following Boost libraries:
--   system
--   program_options
--   filesystem
--   regex
--   context
-- Boost version: 1.59.0
-- Found the following Boost libraries:
--   system
--   thread
-- Boost version: 1.59.0
-- Found the following Boost libraries:
--   thread
--   system
CMake Warning (dev) at CMake/HPHPFunctions.cmake:21 (if):
  Policy CMP0054 is not set: Only interpret if() arguments as variables or
  keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  Quoted variables like "lib" will no longer be dereferenced when the policy
  is set to NEW.  Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
  third-party/thrift/CMakeLists.txt:5 (auto_sources)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Boost version: 1.59.0
-- Found the following Boost libraries:
--   thread
--   system
-- Found libevent: /opt/local/lib/libevent.dylib
-- Found libevent 2.0.9+
-- Found Readline: /opt/local/include
CMake Warning (dev) at third-party/pcre/CMakeLists.txt:770 (GET_TARGET_PROPERTY):
  Policy CMP0026 is not set: Disallow use of the LOCATION target property.
  Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The LOCATION property should not be read from target "pcregrep".  Use the
  target name directly with add_custom_command, or use the generator
  expression $<TARGET_FILE>, as appropriate.

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at third-party/pcre/CMakeLists.txt:773 (GET_TARGET_PROPERTY):
  Policy CMP0026 is not set: Disallow use of the LOCATION target property.
  Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The LOCATION property should not be read from target "pcretest".  Use the
  target name directly with add_custom_command, or use the generator
  expression $<TARGET_FILE>, as appropriate.

This warning is for project developers.  Use -Wno-dev to suppress it.

-- 
-- 
-- PCRE configuration summary:
-- 
--   C compiler ...................... : /opt/local/bin/clang-mp-3.6
--   C++ compiler .................... : /opt/local/bin/clang++-mp-3.6
--   C compiler flags ................ : -isystem/opt/local/include -msse4.2 -w -O3 -DNDEBUG
--   C++ compiler flags .............. : -isystem/opt/local/include -Wall -std=gnu++11 -stdlib=libc++ -fno-omit-frame-pointer -Woverloaded-virtual -Wno-deprecated -Wno-strict-aliasing -Wno-write-strings -Wno-invalid-offsetof -fno-operator-names -Wno-error=array-bounds -Wno-error=switch -Werror=format-security -Wno-unused-result -Wno-sign-compare -Wno-attributes -Wno-maybe-uninitialized -Wno-mismatched-tags -Wno-unknown-warning-option -Wno-return-type-c-linkage -Qunused-arguments -msse4.2 -O3 -DNDEBUG
-- 
--   Build 8 bit PCRE library ........ : ON
--   Build 16 bit PCRE library ....... : OFF
--   Build 32 bit PCRE library ....... : OFF
--   Build C++ library ............... : ON
--   Enable JIT compiling support .... : ON
--   Enable UTF support .............. : ON
--   Unicode properties .............. : ON
--   Newline char/sequence ........... : LF
--   \R matches only ANYCRLF ......... : OFF
--   EBCDIC coding ................... : OFF
--   EBCDIC coding with NL=0x25 ...... : OFF
--   Rebuild char tables ............. : OFF
--   No stack recursion .............. : OFF
--   POSIX mem threshold ............. : 10
--   Internal link size .............. : 2
--   Parentheses nest limit .......... : 250
--   Match limit ..................... : 10000000
--   Match limit recursion ........... : MATCH_LIMIT
--   Build shared libs ............... : OFF
--   Build static libs ............... : ON
--   Build pcregrep .................. : ON
--   Enable JIT in pcregrep .......... : ON
--   Buffer size for pcregrep ........ : 20480
--   Build tests (implies pcretest  .. : ON
--                and pcregrep)
--   Link pcregrep with libz ......... : ON
--   Link pcregrep with libbz2 ....... : ON
--   Link pcretest with libeditline .. : OFF
--   Link pcretest with libreadline .. : ON
--   Support Valgrind .................: OFF
--   Support coverage .................: 
-- 
-- Build type not specified: cmake build type Release.
-- Boost version: 1.59.0
-- Found the following Boost libraries:
--   system
--   program_options
--   filesystem
--   context
-- Could NOT find LIBINOTIFY (missing:  LIBINOTIFY_LIBRARY LIBINOTIFY_INCLUDE_DIR) 
-- System PCRE does not have JIT enabled - will use hhvm-third-party/pcre
-- Found libevent: /opt/local/lib/libevent.dylib
-- Found libsqlite3: /opt/local/lib/libsqlite3.dylib
-- Could NOT find DOUBLE_CONVERSION (missing:  DOUBLE_CONVERSION_LIBRARY DOUBLE_CONVERSION_INCLUDE_DIR) 
-- Using third-party bundled double-conversion
-- Found LZ4: /usr/local/lib/liblz4.dylib
-- Could NOT find FastLZ (missing:  FASTLZ_LIBRARY FASTLZ_INCLUDE_DIR) 
-- Using third-party bundled fastlz
-- Found libzip: /opt/local/lib/libzip.dylib 0.11.1
-- Found ICU header files in /opt/local/include
-- Found ICU libraries: /opt/local/lib/libicuuc.dylib
-- Found jemalloc: /opt/local/lib/libjemalloc.dylib
-- Found Intel TBB
-- Looking for dwarf_producer_init
-- Looking for dwarf_producer_init - found
-- Performing Test DW_CONST
-- Performing Test DW_CONST - Success
-- Looking for dwarf_producer_init_c
-- Looking for dwarf_producer_init_c - not found
-- libdwarf uses const char* type
-- libdwarf does not have dwarf_producer_init_c, using dwarf_producer_init
Generating Release build
-- Warning: Did not find file Compiler/-ASM
-- Found ocamlc: /opt/local/bin/ocamlc
-- Found ocamlc.opt: /opt/local/bin/ocamlc.opt
-- Using built-in JSON parser
-- Building the apache extension.
-- Building the apc extension.
-- Building the array extension.
-- Building the asio extension.
-- Building the Async MySQL extension.
-- Building the bcmath extension.
-- Building the bz2 extension.
-- Building the closure extension.
-- Building the collections extension.
-- Building the ctype extension.
-- Building the curl extension.
-- Building the datetime extension.
-- Building the debugger extension.
-- Building the DOMDocument extension.
-- Building the enum extension.
-- Found ICU header files in /opt/local/include
-- Found ICU libraries: /opt/local/lib/libicuuc.dylib
-- Building the fb extension.
-- Found ICU header files in /opt/local/include
-- Found ICU libraries: /opt/local/lib/libicuuc.dylib
-- Building the fileinfo extension.
-- Building the filter extension.
-- Found GNU FriBidi: /opt/local/lib/libfribidi.dylib
-- Building the fribidi extension.
-- Found GNU FriBidi: /opt/local/lib/libfribidi.dylib
-- Building the gd extension.
-- Building the generator extension.
-- Building the gmp extension.
-- Building the hash extension.
-- Building the hh extension.
-- Building the hh_client extension.
-- Building the Hot Profiler extension.
-- Building the iconv extension.
-- Found ICU header files in /opt/local/include
-- Found ICU libraries: /opt/local/lib/libicuuc.dylib
-- Building the icu extension.
-- Found ICU header files in /opt/local/include
-- Found ICU libraries: /opt/local/lib/libicuuc.dylib
Not building the imagick extension.
-- Building the imap extension.
-- Building the intervaltimer extension.
-- Building the ipc extension.
-- Building the json extension.
-- Building the ldap extension.
-- Building the libxml extension.
-- Building the mail extension.
-- Building the mailparse extension.
-- Building the mbstring extension.
Not building the mcrouter extension.
-- Found mcrypt: /opt/local/lib/libmcrypt.dylib
-- Building the mcrypt extension.
-- Found mcrypt: /opt/local/lib/libmcrypt.dylib
-- Building the memcache extension.
-- Building the memcached extension.
-- Building the MySQL extension.
-- Building the MySQLi extension.
-- Building the objprof extension.
-- Building the odbc extension.
-- Building the openssl extension.
-- Building the pcre extension.
-- Building the pdo extension.
-- Building the pdo_mysql extension.
-- Building the pdo_sqlite extension.
-- Building the phar extension.
-- Building the posix extension.
-- Building the process extension.
-- Building the readline extension.
-- Building the reflection extension.
-- Building the server extension.
-- Building the session extension.
-- Building the simplexml extension.
-- Building the soap extension.
-- Building the sockets extension.
-- Building the spl extension.
-- Building the sqlite3 extension.
-- Building the std extension.
-- Building the stream extension.
-- Building the string extension.
-- Building the thread extension.
-- Building the thrift extension.
-- Building the url extension.
-- Building the wddx extension.
-- Building the xdebug extension.
-- Building the xenon extension.
-- Building the xhprof extension.
-- Building the xml extension.
-- Building the xmlreader extension.
-- Building the xmlwriter extension.
-- Building the xsl extension.
-- Building the zip extension.
-- Building the zlib extension.
CMake Warning (dev) at CMake/HPHPFunctions.cmake:177 (get_target_property):
  Policy CMP0026 is not set: Disallow use of the LOCATION target property.
  Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The LOCATION property should not be read from target "hhvm".  Use the
  target name directly with add_custom_command, or use the generator
  expression $<TARGET_FILE>, as appropriate.

Call Stack (most recent call first):
  hphp/hhvm/CMakeLists.txt:62 (HHVM_INSTALL)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /opt/local/apache2/htdocs/hhvm/hhvm

运行hhvm,结果:

dyld:未加载库:/opt/local/lib/libicudata。53.dylib引用自:/opt/local/bin/hhvm原因:未找到映像跟踪/BPT陷阱:5

利比库达。53.dylib库确实不存在/opt/local/lib/

我不知道如何解决这个问题。


共1个答案

匿名用户

使用此命令哪个hhvm,结果:

本地/bin/hhvm

使用此/opt/local/bin/hhvm,结果:

dyld: Library not loaded: /opt/local/lib/libicudata.53.dylib
  Referenced from: /opt/local/bin/hhvm
  Reason: image not found
Trace/BPT trap: 5

使用此命令otool-L$(hhvm),结果:

/opt/local/bin/hhvm:
    /opt/local/lib/libjpeg.9.dylib (compatibility version 11.0.0, current version 11.0.0)
    /opt/local/lib/libpng16.16.dylib (compatibility version 29.0.0, current version 29.0.0)
    /opt/local/lib/libfreetype.6.dylib (compatibility version 18.0.0, current version 18.2.0)
    /opt/local/lib/libMagickWand-6.Q16.2.dylib (compatibility version 3.0.0, current version 3.0.0)
    /opt/local/lib/libMagickCore-6.Q16.2.dylib (compatibility version 3.0.0, current version 3.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
    /opt/local/lib/mysql55/mysql/libmysqlclient.18.dylib (compatibility version 18.0.0, current version 18.0.0)
    /opt/local/lib/libpcre.1.dylib (compatibility version 4.0.0, current version 4.3.0)
    /opt/local/lib/libicudata.53.dylib (compatibility version 53.0.0, current version 53.1.0)
    /opt/local/lib/libicui18n.53.dylib (compatibility version 53.0.0, current version 53.1.0)
    /opt/local/lib/libicuuc.53.dylib (compatibility version 53.0.0, current version 53.1.0)
    /opt/local/lib/libcurl.4.dylib (compatibility version 8.0.0, current version 8.0.0)
    /opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.1.0)
    /usr/lib/libresolv.9.dylib (compatibility version 1.0.0, current version 1.0.0)
    /opt/local/lib/libjemalloc.1.dylib (compatibility version 0.0.0, current version 0.0.0)
    /opt/local/lib/libevent-2.0.5.dylib (compatibility version 7.0.0, current version 7.9.0)
    /opt/local/lib/libintl.8.dylib (compatibility version 10.0.0, current version 10.2.0)
    /opt/local/lib/libgssapi_krb5.2.2.dylib (compatibility version 2.0.0, current version 2.2.0)
    /opt/local/lib/libbfd-2.24.dylib (compatibility version 0.0.0, current version 0.0.0)
    /opt/local/lib/libtbb.dylib (compatibility version 0.0.0, current version 0.0.0)
    /opt/local/lib/libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
    /opt/local/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
    /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.8)
    /opt/local/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.6)
    /opt/local/lib/libxml2.2.dylib (compatibility version 12.0.0, current version 12.1.0)
    /opt/local/lib/libxslt.1.dylib (compatibility version 3.0.0, current version 3.28.0)
    /opt/local/lib/libexslt.0.dylib (compatibility version 9.0.0, current version 9.17.0)
    /opt/local/lib/libexpat.1.dylib (compatibility version 8.0.0, current version 8.0.0)
    /opt/local/lib/libonig.2.dylib (compatibility version 3.0.0, current version 3.0.0)
    /opt/local/lib/libmcrypt.4.dylib (compatibility version 9.0.0, current version 9.8.0)
    /opt/local/lib/libldap-2.4.2.dylib (compatibility version 11.0.0, current version 11.3.0)
    /opt/local/lib/liblber-2.4.2.dylib (compatibility version 11.0.0, current version 11.3.0)
    /opt/local/lib/libmemcached.11.dylib (compatibility version 12.0.0, current version 12.0.0)
    /opt/local/lib/libsqlite3.0.dylib (compatibility version 9.0.0, current version 9.6.0)
    /opt/local/lib/libzip.2.dylib (compatibility version 4.0.0, current version 4.0.0)
    /opt/local/lib/libedit.0.dylib (compatibility version 1.0.0, current version 1.42.0)
    /usr/lib/libpam.2.dylib (compatibility version 3.0.0, current version 3.0.0)
    /opt/local/lib/elftoolchain/libdwarf.3.dylib (compatibility version 0.0.0, current version 0.0.0)
    /opt/local/lib/libglog.0.dylib (compatibility version 1.0.0, current version 1.0.0)
    /opt/local/lib/libgcc/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.20.0)
    /opt/local/lib/libgcc/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)