发新话题
 搜藏 打印 该页面添加到 Mister Wong

安装PHP5时make出错

安装PHP5时make出错

我在RedHat Linux9中安装PHP5时,在执行完./configure后,用make命令时提示出错为:
make: *** No targets specified and no makefile found. Stop.
请问是什么原因啊?请高手帮忙啊

本文由december521 发布于Linuxsky 论坛,网址:http://bbs.linuxsky.org/thread-4157-1-1.html

相关主题

TOP

./configure的 log 看一下
你的鼓励,我的动力.
做人厚道,看贴回贴.
my linux blog

TOP

怎么看啊?看哪个文件?是config.log吗?我不会看,请说清楚点好吗?谢谢!!!

TOP

就是config.log,不会看贴出来
你的鼓励,我的动力.
做人厚道,看贴回贴.
my linux blog

TOP

我的config.log文件内容如下:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:2162: checking for Cygwin environment
configure:2178: cc -c   conftest.c 1>&5
configure: In function `main':
configure:2174: `__CYGWIN32__' undeclared (first use in this function)
configure:2174: (Each undeclared identifier is reported only once
configure:2174: for each function it appears in.)
configure: failed program was:
#line 2167 "configure"
#include "confdefs.h"

int main() {

#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
configure:2195: checking for mingw32 environment
configure:2207: cc -c   conftest.c 1>&5
configure: In function `main':
configure:2203: `__MINGW32__' undeclared (first use in this function)
configure:2203: (Each undeclared identifier is reported only once
configure:2203: for each function it appears in.)
configure: failed program was:
#line 2200 "configure"
#include "confdefs.h"

int main() {
return __MINGW32__;
; return 0; }
configure:2226: checking for egrep
configure:2241: checking for a sed that does not truncate output
configure:2361: checking host system type
configure:2382: checking target system type
configure:2480: checking for gcc
configure:2593: checking whether the C compiler (gcc  ) works
configure:2609: gcc -o conftest    conftest.c  1>&5
configure:2635: checking whether the C compiler (gcc  ) is a cross-compiler
configure:2640: checking whether we are using GNU C
configure:2649: gcc -E conftest.c
configure:2668: checking whether gcc accepts -g
configure:2701: checking whether gcc and cc understand -c and -o together
configure:2716: gcc -c conftest.c -o conftest.o 1>&5
configure:2717: gcc -c conftest.c -o conftest.o 1>&5
configure:2722: cc -c conftest.c 1>&5
configure:2724: cc -c conftest.c -o conftest.o 1>&5
configure:2725: cc -c conftest.c -o conftest.o 1>&5
configure:2752: checking how to run the C preprocessor
configure:2773: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:2832: checking for AIX
configure:2856: checking whether ln -s works
configure:2888: checking if compiler supports -R
configure:2903: gcc -o conftest -g -O2   conftest.c -R /usr/lib  1>&5
gcc: unrecognized option `-R'
/usr/lib: file not recognized: Is a directory
collect2: ld returned 1 exit status
configure: failed program was:
#line 2896 "configure"
#include "confdefs.h"

int main() {

; return 0; }
configure:2921: checking if compiler supports -Wl,-rpath,
configure:2936: gcc -o conftest -g -O2   conftest.c -Wl,-rpath,/usr/lib  1>&5
configure:2962: checking for re2c
configure:3022: checking for gawk
configure:3082: checking for bison
configure:3122: checking for bison version
configure:3163: checking for flex
configure:3197: checking for yywrap in -lfl
configure:3216: gcc -o conftest -g -O2   conftest.c -lfl   1>&5
configure:3240: checking lex output file root
configure:3261: checking whether yytext is a pointer
configure:3280: gcc -o conftest -g -O2   conftest.c  -lfl 1>&5
configure:3304: checking for working const
configure:3358: gcc -c -g -O2  conftest.c 1>&5
configure:3384: checking for flex version
configure:3607: checking whether to force non-PIC code in shared modules
configure:3703: gcc -o conftest -g -O2   conftest.c  1>&5
/tmp/ccjurfkq.o(.text+0x20): In function `main':
/usr/local/php-5.1.6/configure:3698: undefined reference to `pthread_mutexattr_init'
/tmp/ccjurfkq.o(.text+0x34):/usr/local/php-5.1.6/configure:3699: undefined reference to `pthread_create'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3685 "configure"
#include "confdefs.h"

#include <pthread.h>
#include <stddef.h>

void *thread_routine(void *data) {
    return data;
}

int main() {
    pthread_t thd;
    pthread_mutexattr_t mattr;
    int data = 1;
    pthread_mutexattr_init(&mattr);
    return pthread_create(&thd, NULL, thread_routine, &data);
}
configure:3723: checking for pthreads_cflags
configure:3763: gcc -o conftest -g -O2 -kthread   conftest.c  1>&5
gcc: unrecognized option `-kthread'
/tmp/cc22FMRJ.o(.text+0x20): In function `main':
/usr/local/php-5.1.6/configure:3758: undefined reference to `pthread_mutexattr_init'
/tmp/cc22FMRJ.o(.text+0x34):/usr/local/php-5.1.6/configure:3759: undefined reference to `pthread_create'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3745 "configure"
#include "confdefs.h"

#include <pthread.h>
#include <stddef.h>

void *thread_routine(void *data) {
    return data;
}

int main() {
    pthread_t thd;
    pthread_mutexattr_t mattr;
    int data = 1;
    pthread_mutexattr_init(&mattr);
    return pthread_create(&thd, NULL, thread_routine, &data);
}
configure:3763: gcc -o conftest -g -O2 -pthread   conftest.c  1>&5
configure:3793: checking for pthreads_lib
configure:3942: checking for AOLserver support
configure:4185: checking for Apache 1.x module support via DSO through APXS
configure:4490: checking for Apache 1.x module support
configure:5333: checking for mod_charset compatibility option
configure:5470: checking for Apache 2.0 filter-module support via DSO through APXS
configure:6300: checking for Apache 2.0 handler-module support via DSO through APXS

TOP

/tmp/ccjurfkq.o(.text+0x20): In function `main':
/usr/local/php-5.1.6/configure:3698: undefined reference to `pthread_mutexattr_init'
/tmp/ccjurfkq.o(.text+0x34):/usr/local/php-5.1.6/configure:3699: undefined reference to `pthread_create'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3685 "configure"
#include "confdefs.h"


日志不全吧,一般编译安装不成功就是安装文件不对,下载时包损坏了.或者编译工具,库文件不全,你把开发工具都装上.
你的鼓励,我的动力.
做人厚道,看贴回贴.
my linux blog

TOP

发新话题