![使用 brew 安装后,在 macOS 上手动构建 Ardour 时缺少 libarchive](https://linux22.com/image/1515685/%E4%BD%BF%E7%94%A8%20brew%20%E5%AE%89%E8%A3%85%E5%90%8E%EF%BC%8C%E5%9C%A8%20macOS%20%E4%B8%8A%E6%89%8B%E5%8A%A8%E6%9E%84%E5%BB%BA%20Ardour%20%E6%97%B6%E7%BC%BA%E5%B0%91%20libarchive.png)
我只是想在 macOS Sierra 上手动构建 Ardour。我正在使用这个官方手册。我在./waf configure
。这就是我得到的:
$ ./waf configure
Setting top to : /Users/me/GitRepos/GitHub/5.5
Setting out to : /Users/me/GitRepos/GitHub/5.5/build
Checking for 'gcc' (c compiler) : /usr/bin/gcc
Checking for 'g++' (c++ compiler) : /usr/bin/g++
Global Configuration
* Install prefix : /usr/local
* Debuggable build : True
* Build documentation : False
Ardour Configuration
* Will build against private GTK dependency stack : no
* Will use explicit linkage against libintl in /Users/me/gtk/inst : yes
* Will build against private Ardour dependency stack : no
No Carbon support available for this build
Checking for function dlopen : yes
Checking for boost library >= 1.39 : ok
Checking for program pkg-config : /usr/local/bin/pkg-config
Checking for 'glib-2.0' >= 2.28 : yes
Checking for 'gthread-2.0' >= 2.2 : yes
Checking for 'glibmm-2.4' >= 2.32.0 : yes
Checking for 'sndfile' >= 1.0.18 : yes
Checking for 'giomm-2.4' >= 2.2 : yes
Checking for 'libcurl' >= 7.0.0 : yes
Checking for 'libarchive' >= 3.0.0 : not found
The configuration failed
(complete log in /Users/me/GitRepos/GitHub/5.5/build/config.log)
$ brew install libarchive
Updating Homebrew...
Warning: libarchive-3.2.2 already installed
您对如何继续安装有什么想法吗?我已经通过 brew 安装了其他程序,例如 libcurl、glibmm:
==> Installing dependencies for glibmm: libsigc++
==> Installing dependencies for libsndfile: flac, libogg, libvorbis
==> Installing libsndfile
etc.
为什么安装时看不到 libarchive-3.2.2 已安装?谢谢您的回复!
编辑:使用port
相同情况后:
$ sudo port install libarchive
Password:
---> Computing dependencies for libarchive
---> Dependencies to be installed: bzip2 libiconv libxml2 xz gettext expat ncurses zlib lzo2 openssl
---> Fetching archive for bzip2
---> Attempting to fetch bzip2-1.0.6_0.darwin_16.x86_64.tbz2 from http://nue.de.packages.macports.org/bzip2
---> Attempting to fetch bzip2-1.0.6_0.darwin_16.x86_64.tbz2.rmd160 from http://nue.de.packages.macports.org/bzip2
---> Installing bzip2 @1.0.6_0
---> Activating bzip2 @1.0.6_0
---> Cleaning bzip2
---> Fetching archive for libiconv
---> Attempting to fetch libiconv-1.14_0.darwin_16.x86_64.tbz2 from http://nue.de.packages.macports.org/libiconv
---> Attempting to fetch libiconv-1.14_0.darwin_16.x86_64.tbz2.rmd160 from http://nue.de.packages.macports.org/libiconv
---> Installing libiconv @1.14_0
---> Activating libiconv @1.14_0
---> Cleaning libiconv
---> Fetching archive for expat
---> Attempting to fetch expat-2.2.0_0.darwin_16.x86_64.tbz2 from http://nue.de.packages.macports.org/expat
---> Attempting to fetch expat-2.2.0_0.darwin_16.x86_64.tbz2.rmd160 from http://nue.de.packages.macports.org/expat
---> Installing expat @2.2.0_0
---> Activating expat @2.2.0_0
---> Cleaning expat
---> Fetching archive for ncurses
---> Attempting to fetch ncurses-6.0_0.darwin_16.x86_64.tbz2 from http://nue.de.packages.macports.org/ncurses
---> Attempting to fetch ncurses-6.0_0.darwin_16.x86_64.tbz2.rmd160 from http://nue.de.packages.macports.org/ncurses
---> Installing ncurses @6.0_0
---> Activating ncurses @6.0_0
---> Cleaning ncurses
---> Fetching archive for gettext
---> Attempting to fetch gettext-0.19.8.1_0.darwin_16.x86_64.tbz2 from http://nue.de.packages.macports.org/gettext
---> Attempting to fetch gettext-0.19.8.1_0.darwin_16.x86_64.tbz2.rmd160 from http://nue.de.packages.macports.org/gettext
---> Installing gettext @0.19.8.1_0
---> Activating gettext @0.19.8.1_0
---> Cleaning gettext
---> Fetching archive for xz
---> Attempting to fetch xz-5.2.2_0.darwin_16.x86_64.tbz2 from http://nue.de.packages.macports.org/xz
---> Attempting to fetch xz-5.2.2_0.darwin_16.x86_64.tbz2.rmd160 from http://nue.de.packages.macports.org/xz
---> Installing xz @5.2.2_0
---> Activating xz @5.2.2_0
---> Cleaning xz
---> Fetching archive for zlib
---> Attempting to fetch zlib-1.2.8_0.darwin_16.x86_64.tbz2 from http://nue.de.packages.macports.org/zlib
---> Attempting to fetch zlib-1.2.8_0.darwin_16.x86_64.tbz2.rmd160 from http://nue.de.packages.macports.org/zlib
---> Installing zlib @1.2.8_0
---> Activating zlib @1.2.8_0
---> Cleaning zlib
---> Fetching archive for libxml2
---> Attempting to fetch libxml2-2.9.4_0.darwin_16.x86_64.tbz2 from http://nue.de.packages.macports.org/libxml2
---> Attempting to fetch libxml2-2.9.4_0.darwin_16.x86_64.tbz2.rmd160 from http://nue.de.packages.macports.org/libxml2
---> Installing libxml2 @2.9.4_0
---> Activating libxml2 @2.9.4_0
---> Cleaning libxml2
---> Fetching archive for lzo2
---> Attempting to fetch lzo2-2.09_0.darwin_16.x86_64.tbz2 from http://nue.de.packages.macports.org/lzo2
---> Attempting to fetch lzo2-2.09_0.darwin_16.x86_64.tbz2.rmd160 from http://nue.de.packages.macports.org/lzo2
---> Installing lzo2 @2.09_0
---> Activating lzo2 @2.09_0
---> Cleaning lzo2
---> Fetching archive for openssl
---> Attempting to fetch openssl-1.0.2j_0.darwin_16.x86_64.tbz2 from http://nue.de.packages.macports.org/openssl
---> Attempting to fetch openssl-1.0.2j_0.darwin_16.x86_64.tbz2.rmd160 from http://nue.de.packages.macports.org/openssl
---> Installing openssl @1.0.2j_0
---> Activating openssl @1.0.2j_0
---> Cleaning openssl
---> Fetching archive for libarchive
---> Attempting to fetch libarchive-3.2.2_0.darwin_16.x86_64.tbz2 from http://nue.de.packages.macports.org/libarchive
---> Attempting to fetch libarchive-3.2.2_0.darwin_16.x86_64.tbz2.rmd160 from http://nue.de.packages.macports.org/libarchive
---> Installing libarchive @3.2.2_0
---> Activating libarchive @3.2.2_0
---> Cleaning libarchive
---> Updating database of binaries
---> Scanning binaries for linking errors
---> No broken files found.
$ ./waf configure
Setting top to : /Users/me/GitRepos/GitHub/5.5
Setting out to : /Users/me/GitRepos/GitHub/5.5/build
Checking for 'gcc' (c compiler) : /usr/bin/gcc
Checking for 'g++' (c++ compiler) : /usr/bin/g++
Global Configuration
* Install prefix : /usr/local
* Debuggable build : True
* Build documentation : False
Ardour Configuration
* Will build against private GTK dependency stack : no
* Will use explicit linkage against libintl in /Users/me/gtk/inst : yes
* Will build against private Ardour dependency stack : no
No Carbon support available for this build
Checking for function dlopen : yes
Checking for boost library >= 1.39 : ok
Checking for program pkg-config : /usr/local/bin/pkg-config
Checking for 'glib-2.0' >= 2.28 : yes
Checking for 'gthread-2.0' >= 2.2 : yes
Checking for 'glibmm-2.4' >= 2.32.0 : yes
Checking for 'sndfile' >= 1.0.18 : yes
Checking for 'giomm-2.4' >= 2.2 : yes
Checking for 'libcurl' >= 7.0.0 : yes
Checking for 'libarchive' >= 3.0.0 : not found
The configuration failed
(complete log in /Users/me/GitRepos/GitHub/5.5/build/config.log)
$ sudo port install libarchive
---> Computing dependencies for libarchive
---> Cleaning libarchive
---> Scanning binaries for linking errors
---> No broken files found.
答案1
Homebrew 将 libarchive 安装为 keg,因此您需要设置 PKG_CONFIG_PATH。
尝试
export PKG_CONFIG_PATH=/usr/local/Cellar/libarchive/3.2.2/lib/pkgconfig/
在运行./waf configure