Skip to content

error mysqlclient C library is missing #31

Closed
@ghiodor

Description

@ghiodor

BUG/PROBLEM REPORT / FEATURE REQUEST

What I did:

Tried to installed Zope 5.8.5 with ZMySQLDA.

What actually happened:

The bin/buildout install breaks complaining it cannot find mysqlclient (C library).

The reason is that ZMySQLDA pulls the latest python mysqlclient (2.2) which is now using pkg-config. The setup of MariaDB (at least in SLES15) does not create mysqlclient.pc file, it creates only libmariadb.pc.

This has already been fixed in mysqlclient, but not yet released, see PyMySQL/mysqlclient#631.

So, for some setups using MariaDB with mysqlclient 2.2, the adapter will break.

Workaround is to copy libmariadb.pc to mysqlclient.pc (in folder /usr/lib64/pkg-config) or wait for a new release of mysqlclient.

What version of Python and Zope/Addons I am using:

Suse SLES 15 SP 5, Python 3.11, Zope 5.8.5, MariaDB 10.6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions