无法在 OS X 上为 Haskell 安装 z3 包
Cannot install z3 package for Haskell on OS X
我正尝试按如下方式安装 z3 软件包:
stack install z3 --extra-lib-dirs=/usr/local/bin --extra-include-dirs=/usr/local/bin
这会引发以下错误:
Configuring z3-4.3.1...
Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.3: Missing dependency on a foreign
library:
* Missing (or bad) header file: z3.h
* Missing (or bad) C library: z3
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the
library file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.
If the header file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.
我最初是这样安装z3的:
brew install z3
并通过运行
验证了安装位置
which z3 #=> /usr/local/bin/z3
让我知道我可以尝试什么!
您可能需要通过 --extra-lib-dirs=/usr/local/lib --extra-include-dirs=/usr/local/include
。
我正尝试按如下方式安装 z3 软件包:
stack install z3 --extra-lib-dirs=/usr/local/bin --extra-include-dirs=/usr/local/bin
这会引发以下错误:
Configuring z3-4.3.1...
Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.3: Missing dependency on a foreign
library:
* Missing (or bad) header file: z3.h
* Missing (or bad) C library: z3
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the
library file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.
If the header file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.
我最初是这样安装z3的:
brew install z3
并通过运行
验证了安装位置which z3 #=> /usr/local/bin/z3
让我知道我可以尝试什么!
您可能需要通过 --extra-lib-dirs=/usr/local/lib --extra-include-dirs=/usr/local/include
。