编译安装PDO_MYSQL拓展模块,总是提示No such file or directory
2014-11-22 16:00
435 查看
编译安装PDO_MYSQL拓展模块,总是提示
这是因为这是因为在编译时需要 MySQL 的头的文件。而它按默认搜索找不到头文件的位置,所以才出现这个问题。通过软连接把MySQL头文件对应到/usr/local/include/下就好
比如你的MySQL安装文件位于/usr/local/mysql,那么就执行以下命令:
# ln -s /usr/local/mysql/include/* /usr/local/include/
比如你的MySQL安装文件位于/usr/local/mysql,那么就执行以下命令:
# ln -s /usr/local/mysql/include/* /usr/local/include/
相关文章推荐
- ubuntu 10.10编译安装mysql 提示libtoolt': No such file or directory的解决方法
- Centos7与Fedora24安装mysql后无法启动,提示 Unit mysql.service failed to load:No such file or directory
- Qt安装后编译实例的错误提示“GL/gl.h: No such file or directory”
- Centos7与Fedora24安装mysql后无法启动,提示 Unit mysql.service failed to load:No such file or directory
- Centos7与Fedora24安装mysql后无法启动,提示 Unit mysql.service failed to load:No such file or directory
- Centos安装mysql后无法启动,提示 Unit mysql.service failed to load:No such file or directory
- MySQL安装编译时,/bin/rm: cannot remove `libtoolT': No such file or directory
- linux安装了mysql 但是编译报错 mysql.h: No such file or directory
- ubuntu安装了mysql 但是编译报错 mysql.h: No such file or directory
- ubuntu安装了mysql 但是编译报错 mysql.h: No such file or directory
- ubuntu12.04 错误:phonon: No such file or directory; phonon模块的安装
- redmine安装时 No such file or directory /tmp/mysql.sock
- 10g安装提示“libXp.so.6: cannot open shared object file: No such file or directory ”
- PHP imagick-3.1.0RC2无法安装,提示fatal error: wand/MagickWand.h: No such file or directory 解决方法
- 内核编译时提示错误error: sys/types.h: No such file or directory
- Mysql安装:/bin/rm: cannot remove `libtoolt': No such file or directory
- Ubuntu 10.04下安装OpenCV及编译一个简单例程(找不到头文件的问题:error: cv.h: No such file or directory )
- linux 安装 VTK 提示libvtkNetCDF_cxx.so: cannot open shared object file: No such file or directory 的解决办法
- Mysql安装:/bin/rm: cannot remove `libtoolt': No such file or directory
- 用xStart安装oracle,提示:/usr/X11R6/bin/xterm:No such file or directory 解决方法