您的位置:首页 > 数据库 > MySQL

mysql和mod_perl2安装过程中几个问题解决办法

2013-11-08 16:38 621 查看
1.安装mysql过程中报出如下错误:

/usr/local/mysql/bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory

出现问题原因,缺少必要到libaio,在Ubuntu上解决办法如下:

$sudo apt-get install libaio1 libaio-dev

在Fedora和CentOS上解决办法如下:

$yum install libaio

2.使用perl在线安装moda_perl2过程中报出如下错误:

Next we need to know where the 'apxs' script is located. This script

provides a lot of information about the Apache installation, and makes

it easier to find things on your system. Normally it's located in the

same directory as the 'httpd' executable.

If you don't yet have Apache installed you can build Apache against

the Apache source code, but you won't be able to run the test suite (a

very important step). Therefore you may want to install Apache before

proceeding.

Please provide a full path to 'apxs' executable

(press Enter if you don't have it installed):

Please provide the location of the Apache directory:

改变安装方法,下载mod_perl2的源码包,这里安装到mod_perl2版本为2.0.7,依次执行命令如下:

$cd mod_perl-2.0.7

$perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs

然后执行make等安装步骤即可,报错到原因是没有找到apxs,直接告诉安装程序apxs的地址即可,一般都是在apache的安装目录里面。

3.在安装mod_perl2的make阶段报出如下错误:

\

-o mod_perl.so

/usr/bin/ld: cannot find -lperl

collect2: ld returned 1 exit status

make[1]: *** [mod_perl.so] Error 1

make[1]: Leaving directory `/home/bourne/Downloads/mod_perl-2.0.7/src/modules/perl'

make: *** [modperl_lib] Error 2

原因是缺少libperl函数库文件,安装即可:

$sudo apt-get install libperl-dev
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