我正在尝试按以下方式安装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
让我知道我可以尝试什么!
答案 0 :(得分:1)
您可能需要通过--extra-lib-dirs=/usr/local/lib --extra-include-dirs=/usr/local/include
。