Onfigure: error: Cannot find MySQL header files under/usr/local/src/mysql-5.1.14-beta-linux-i686-glibc23/include /.
Note that the MySQL client library is not bundled anymore!
1. check whether the mysql header is installed in the system.
Find/-name mysql. h
If yes. Specify -- with-mysql =/and the normal path.
If not. Please refer to the next step.
There is a line in the php configuration file -- with-mysql =/usr. Prompt during installation:
Configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore.
This is because the mysql header file is not installed during mysql installation, or the path is incorrectly specified, and php cannot find the mysql header file.
Solution.
1. check whether your system has installed the mysql header.
Find/-name mysql. h
If yes. Specify -- with-mysql =/and your normal path.
If not. Please refer to the next step.
Sudo apt-get purge mysql-client mysql-server or
Sudo aptitude remove mysql-server mysql-client
Which packages are available in Mysql,
1. if you install it from the source,
You can use dpkg-l mysql-server or
View dpkg-l mysql-client
/Bin/rm: cannot remove 'libtoolt': No such file or directory solution
Open configure directly, delete the line $ RM "$ Folder File", and run./configure again.
Apache:
If the RPM Package is used for installation, the installation path should be in the/etc/httpd directory.
Apache configuration file:/etc/httpd/conf/httpd. conf
Apache module path:/usr/sbin/apachectl
Web Directory:/var/www/html
If source code is used for installation, it is usually installed in the/usr/local/apache2 directory by default.
Php:
If the RPM Package is used for installation, the installation path should be in the/etc/directory.
Php configuration file:/etc/php. ini
If source code is used for installation, it is usually installed in the/usr/local/lib directory by default.
Php configuration file:/usr/local/lib/php. ini
OR/usr/local/php/etc/php. ini
Mysql:
If the RPM Package is used for installation, the installation path should be in the/usr/share/mysql directory.
Mysqldump file location:/usr/bin/mysqldump
Mysqli configuration file:
/Etc/my. cnf or/usr/share/mysql/my. cnf
The mysql data directory is in the/var/lib/mysql directory.
If source code is used for installation, it is usually installed in the/usr/local/mysql directory by default.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.