In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
What if mysql config is missing? This problem may be often seen in our daily study or work. I hope you can gain a lot from this question. The following is the reference content that the editor brings to you, let's take a look at it!
The missing solution for mysql config: first use to check the installation of mysql; then remove the existing installation package; then download the rpm file for 64bit; and finally reuse "rpm-ivh MySQL-devel-5.5.16-1.linux." Just install it.
MySQL missing mysql_config file
Question:
The django-sentry log server needs to be arranged in the work. Pip install mysql-python on centos-6.4, the error report is as follows
[sentry@kjtest111 mysql-python] $pip install mysql-pythonDownloading/unpacking mysql-python Running setup.py egg_info for package mysql-python sh: / usr/bin/mysql_config: No such file or directory Traceback (most recent call last): File ", line 16, in File" / tmp/pip-build-sentry/mysql-python/setup.py ", line 18, in metadata, options = get_config () File" setup_posix.py ", line 43 In get_config libs = mysql_config ("libs_r") File "setup_posix.py", line 25, in mysql_config raise EnvironmentError ("% s not found"% (mysql_config.path,)) EnvironmentError: / usr/bin/mysql_config not found Complete output from command python setup.py egg_info: sh: / usr/bin/mysql_config: No such file or directoryTraceback (most recent call last): File ", line 16 In File "/ tmp/pip-build-sentry/mysql-python/setup.py", line 18, in metadata, options = get_config () File "setup_posix.py", line 43, in get_config libs = mysql_config ("libs_r") File "setup_posix.py", line 25, in mysql_config raise EnvironmentError ("% s not found"% (mysql_config.path) ) EnvironmentError: mysql_config not found--
Working environment: centOS6.4
Solution:
1. Through the error message, we can see that mysql_config is missing. There should be no mysql_config file under / usr/bin/. The online solution is apt-get install libmysqlclient-dev, but apt-get is the network installation command of Debian and Ubuntu series, and yum is Redhat, Centos and Fedora are network installation commands. Then we found that mysql-devel should be installed on Centos.
2. Yum install mysql-devel, a conflict was found and an error was reported as follows:
-- > Running transaction check--- > Package mysql-devel.x86_64 0VOR 5.1.69-1.el6_4 will be installed-- > Processing Dependency: mysql = 5.1.69-1.el6_4 for package: mysql-devel-5.1.69-1.el6mm 4.x86Q64muri-> Running transaction check--- > Package mysql.x86_64 0RV 5.1.69-1.el6_4 will be installed-- > Processing Conflict: MySQL-client-5.5 .30-1.el6.x86_64 conflicts mysql-- > Processing Conflict: MySQL-server-5.5.30-1.el6.x86_64 conflicts mysql-- > Processing Conflict: mysql-5.1.69-1.el6_4.x86_64 conflicts MySQL-- > Finished Dependency ResolutionError: mysql conflicts with MySQL-devel-5.5.30-1.el6.x86_64 You could try using-- skip-broken to work around the problem You could try running: rpm-Va-- nofiles-- nodigest
3. Use rpm-qa | grep mysql to check the installation of mysql
Mysql-devel-5.5.16-1.el6_4.x86_64mysql-client-5.5.16-1.el6_4.x86_64mysql-server-5.5.16-1.el6_4.x86_64
4. Use rpm-e mysql-devel-5.5.16-1.el6_4.x86_64 to remove existing installation packages
5. Using yum install mysql-devel again to find a conflict with the version of mysql-server, mysql-client
6. Go to the Internet to find the same version to download http://downloads.skysql.com/archive/index/p/mysql/v/5.5.16, download 64bit's rpm file, and install using rpm-ivh MySQL-devel-5.5.16-1.linux2.6.x86_64.rpm
7. After the installation is successful, go to the / usr/bin/ directory, find that the mysql_config file has been generated, continue to pip install mysql-python, and complete successfully.
Thank you for reading! After reading the above, do you have a general understanding of what to do about the lack of mysql config? I hope the content of the article will be helpful to all of you. If you want to know more about the relevant articles, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.