全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 3331|回复: 16
打印 上一主题 下一主题

[已解决] 谢谢各位指点-已解决-俺 是不是 忽忽悠悠 就 瘸 了 ?

[复制链接]
跳转到指定楼层
1#
发表于 2011-1-21 14:08:28 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
已经解决 放出分享希望有人遇到同样问题可以得到答案
根据各位的指点小弟总结了如下
pcre-devel 这个我再发帖前 google 时 看到一个印度啊3 写过 他说 是种方法
但是安了以后还是报错,我对印度啊3 又点小歧视 发现不行 又让我给卸载了 rpm-e
然后再论坛求助 朋友告诉是 gcc 于是我 安了gcc 报错 变了 看下面楼梯
15楼 补充再让我案 pcre-devel
好吧我对国人没气势 gcc 没卸载的情况下 又安了pcre-devel
呵呵 就是啦 2个 都装 ok了 apc 正常安装呵呵
之前2个 单独装 都发生问题 原来2个是情侣 不能分开 呵呵
谢谢各位了

PS俺 没按worldpress 类似程序 装了apc 内存 消耗又 130 变到了240
或许 这个东东 必须在 安装了大型php 动态程序才能显示威力吧呵呵 期待啊

-----------------------------------------------
安装apc 加速php 时 报错。 搜不到答案 不知 这里是否有高手能帮助解答下。。
yum install php-pear

yum install php-devel

yum install httpd-devel

pecl install apc
downloading APC-3.1.6.tgz ...
Starting to download APC-3.1.6.tgz (148,835 bytes)
.................................done: 148,835 bytes
49 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
Enable per request file info about files used from the APC cache [no] : yes
Enable spin locks (EXPERIMENTAL) [no] : yes
building in /var/tmp/pear-build-root/APC-3.1.6
running: /var/tmp/APC/configure --enable-apc-filehits=yes --enable-apc-spinlocks=yes
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... no
checking for gcc... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
ERROR: `/var/tmp/APC/configure --enable-apc-filehits=yes --enable-apc-spinlocks=yes' failed

[ 本帖最后由 yugongtian 于 2011-1-21 15:22 编辑 ]
2#
发表于 2011-1-21 14:11:45 | 只看该作者
貌似是没有安装GCC,不确定
yum install gcc gcc-c++在看看行不行
3#
发表于 2011-1-21 14:12:41 | 只看该作者
没有 gcc ?
4#
 楼主| 发表于 2011-1-21 14:13:47 | 只看该作者
原帖由 tony1999 于 2011-1-21 14:11 发表
貌似是没有安装GCC,不确定
yum install gcc gcc-c++在看看行不行


哦apc 需要 这几个拓展么 ? 网上 查 资料 就 装那几个啊。。。
我的php 目前 拓展

# rpm -qa | grep php
php-common-5.2.16-jason.1
php-pdo-5.2.16-jason.1
php-cli-5.2.16-jason.1
php-5.2.16-jason.1
php-gd-5.2.16-jason.1
php-mcrypt-5.2.16-jason.1
php-xml-5.2.16-jason.1
php-mysql-5.2.16-jason.1
php-pear-1.9.1-1.jason.1
php-devel-5.2.16-jason.1
5#
发表于 2011-1-21 14:14:15 | 只看该作者
checking for cc... no
checking for gcc... no
6#
 楼主| 发表于 2011-1-21 14:14:33 | 只看该作者
gcc 是 神马东东 ? 干啥用啊 ?
7#
发表于 2011-1-21 14:14:49 | 只看该作者
这个是编译器。。。
8#
发表于 2011-1-21 14:15:15 | 只看该作者
gcc不是php的拓展,是编译器
9#
 楼主| 发表于 2011-1-21 14:26:29 | 只看该作者
哦 好的谢谢 按照上面 说的
yum install gcc 后
再次安装。。结果。。。。。。
惨不忍睹啊。。。

pecl install apc
downloading APC-3.1.6.tgz ...
Starting to download APC-3.1.6.tgz (148,835 bytes)
.................................done: 148,835 bytes
49 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
Enable per request file info about files used from the APC cache [no] :
Enable spin locks (EXPERIMENTAL) [no] :
building in /var/tmp/pear-build-root/APC-3.1.6
running: /var/tmp/APC/configure --enable-apc-filehits=no --enable-apc-spinlocks=                                                                             no
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
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 PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/i                                                                             nclude/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/ph                                                                             p/ext/date/lib
checking for PHP extension directory... /usr/lib/php/modules
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate                                                                              PHP parsers.
checking for gawk... gawk
checking whether to enable APC support... yes, shared
checking whether we should enable cache request file info... no
checking whether we should use mmap... yes
checking whether we should use semaphore locking instead of fcntl... no
checking whether we should use pthread mutex locking... yes
pthread mutex's are supported!
checking whether we should use spin locks... no
checking whether we should enable memory protection... no
checking for zend_set_lookup_function_hook... no
checking for sigaction... yes
checking for union semun... no
checking whether we should enable valgrind support... checking for ANSI C header                                                                              files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
yes
checking valgrind/memcheck.h usability... no
checking valgrind/memcheck.h presence... no
checking for valgrind/memcheck.h... no
checking for shm_open in -lrt... yes
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
appending configuration tag "F77" to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /var/tmp/pear-build-root/APC-3.1.6/libtool --mode=compile cc  -I. -I/var                                                                             /tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/                                                                             pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/                                                                             php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext                                                                              -I/usr/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/APC/apc.c                                                                              -o apc.lo
mkdir .libs
cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/inclu                                                                             de -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -                                                                             I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/in                                                                             clude/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp                                                                             /APC/apc.c  -fPIC -DPIC -o .libs/apc.o
In file included from /var/tmp/APC/apc.c:44:
/usr/include/php/ext/pcre/php_pcre.h:29:18: error: pcre.h: No such file or direc                                                                             tory
In file included from /var/tmp/APC/apc.c:44:
/usr/include/php/ext/pcre/php_pcre.h:45: error: expected '=', ',', ';', 'asm' or                                                                              '__attribute__' before '*' token
/usr/include/php/ext/pcre/php_pcre.h:46: error: expected '=', ',', ';', 'asm' or                                                                              '__attribute__' before '*' token
/usr/include/php/ext/pcre/php_pcre.h:52: error: expected specifier-qualifier-lis                                                                             t before 'pcre'
/var/tmp/APC/apc.c:369: error: expected specifier-qualifier-list before 'pcre'
/var/tmp/APC/apc.c: In function 'apc_regex_compile_array':
/var/tmp/APC/apc.c:430: error: 'apc_regex' has no member named 'preg'
/var/tmp/APC/apc.c:430: error: 'apc_regex' has no member named 'preg'
/var/tmp/APC/apc.c:431: error: 'apc_regex' has no member named 'nreg'
/var/tmp/APC/apc.c:431: error: 'apc_regex' has no member named 'nreg'
/var/tmp/APC/apc.c: In function 'apc_regex_match_array':
/var/tmp/APC/apc.c:463: error: 'apc_regex' has no member named 'preg'
/var/tmp/APC/apc.c:463: error: 'apc_regex' has no member named 'preg'
/var/tmp/APC/apc.c:464: error: 'apc_regex' has no member named 'nreg'
/var/tmp/APC/apc.c:464: error: 'apc_regex' has no member named 'nreg'
make: *** [apc.lo] Error 1
ERROR: `make' failed
10#
发表于 2011-1-21 14:33:26 | 只看该作者
建议你看一下以前的帖子
http://www.sunk.eu.org/thread-7209-1-658.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2026-1-14 17:09 , Processed in 0.067813 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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