搜尋
首頁運維CentOS如何解決在centos下mysql.h找不到

如何解決在centos下mysql.h找不到

Jun 05, 2020 pm 04:00 PM
centos

如何解決在centos下mysql.h找不到

如何解決在centos下mysql.h找不到?

1.yum search mysql //查找mysql的依賴

然後會顯示已安裝和未安裝的依賴庫

[TFTD@localhost /]$ yum search mysql
已加载插件:fastestmirror
mysql-connectors-community                                                                                  | 2.5 kB  00:00:00     
mysql-tools-community                                                                                       | 2.5 kB  00:00:00     
mysql56-community                                                                                           | 2.5 kB  00:00:00     
Determining fastest mirrors
 * base: mirrors.btte.net
 * extras: mirrors.btte.net
 * updates: mirrors.cn99.com
======================================================= N/S matched: mysql ========================================================
MySQL-python.x86_64 : An interface to MySQL
akonadi-mysql.x86_64 : Akonadi MySQL backend support
apr-util-mysql.x86_64 : APR utility library MySQL DBD driver
dovecot-mysql.x86_64 : MySQL back end for dovecot
freeradius-mysql.x86_64 : MySQL support for freeradius
libdbi-dbd-mysql.x86_64 : MySQL plugin for libdbi
mysql-community-bench.x86_64 : MySQL benchmark suite
mysql-community-client.i686 : MySQL database client applications and tools
mysql-community-client.x86_64 : MySQL database client applications and tools
mysql-community-common.i686 : MySQL database common files for server and client libs
mysql-community-common.x86_64 : MySQL database common files for server and client libs
mysql-community-devel.i686 : Development header files and libraries for MySQL database client applications
mysql-community-devel.x86_64 : Development header files and libraries for MySQL database client applications
mysql-community-embedded.x86_64 : MySQL embedded library
mysql-community-embedded.i686 : MySQL embedded library
mysql-community-embedded-devel.x86_64 : Development header files and libraries for MySQL as an embeddable library
mysql-community-embedded-devel.i686 : Development header files and libraries for MySQL as an embeddable library
mysql-community-libs.i686 : Shared libraries for MySQL database client applications
mysql-community-libs.x86_64 : Shared libraries for MySQL database client applications
mysql-community-release.noarch : MySQL repository configuration for yum
mysql-community-test.x86_64 : Test suite for the MySQL database server
mysql-connector-java.noarch : Official JDBC driver for MySQL
mysql-connector-odbc.x86_64 : An ODBC 5.3 driver for MySQL - driver package
mysql-connector-odbc-debuginfo.x86_64 : Debug information for package mysql-connector-odbc
mysql-connector-odbc-setup.x86_64 : An ODBC 5.3 driver for MySQL - setup library
mysql-connector-python.noarch : Standardized MySQL database driver for Python
mysql-connector-python.x86_64 : Standardized MySQL database driver for Python
mysql-connector-python-cext.x86_64 : Standardized MySQL driver for Python with C Extension
mysql-connector-python-debuginfo.x86_64 : Debug information for package mysql-connector-python
mysql-ref-manual-5.6-en-html-chapter.noarch : The MySQL Reference Manual (HTML, English)
mysql-ref-manual-5.6-en-pdf.noarch : The MySQL Reference Manual (PDF, English)
mysql-router.x86_64 : MySQL Router
mysql-router-debuginfo.x86_64 : Debug information for package mysql-router
mysql-shell.x86_64 : Command line shell and scripting environment for MySQL
mysql-shell-debuginfo.x86_64 : Debug information for package mysql-shell
mysql-utilities.noarch : Collection of utilities used for maintaining and administering MySQL servers
mysql-utilities-extra.noarch : Additional files for mysql-utilities
mysql-workbench-community.x86_64 : A MySQL visual database modeling, administration, development and migration tool
mysql-workbench-community-debuginfo.x86_64 : Debug information for package mysql-workbench-community
pcp-pmda-mysql.x86_64 : Performance Co-Pilot (PCP) metrics for MySQL
perl-DBD-MySQL.x86_64 : A MySQL interface for Perl
php-mysql.x86_64 : A module for PHP applications that use MySQL databases
php-mysqlnd.x86_64 : A module for PHP applications that use MySQL databases
qt-mysql.i686 : MySQL driver for Qt's SQL classes
qt-mysql.x86_64 : MySQL driver for Qt's SQL classes
qt3-MySQL.i686 : MySQL drivers for Qt 3's SQL classes
qt3-MySQL.x86_64 : MySQL drivers for Qt 3's SQL classes
qt5-qtbase-mysql.i686 : MySQL driver for Qt5's SQL classes
qt5-qtbase-mysql.x86_64 : MySQL driver for Qt5's SQL classes
redland-mysql.x86_64 : MySQL storage support for Redland
rsyslog-mysql.x86_64 : MySQL support for rsyslog
mariadb.x86_64 : A community developed branch of MySQL
mariadb-devel.i686 : Files for development of MariaDB/MySQL applications
mariadb-devel.x86_64 : Files for development of MariaDB/MySQL applications
mariadb-libs.i686 : The shared libraries required for MariaDB/MySQL clients
mariadb-libs.x86_64 : The shared libraries required for MariaDB/MySQL clients
mysql-community-server.x86_64 : A very fast and reliable SQL database server
==============================================================================================

2.發現一個庫沒安裝,則找到對應庫的名字安裝它

執行:

sudo yum install mysql-community-devel.x86_64

