001:configure: error: no acceptable c compiler found in $pathsee `config.log
001:
configure: error: no acceptable c compiler found in $path
see `config.log' for more details.
configure failed for srclib/apr
原因:未安装c编译器所致。
解决办法:安装所有的‘开发工具’(因我无法确定是哪个,所以全部安装了)。再执行编译,编译成功!
002:
1) install selinux-policy-targeted-sources from your os vendor
2) add the following two lines to /etc/selinux/targeted/src/policy/domains/program/mysqld.te:
allow mysqld_t random_device_t:chr_file read;
allow mysqld_t urandom_device_t:chr_file read;
3) cd to /etc/selinux/targeted/src/policy and issue the following command:
make load
starting mysql/etc/init.d/mysql: line 159: kill: (3871) - 没有那个进程
[failed]
giving mysqld 2 seconds to start
[root@localhost soft]# netstat -nat
active internet connections (servers and established)
proto recv-q send-q local address foreign address state
tcp 0 0 0.0.0.0:32769 0.0.0.0:* listen
tcp 0 0 0.0.0.0:111 0.0.0.0:* listen
tcp 0 0 127.0.0.1:631 0.0.0.0:* listen
tcp 0 0 127.0.0.1:25 0.0.0.0:* listen
tcp 0 0 :::80 :::* listen
tcp 0 0 :::22 :::* listen
tcp 0 0 :::443 :::* listen
[root@localhost soft]# service mysql status
mysql is not running, but lock exists [失败]
原因:安装前,,未检查到系统默认安装了mysql-devel-4.1.7-4.rhel4.1所致。
解决办法:卸载刚才安装的mysql版本,同时卸载mysql-devel-4.1.7-4.rhel4.1,然后重新安装即可!
最终结果:
[root@localhost soft]# rpm -ivh mysql-server-community-5.0.51a-0.rhel4.i386.rpm
warning: mysql-server-community-5.0.51a-0.rhel4.i386.rpm: v3 dsa signature: nokey, key id 5072e1f5
preparing... ########################################### [100%]
1:mysql-server-community ########################################### [100%]
please remember to set a password for the mysql root user !
to do so, start the server, then issue the following commands:
....................................
......................
starting mysql[ ok ]
giving mysqld 2 seconds to start
[root@localhost soft]# netstat -nat
active internet connections (servers and established)
proto recv-q send-q local address foreign address state
tcp 0 0 0.0.0.0:3306 0.0.0.0:* listen
3306处于监听状态,证明mysql服务端安装成功!