Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[教程] 康盛创想 Linux(基于CentOS的LNMP) 服务器部署标准 白丁简明版

  [复制链接]
Cnhomo 发表于 2010-10-26 14:16:24 | 显示全部楼层
  1. Mysql
  2. 当前稳定版5.0.86
  3. http://dev.mysql.coml/
复制代码
这个地址好像最后多个了“l”。
回复

使用道具 举报

1238552 发表于 2010-10-26 19:36:08 | 显示全部楼层
./configure --prefix=/usr/local/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-http_realip_module --with-http_addition_module --with-http_gzip_static_module --with-http_random_index_module --with-http_stub_status_module --with-http_sub_module --with-http_dav_module
运行之后出错..BD了一下.把解决方法发上来.
1:提示./configure: error: the HTTP rewrite module requires the PCRE library.
需要安装PCRE..
#rpm -ivh pcre-devel-6.6-2.el5_1.7.i386.rpm解决
2:提示:./configure: error: the HTTP cache module requires md5 functions
#yum -y install openssl openssl-devel  解决.
回复

使用道具 举报

1238552 发表于 2010-10-26 19:57:18 | 显示全部楼层
本帖最后由 1238552 于 2010-10-26 20:10 编辑

checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables
See `config.log' for more details.
Libmcrypt里.运行./configure后的出错提示.请问如何解决?


进入软件包管理..安装GCC-C++后解决
回复

使用道具 举报

1238552 发表于 2010-10-26 20:32:32 | 显示全部楼层
本帖最后由 1238552 于 2010-10-26 21:31 编辑

配置PHP的./configure出错.提示:
checking for xml2-config... no
checking for xml-config... no
configure: error: XML configuration could not be found
安装libxml2-dev解决
提示:configure: error: Please reinstall the libcurl distribution -    easy.h should be in <curl-dir>/include/curl/
安装CURL解决
提示:configure: error: libjpeg.(a|so) not found
安装libjpeg开发库解决
提示:configure: error: libjpng.(a|so) not found
安装libpng开发库解决
提示:configure: error: freetype.h not found.
安装freetype解决

PHP-make install时报错
提示: error while loading shared libraries: /usr/local/mysql/lib/libmysqlclient.so.15: cannot restore segment prot after reloc: Permission denied
解决办法:关闭selinux
1、编辑/etc/selinux/config文件,找到SELINUX=enforcing,改为SELINUX=disabled
2、编辑/etc/sysconfig/selinux文件,找到SELINUX=enforcing,改为SELINUX=disabled
3、# chcon -t texrel_shlib_t /usr/local/mysql/lib/libmysqlclient.so.15



回复

使用道具 举报

1238552 发表于 2010-10-26 21:54:55 | 显示全部楼层
本帖最后由 1238552 于 2010-10-26 21:59 编辑

安装Memcache时运行./configure --with-php-config=/usr/local/php/bin/php-config
后提示:
bash: ./configure: 没有那个文件或目录

这个我找不到解决方法.有人知道要怎么处理?
回复

使用道具 举报

1238552 发表于 2010-10-26 22:31:09 | 显示全部楼层
7.启动Nginx和PHP

# mv -f /usr/local/src/fcgi.conf /usr/local/nginx/conf/
提示没有/usr/local/nginx这个目录...彻底被打败了..看来要重头来一次了.!
回复

使用道具 举报

狼毫吴钩 发表于 2010-10-29 17:12:16 | 显示全部楼层
最小 化安装5.5,是不是指安装时默认即可?
回复

使用道具 举报

狼毫吴钩 发表于 2010-10-29 19:01:57 | 显示全部楼层
1238552 发表于 2010-10-26 20:32
配置PHP的./configure出错.提示:
checking for xml2-config... no
checking for xml-config... no

出错。
checking build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
checking target system type... i686-redhat-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make sets $(MAKE)... (cached) yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables
See `config.log' for more details.


运行yum install gcc-c++没有解决。为什么
回复

使用道具 举报

狼毫吴钩 发表于 2010-10-29 19:15:55 | 显示全部楼层
最小化安装的后果,就是一会缺一个包,一会又缺另外一个包。。
回复

使用道具 举报

1238552 发表于 2010-10-29 19:18:52 | 显示全部楼层
本帖最后由 1238552 于 2010-10-29 19:20 编辑

回复 狼毫吴钩 的帖子

那就不清楚了噢.会不会装错C++了?
我第1次安装失败.第2次从头到尾.每个步骤都拉回去看有没出错信息.确保没出错再继续下一步.才安装成功的.

# yum -y install ntp make openssl openssl-devel pcre pcre-devel libpng libpng-devel libjpeg-6b libjpeg-devel-6b freetype freetype-devel gd gd-devel zlib zlib-devel gcc gcc-c++ libXpm libXpm-devel ncurses ncurses-devel libmcrypt libmcrypt-devel libxml2 libxml2-devel imake autoconf automake screen sysstat compat-libstdc++-33 curl curl-devel

这一步很重要.是安装所需的开发包程序的..做这一步要好好检查.我第1次就是没检查这里.很多开发包没安装才一路报错的.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-4-27 23:17 , Processed in 0.097090 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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