(該庫英文說明Development header files and libraries for MySQL database client applications#)

這庫的功能就是為了提供頭檔的功能。

3.最後再編譯下程式就沒問題了。

相關參考:centOS教學

以上是如何解決在centos下mysql.h找不到的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
CentOS替代方案:哪些Linux分佈正在接管?CentOS替代方案:哪些Linux分佈正在接管?Apr 14, 2025 am 12:11 AM

CentOS的替代方案包括AlmaLinux、RockyLinux和OracleLinux。 1.AlmaLinux提供10年支持,與RHEL兼容。 2.RockyLinux由CentOS創始人發起,確保透明開發。 3.OracleLinux提供穩定性能和10年支持,基本版免費。

Centos的遺產:為什麼停產Centos的遺產:為什麼停產Apr 13, 2025 am 12:12 AM

CentOS被終止是因為RedHat將其重心轉移到CentOSStream,用於加快RHEL的開發週期和推動用戶轉向RHEL。替代方案包括:1.RockyLinux,2.AlmaLinux,3.OracleLinux。選擇替代方案時需考慮兼容性、支持和長期規劃。

從CentOS遷移:最好的方法從CentOS遷移:最好的方法Apr 12, 2025 am 12:13 AM

從CentOS遷移的最佳方法是選擇RockyLinux、AlmaLinux或UbuntuServer。 1)備份數據,2)評估現有系統,3)測試遷移,4)執行遷移,5)驗證和優化,確保系統性能最佳。

Centos的中斷:討論Centos的中斷:討論Apr 11, 2025 am 12:09 AM

CentOS已停止維護,轉向CentOSStream,不再提供適合生產環境的版本。影響包括系統遷移和企業重新評估Linux策略。替代方案有:1.遷移到RHEL,2.轉向Ubuntu或Debian,3.考慮CentOSStream作為測試平台,4.使用AlmaLinux或RockyLinux。建議儘早制定遷移計劃,評估現有系統和團隊需求。

Ansible:基礎架構作為代碼的CentOS自動化Ansible:基礎架構作為代碼的CentOS自動化Apr 10, 2025 am 09:40 AM

使用Ansible可以實現CentOS的自動化管理。具體步驟包括:1)編寫playbook來定義任務,如安裝和配置Apache;2)通過SSH協議執行playbook,確保系統配置的一致性;3)使用條件判斷和循環功能來處理複雜場景;4)優化性能和遵循最佳實踐,如使用異步任務和優化inventory文件。

CENTOS面試問題:ACE您的Linux系統管理員面試CENTOS面試問題:ACE您的Linux系統管理員面試Apr 09, 2025 am 12:17 AM

CentOS面試常見問題及解答包括:1.使用yum或dnf命令安裝軟件包,如sudoyuminstallnginx。 2.通過useradd和groupadd命令管理用戶和組,如sudouseradd-m-s/bin/bashnewuser。 3.使用firewalld配置防火牆,如sudofirewall-cmd--permanent--add-service=http。 4.設置自動更新使用yum-cron,如sudoyuminstallyum-cron並配置apply_updates=yes。

CENTOS故障排除:診斷和解決常見問題CENTOS故障排除:診斷和解決常見問題Apr 08, 2025 am 12:09 AM

在CentOS系統中,如何診斷和解決常見問題?首先,檢查啟動日誌解決系統啟動失敗;其次,檢查網絡配置文件解決網絡問題;最後,使用Yum命令解決軟件包管理問題。通過這些步驟,你可以有效地診斷和解決CentOS系統中的常見問題。

CENTOS安全硬化:保護服務器免受入侵者的侵害CENTOS安全硬化:保護服務器免受入侵者的侵害Apr 07, 2025 am 12:05 AM

CentOS服務器安全加固可以通過以下步驟實現:1.保持系統軟件更新,使用“sudoyumupdate-y”命令;2.禁用不必要的服務,如“sudosystemctldisablecups&&sudosystemctlstopcups”;3.配置SELinux為強制模式,使用“sudosetenforce1&&sudosed-i's/SELINUX=permissive/SELINUX=enforcing/g'/etc/selinux/config”命令;4.定期

See all articles

熱AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover

AI Clothes Remover

用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool

Undress AI Tool

免費脫衣圖片

Clothoff.io

Clothoff.io

AI脫衣器

AI Hentai Generator

AI Hentai Generator

免費產生 AI 無盡。

熱門文章

R.E.P.O.能量晶體解釋及其做什麼(黃色晶體)
3 週前By尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.最佳圖形設置
3 週前By尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.如果您聽不到任何人,如何修復音頻
3 週前By尊渡假赌尊渡假赌尊渡假赌
WWE 2K25:如何解鎖Myrise中的所有內容
4 週前By尊渡假赌尊渡假赌尊渡假赌

熱工具

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

強大的PHP整合開發環境

SublimeText3 英文版

SublimeText3 英文版

推薦:為Win版本,支援程式碼提示!

DVWA

DVWA

Damn Vulnerable Web App (DVWA) 是一個PHP/MySQL的Web應用程序,非常容易受到攻擊。它的主要目標是成為安全專業人員在合法環境中測試自己的技能和工具的輔助工具,幫助Web開發人員更好地理解保護網路應用程式的過程,並幫助教師/學生在課堂環境中教授/學習Web應用程式安全性。 DVWA的目標是透過簡單直接的介面練習一些最常見的Web漏洞,難度各不相同。請注意,該軟體中

SublimeText3漢化版

SublimeText3漢化版

中文版,非常好用

EditPlus 中文破解版

EditPlus 中文破解版

體積小,語法高亮,不支援程式碼提示功能