一、准备 环境 : 64 位 ubuntu12.10 服务器环境 : Nginx1.3.7 PHP 版本 : 5.3.18 ( PHP 更新还是相当的频繁啊) 二、安装 根据我之前的一篇文章( http://www.cnblogs.com/xiaoyaoxia/archive/2012/02/02/2336305.html )安装 php 环境的依赖关系,然后
一、准备
环境:64位ubuntu12.10
服务器环境:Nginx1.3.7
PHP版本:5.3.18(PHP更新还是相当的频繁啊)
二、安装
根据我之前的一篇文章(http://www.cnblogs.com/xiaoyaoxia/archive/2012/02/02/2336305.html)安装php环境的依赖关系,然后执行配置,但是这次却不同的是爆出了一个新的错误,错误信息如下:
错误一:
configure: error: libXpm.(a|so) not found.
可是这个依赖已经安装了,于是赶紧google,发现说类库文件找不到,但是网上的文章中都是说只要安装了依赖就能执行,可是我却还是报这个错误,直到搜到这个http://community.itbbs.cn/thread/21506,上面说在/usr/lib/x86_64-linux-gnu/这个目录下,赶紧看了下,果然在,创建了软链接,
<span>1</span> sudo ln -s /usr/lib/x86_64-linux-gnu/libXpm.so /usr/lib/ <span>2</span> sudo ln -s /usr/lib/x86_64-linux-gnu/libXpm.so.4 /usr/lib/ <span>3</span> sudo ln -s /usr/lib/x86_64-linux-gnu/libXpm.so.4.11.0 /usr/lib/
再次执行./configure就能通过了.
错误二:
configure: error: Cannot find libmysqlclient under /usr.
Note that the MySQL client library is not bundled anymore!
这个是遇到的第二个新问题,而网上找到的此类问题的解决方案,都是说将/usr/lib64/下的对应文件建立软链接到/usr/lib下,或是,直接将./configure需要使用的lib目录指定到/usr/lib64,不过ubuntu12.10中却没有这个目录(/usr/lib64),于是我想起命令:
<span>1</span> find / -name <span>"</span><span>libmysqlclient.so.*'</span>
结果找到:
<span>1</span> /usr/lib/x86_64-linux-gnu/libXpm.so.4.11.0 <span>2</span> /usr/lib/ x86_64-linux-gnu/libXpm.so.4
还是在/usr/lib/ x86_64-linux-gnu目录下,同样建立了软链接过去:
<span>1</span> sudo ln -s /usr/lib/x86_64-linux-gnu/libXpm.so.4.11.0 /usr/lib/ 2 sudo ln -s /usr/lib/ x86_64-linux-gnu/libXpm.so.4 /usr/lib/
再次./configure就能看到OK了,接下来的编译安装,都没有再爆出新问题。
三、总结
其实这些问题在网上都或多或少都能找到解决方案,但是可能因为系统的不同或是升级(比如ubuntu12.10中没有/usr/lib64目录),可能导致一些解决方案看似行不通了,其实只要多动动就好了,以此自勉。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

Dreamweaver Mac version
Visual web development tools

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.