Я пытаюсь установить пакет 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
Дайте мне знать, что я могу попробовать!