`
cocos
  • 浏览: 393688 次
  • 性别: Icon_minigender_1
  • 来自: 福州
社区版块
存档分类
最新评论

php编译错误Note that the MySQL client library is not bundled anymore!

阅读更多

 本次安装参数:

 

 

rpm -ivh MySQL-devel-community-5.1.57-1.sles10.x86_64.rpm 

export PATH=/usr/local/services/libxml2-2.7.2/bin:$PATH    

cp /usr/lib64/mysql/libmysqlclient.so.15.0.0  /usr/lib/libmysqlclient.so 

 

./configure --prefix=/usr/local/services --with-mysql=/usr/include/mysql/ --with-curl=/usr/local/services/curl-7.15.0 --with

 

-libxml-dir=/usr/local/services/libxml2-2.7.2  --enable-fastcgi --enable-fpm --with-mcrypt=/usr/local/services/libmcrypt-

 

2.5.8 --with-zlibwhere

 

make 

make install


 

/////////////////////////////////////

 

php编译错误Note that the MySQL client library is not bundled anymore! 

##### install php

##download http://jp.php.net/downloads.php

wget http://jp.php.net/get/php-5.2.9.tar.gz/from/this/mirror

rpm -qa | grep php

rpm -e php-ldap-5.1.6-20.el5 php-5.1.6-20.el5

 

tar -zxvf php-5.2.9.tar.gz

cd php-5.2.9

./configure --prefix=/usr/local/php --with-mysql=/usr/local/src/mysql-5.1.14-beta-linux-i686-glibc23/include/ --with-

 

apxs2=/usr/local/apache2/bin/apxs

到最后报错:

configure: 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. 查看系统有没有安装mysql header

find / -name mysql.h

如果有。请指定--with-mysql=/跟正常路径。

如果没有。请看下一步。

 

2.redhat安装

rpm -ivh MySQL-devel-community-5.1.33-0.rhel5.i386.rpm

 

3.最后一步php的配置选项添加--with-mysql=/usr即可!

 

完整的编译参数:

 

/configure --with-apxs2=/usr/local/apache2/bin/apxs --includedir=/usr/local/include --enable-force-cgi-redirect --enable-

 

mailparse --enable-mbstring --enable-mbregex --enable-mbstr-enc-trans --enable-trans-sid --enable-shmop --enable-exif --with

 

-gd --with-jpeg-dir=/usr/local/lib/ --with-png-dir=/usr/local/lib/ --with-zlib-dir=/usr/include/ --enable-gd-native-ttf --

 

enable-gd-jis-conv --with-pgsql=/usr/local/pgsql --with-mysql=/usr/local/mysql --enable-sockets --enable-ftp --with-

 

curl=/usr/local/ --enable-memcache --enable-openssl   

 

 

 

 

 

*********************************

 

 

 

 

分享到:
评论

相关推荐

    Senfore_DragDrop_v4.1

    Several user have reported that they occasionally get one or more of the following compiler errors: [C++ Error] DragDropFile.hpp(178): E2450 Undefined structure '_FILEDESCRIPTORW' [C++ Error] ...

    简易 memcache 图形化管理器

    that is bundled with this package in the file LICENSE, and is available through the world-wide-web at the following url: http://www.php.net/license/3_0.txt. If you did not receive a copy of the PHP ...

    MySQL V5.5帮助文档

    2.4.5. Using the Bundled MySQL on Mac OS X Server 2.5. Installing MySQL on Linux 2.5.1. Installing MySQL from RPM Packages on Linux 2.5.2. Installing MySQL on Linux using Native Package Manager 2.6. ...

    RSATool2.exe

    The MIRACL library is -not- free to use in commercial programs. Even worse, the license fees are pretty high. Alterantively you can, of course, use any other bignumber library - like Freelip for ...

    BURNINTEST--硬件检测工具

    <For more details see the online help> Status ====== This is a shareware program. This means that you need to buy it if you would like to continue using it after the evaluation period. Installation...

    au3反编译源码

    downloaded the original from the AutoIT site archive and now compare the original stub aka AutoItSC.bin with your dumped one(or more in detail the .text section after you applied LordPE PE-split) and ...

    rubyinstaller-devkit-2.5.3-1-x64.exe

    It is bundled into the Ruby+Devkit installer version as a selectable component, so that no additional downloads/installs are required. When using the Ruby without Devkit version, the MSYS2 Devkit can...

    A C++11 library for serialization

    cereal is a header-only C++11 serialization library. cereal takes arbitrary data types and reversibly turns them into different representations, such as compact binary encodings, XML, or JSON. cereal ...

    算法设计(英文文字版)by Jon_Kleinberg & Eva_Tardos

    These two components interact: the more comfortable one is with the full array of possible design techniques, the more one starts to recognize the clean formulations that lie within messy problems ...

    Assembly Language Succinctly Syncfusion 2013

    s Visual Studio This is a versatile and very powerful assembly language IDE This book is targeted at programmers with a good foundation in C++ and a desire to program native assembly using the Visual ...

    tomcat-7_API_帮助文档

    However, the application must also ensure that the library is not loaded more than once. If the above code were placed in a class inside the web application (i.e. under /WEB-INF/classes or /WEB-INF/...

    利用micemeat实现mapreduce

    At the same time, this inefficiency is likely to amplify any errors you make in formulating the map and reduce functions for the task at hand. So if your code starts taking too long, say more than an...

    esbuild-node-modules

    > node_modules/cache-manager/lib/caching.js:28:21: warning: This call to "require" will not be bundled because the argument is not a string literal (surround with a try/catch to silence this warning)...

    Learn Java for Android Development 3rd Edition mobi格式

    Learn Java for Android Development, Third Edition, is an update of...***NOTE: Appendix C is not included in the physical book. Instead, it's distributed as a PDF file that's bundled with the book's code.

    Learning Raspbian(PACKT,2015)

    Learn about the XFCE desktop environment that is bundled with Raspbian Experiment with the different ways you can install software in Raspbian Grasp the basics of the Linux command prompt

    IntraWeb XIV 14.2.3 带key

    Please make sure you removed the Bundled Edition of IntraWeb that is included with your RAD Studio / Delphi / C++ Builder. If you still did not remove the Bundled Edtion, please access the link below...

    DirectShowSamples

    with the DirectShowLib library, but as of version 1.4, they have been split out to this separate package. We have removed the build files for vs2003 in this release. vs2005 has been available (for ...

    starftp.exe

    The SOFTWARE may not be bundled or distributed with any other package without written permission of the author. The SOFTWARE is protected by copyright laws and international copyright treaties, as ...

    Crystal.Reports.10 经典教程

    Crystal Reports 10 is the latest in a long and celebrated series of report writers for personal computers. Crystal Reports is by far the best-selling report writer package in the world, even though ...

Global site tag (gtag.js) - Google Analytics