Skip to content

Build failure on macOS M1 due to missing foreign libraries (zstd, ssl, crypto) #51

Description

@nattybear

Hello,

I’m trying to build the mysql package from Hackage on macOS with an M1 chip, but the build fails with the following error:

Error: setup: Missing dependencies on foreign libraries:
* Missing (or bad) C libraries: zstd, ssl, crypto
This problem can usually be solved by installing the system packages that
provide these libraries (you may need the "-dev" versions). If the libraries
are already installed but in a non-standard location then you can use the
flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.
If the library files do 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.

I have installed mysql-client, openssl@3, and zstd via Homebrew, and tried passing --extra-include-dirs and --extra-lib-dirs accordingly, but the build still fails.

Could you provide guidance on how to resolve this issue on an M1 Mac? Are there specific versions or flags required for these libraries?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions