容器技术交流

 找回密码
 立即注册
查看: 3956|回复: 2

不太纯的centos求助安装famp!

[复制链接]
发表于 2009-10-26 22:03:51 | 显示全部楼层 |阅读模式
本帖最后由 magic535 于 2009-10-27 00:16 编辑

现在给远方的一台centos5.3安个famp不成功.
主要是之前安过apache+php+mysql rpm 包,很多东东都装了!
现在卸载过,安famp 在libxml就出错跳出!

请问有解决方案吗?

(远方机房不能叫人安系统,能不能删除点东西让它恢复到最小安装的状态?)

问题1,安到libxml出错代码是:
  1. cd . && /bin/sh /root/famp5.1.0/soft/libxml/missing --run aclocal-1.9
  2. aclocal:configure.in:51: warning: macro `AM_PROG_LIBTOOL' not found in library
  3. cd . && /bin/sh /root/famp5.1.0/soft/libxml/missing --run automake-1.9 --gnu
  4. python/Makefile.am:36: Libtool library used but `LIBTOOL' is undefined
  5. python/Makefile.am:36:
  6. python/Makefile.am:36: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
  7. python/Makefile.am:36: to `configure.in' and run `aclocal' and `autoconf' again.
  8. Makefile.am:17: Libtool library used but `LIBTOOL' is undefined
  9. Makefile.am:17:
  10. Makefile.am:17: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
  11. Makefile.am:17: to `configure.in' and run `aclocal' and `autoconf' again.
  12. make: *** [Makefile.in] 閿欒? 1
  13. cd . && /bin/sh /root/famp5.1.0/soft/libxml/missing --run automake-1.9 --gnu
  14. python/Makefile.am:36: Libtool library used but `LIBTOOL' is undefined
  15. python/Makefile.am:36:
  16. python/Makefile.am:36: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
  17. python/Makefile.am:36: to `configure.in' and run `aclocal' and `autoconf' again.
  18. Makefile.am:17: Libtool library used but `LIBTOOL' is undefined
  19. Makefile.am:17:
  20. Makefile.am:17: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
  21. Makefile.am:17: to `configure.in' and run `aclocal' and `autoconf' again.
  22. make: *** [Makefile.in] 閿欒? 1
  23. Libxml 安装不成功!取消后面的安装
  24. Libxml is not installed! Stop to install FAMP.

复制代码


yum install libtool ,成功安libxml!

问题2,到PHP出错
  1. Configuring SAPI modules
  2. checking for AOLserver support... no
  3. checking for Apache 1.x module support via DSO through APXS... no
  4. checking for Apache 1.x module support... no
  5. checking whether to enable Apache charset compatibility option... no
  6. checking for Apache 2.0 filter-module support via DSO through APXS... no
  7. checking for Apache 2.0 handler-module support via DSO through APXS...
  8. Sorry, I cannot run apxs.  Possible reasons follow:
  9. 1. Perl is not installed
  10. 2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
  11. 3. Apache was not built using --enable-so (the apxs usage page is displayed)
  12. The output of /usr/local/apache/bin/apxs follows:
  13. /usr/local/apache/bin/httpd: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory
  14. apxs:Error: Sorry, no shared object support for Apache.
  15. apxs:Error: available under your platform. Make sure.
  16. apxs:Error: the Apache module mod_so is compiled into.
  17. apxs:Error: your server binary `/usr/local/apache/bin/httpd'..
  18. configure: error: Aborting
  19. make: *** 没有指明目标并且找不到 makefile。 停止。
  20. make: *** 没有规则可以创建目标“install”。 停止。
  21. cp: 无法创建一般文件“/usr/local/php/lib/php.ini”: 没有那个文件或目录
  22. chown: 无法访问 “/usr/local/php/lib/php.ini”: 没有那个文件或目录
复制代码
 楼主| 发表于 2009-10-26 23:20:14 | 显示全部楼层
本帖最后由 magic535 于 2009-10-27 00:15 编辑

自行解决问题1!
发表于 2009-10-27 17:52:52 | 显示全部楼层
1、下载最新的CentOS,用最小化方式安装(什么都不选,只安装基本系统);
    2、执行yum update升级一下系统
    3、安装FAMP所需要的软件包。执行:yum install gcc gcc-c++ bzip2 make vixie-cron flex ncurses-devel wget(执行前请确保CentOS已经连上互联网)
    4、解压FAMP,进入解压后的目录(cd famp5.1.0),执行./install.sh安装FAMP(详细的步骤请看后面的内容)
    在CentOS上安装mysql时,可能会停顿一段时间(mysql-test),多等等就过去了
    由于CentOS默认安装了iptables,请注意把20、21、80、8888、20000-30000的端口打开(20000-30000用20000:30000表示)
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|URLOS ( 粤ICP备18087780号 )

GMT+8, 2025-5-11 07:12 , Processed in 0.027822 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表