AlmaLinux 9.2에 libmysqlclient-dev를 설치하는 방법

AlmaLinux 9.2에 libmysqlclient-dev를 설치하는 방법

설치해야 libmysqlclient-dev하는데 No match for argument: libmysqlclient-dev Error: Unable to find a match: libmysqlclient-dev.

답변1

libmysqlclient-dev데비안 패키지 이름입니다. Almalinux 9에서 libmysqlclient.so헤더 파일을 포함한 MySQL 개발 파일이 필요한 경우재고외부 저장소가 없는 시스템의 경우 다음 명령을 실행합니다.

» dnf whatprovides /usr/include/mysql/mysql.h
mariadb-connector-c-devel-3.2.6-1.el9_0.i686 : Development files for mariadb-connector-c
Repo        : appstream
Matched from:
Filename    : /usr/include/mysql/mysql.h

mariadb-connector-c-devel-3.2.6-1.el9_0.x86_64 : Development files for mariadb-connector-c
Repo        : appstream
Matched from:
Filename    : /usr/include/mysql/mysql.h

32비트 및 64비트 버전의 패키지에 포함된 내용은 다음과 같습니다.

» dnf info mariadb-connector-c-devel
Last metadata expiration check: 1:32:10 ago on Tue Oct 10 08:12:55 2023.
Available Packages
Name         : mariadb-connector-c-devel
Version      : 3.2.6
Release      : 1.el9_0
Architecture : i686
Size         : 55 k
Source       : mariadb-connector-c-3.2.6-1.el9_0.src.rpm
Repository   : appstream
Summary      : Development files for mariadb-connector-c
URL          : http://mariadb.org/
License      : LGPLv2+
Description  : Development files for mariadb-connector-c.
             : Contains everything needed to build against libmariadb.so >=3 client library.

Name         : mariadb-connector-c-devel
Version      : 3.2.6
Release      : 1.el9_0
Architecture : x86_64
Size         : 55 k
Source       : mariadb-connector-c-3.2.6-1.el9_0.src.rpm
Repository   : appstream
Summary      : Development files for mariadb-connector-c
URL          : http://mariadb.org/
License      : LGPLv2+
Description  : Development files for mariadb-connector-c.
             : Contains everything needed to build against libmariadb.so >=3 client library.

설명을 위해 64비트 버전에 포함된 내용은 다음과 같습니다.

» dnf repoquery -l mariadb-connector-c-devel.x86_64
Last metadata expiration check: 1:33:59 ago on Tue Oct 10 08:12:55 2023.
/usr/bin/mariadb_config
/usr/bin/mysql_config
/usr/include/mysql
/usr/include/mysql/errmsg.h
/usr/include/mysql/ma_list.h
/usr/include/mysql/ma_pvio.h
/usr/include/mysql/ma_tls.h
/usr/include/mysql/mariadb
/usr/include/mysql/mariadb/ma_io.h
/usr/include/mysql/mariadb_com.h
/usr/include/mysql/mariadb_ctype.h
/usr/include/mysql/mariadb_dyncol.h
/usr/include/mysql/mariadb_rpl.h
/usr/include/mysql/mariadb_stmt.h
/usr/include/mysql/mariadb_version-x86_64.h
/usr/include/mysql/mariadb_version.h
/usr/include/mysql/mysql
/usr/include/mysql/mysql.h
/usr/include/mysql/mysql/client_plugin.h
/usr/include/mysql/mysql/plugin_auth.h
/usr/include/mysql/mysql/plugin_auth_common.h
/usr/include/mysql/mysql_version.h
/usr/include/mysql/mysqld_error.h
/usr/lib/.build-id
/usr/lib/.build-id/e2
/usr/lib/.build-id/e2/3771d6e086f917cc047fbb24ef416eb66eea29
/usr/lib64/libmariadb.so
/usr/lib64/libmysqlclient.so
/usr/lib64/libmysqlclient_r.so
/usr/lib64/pkgconfig/libmariadb.pc

으로 설치하세요 dnf install mariadb-connector-c-devel.x86_64.

관련 정보