 |
 |
 |
 |
|
>> Read No. 7272 article |
|
|
redhat 6.2 + apache 1.2.6
|
 |
 |
 |
 |

등록 2000-10-02 17:44:00
조회 2
이름 이현무

|
 |
 |
redhat 6.2 에 apache 1.2.6 을 설치 하려 합니다.
기존의 apache 는 rpm -e 명령으로 다 지우고.. (의존성 에러나는 패키지 까지 다 지우고..)
rpm -qa|grep apache
rpm -e piranha-gui
rpm -e mod_perl
rpm -e php-imap
rpm -e php-ldap
rpm -e php-pgsql
rpm -e php
rpm -e phpfi
rpm -e apache
rm -rf /usr/lib/apache
rm -rf /home/httpd
rm -rf /etc/httpd
rpm -e apache-devel
rpm -e apache-manual
cp apache_1.2.6.tar.gz /usr/local/etc
cd /usr/local/etc
tar -zxvf apache_1.2.6.tar.gz
ln -s apache_1.2.6 httpd
cd httpd/
cd src
vi Configuration <= 수정해줄게 없더군요.
./Configure
<font color=violet><pre>Using config file: Configuration
Using Makefile template file: Makefile.tmpl
+ configured for Linux platform
+ setting C compiler to gcc
+ setting C compiler optimization-level to -O2</pre></font>
make
<font color=violet><pre>(cd regex; make lib CC='gcc' AUX_CFLAGS='-O2 -DLINUX=2 ' RANLIB='ranlib')
make[1]: Entering directory `/usr/local/etc/apache_1.2.6/src/regex'
rm -f *.o
sh ./mkh -i _REGEX_H_ regex2.h regcomp.c regerror.c regexec.c regfree.c >regex.tmp
cmp -s regex.tmp regex.h 2>/dev/null || cp regex.tmp regex.h
rm -f regex.tmp
sh ./mkh -p regcomp.c >regcomp.ih
gcc -I. -DPOSIX_MISTAKE -O2 -DLINUX=2 -c regcomp.c -o regcomp.o
sh ./mkh -p engine.c >engine.ih
gcc -I. -DPOSIX_MISTAKE -O2 -DLINUX=2 -c regexec.c -o regexec.o
sh ./mkh -p regerror.c >regerror.ih
gcc -I. -DPOSIX_MISTAKE -O2 -DLINUX=2 -c regerror.c -o regerror.o
gcc -I. -DPOSIX_MISTAKE -O2 -DLINUX=2 -c regfree.c -o regfree.o
rm -f libregex.a
ar crv libregex.a regcomp.o regexec.o regerror.o regfree.o
a - regcomp.o
a - regexec.o
a - regerror.o
a - regfree.o
ranlib libregex.a
make[1]: Leaving directory `/usr/local/etc/apache_1.2.6/src/regex'
gcc -c -Iregex -O2 -DLINUX=2 alloc.c
In file included from /usr/include/sys/resource.h:25,
from conf.h:600,
from httpd.h:59,
from alloc.c:61:
/usr/include/bits/resource.h:102: conflicting types for `rlim_t'
conf.h:263: previous declaration of `rlim_t'
make: *** [alloc.o] Error 1</pre></font>
이런 에러가 나는군요. 소스는 하나도 건드린것 없고 헌데 왜 저런 에러가 나는지. 흠..
혹시 몰라서 /usr/include/bits/resource.h 의 102번째 줄을 주석처리한다음 다시 해봤습니다.
<font color=violet><pre>/* typedef __rlim_t rlim_t; */</pre></font>
make
<font color=violet><pre>.
.
.
make[1]: Leaving directory `/usr/local/etc/apache_1.2.6/src/regex'
gcc -c -Iregex -O2 -DLINUX=2 alloc.c
gcc -c -Iregex -O2 -DLINUX=2 http_main.c
gcc -c -Iregex -O2 -DLINUX=2 http_core.c
gcc -c -Iregex -O2 -DLINUX=2 http_config.c
gcc -c -Iregex -O2 -DLINUX=2 http_request.c
gcc -c -Iregex -O2 -DLINUX=2 http_log.c
gcc -c -Iregex -O2 -DLINUX=2 http_protocol.c
gcc -c -Iregex -O2 -DLINUX=2 rfc1413.c
rfc1413.c:80: macro `strchr' used without args
make: *** [rfc1413.o] Error 1</pre></font>
이번에는 이런 에러가.....
소스자체에 문제가 있을리는 없을텐데...configure 하는 부분에서 잘못되었나 봅니다.
Configuration 화일을 어떻게 만져주면 될것도 같은데....어렵군요..들여다 보는것 자체도..
뭔가 도움이라도 얻고자 이렇게 글을 씁니다.
-현무.
ps. 아파치 낮은 버젼을 일부러 까는겁니다.. "1.3.12 버젼 까세요" 라던지 rpm 으로 설치하세
요.. 라는 말씀은 안하셔도 됩니다... -.-;;
 | |
|
|
|
|
페이지로딩: [ 21.82 초 ]
작업시간: [ 21.49 초 ]
|
|
 |
 |
![[TOP]](/images/color///top.gif) 
|
 |
 |
 |
 |
|
|