| 2039 번 글: 토요일도 질문드리네요..민망하게.. |
| 글쓴이: 이현철
|
글쓴날: 2004년 04월 17일 22:09:16 토(저녁) |
조회: 982 |
-----------------------------------------
답변자가 기본적으로 참고할 내용입니다.
- 배포판(옵션) :
- 커널버전(옵션)
:
- 데몬버전(예:apache
1.3.27) :
- 데몬설치유형(RPM/컴파일/기타)
:
-----------------------------------------
예전에도 한번드린질문인데요..
죄송합니다..
src.rpm을 인스톨하는부분이
제대로 되지않았서요..
설치과정입니다.
[root@test hclee]# rpm -ivh httpd-2.0.49-2.src.rpm
1:httpd ########################################### [100%]
[root@test hclee]# cd /usr/src/redhat/
[root@test redhat]# ls
BUILD RPMS SOURCES SPECS SRPMS
[root@test redhat]# ls -al
合計 28
drwxr-xr-x 7 root root 4096 2月 28 2003 .
drwxr-xr-x 5 root root 4096 4月 17 18:07 ..
drwxr-xr-x 2 root root 4096 2月 28 2003 BUILD
drwxr-xr-x 8 root root 4096 2月 28 2003 RPMS
drwxr-xr-x 2 root root 4096 4月 17 21:13 SOURCES
drwxr-xr-x 2 root root 4096 4月 17 21:13 SPECS
drwxr-xr-x 2 root root 4096 2月 28 2003 SRPMS
[root@test redhat]# cd SPECS/
[root@test SPECS]# ls -al
合計 40
drwxr-xr-x 2 root root 4096 4月 17 21:13 .
drwxr-xr-x 7 root root 4096 2月 28 2003 ..
-rw-rw-r-- 1 root root 32033 3月 26 22:43 httpd.spec
여기서 아래와 같은 방법으로 rpm을 실행했는데 명령어가
먹지않습니다.
[root@test SPECS]# rpm -ba httpd.spec
-ba: unknown option
[root@test SPECS]# rpm -bb httpd.spec
-bb: unknown option
그래서 rpm 버젼과 명령어를 보니깐.
##################################################################
[root@test SOURCES]# rpm
RPM バージョン
4.2
Copyright (C) 1998-2002 - Red Hat, Inc.
This program may be freely redistributed under the terms of the GNU GPL
Usage: rpm [-a|--all] [-f|--file] [-g|--group] [-p|--package] [--specfile]
[--whatrequires] [--whatprovides] [-c|--configfiles] [-d|--docfiles]
[--dump] [-l|--list] [--queryformat=QUERYFORMAT] [-s|--state]
[--nomd5] [--nofiles] [--nodeps] [--noscript] [--addsign]
[-K|--checksig] [--import] [--resign] [--nodigest] [--nosignature]
[--initdb] [--rebuilddb] [--aid] [--allfiles] [--allmatches]
[--badreloc] [-e|--erase <package>+] [--excludedocs]
[--excludepath=<path>] [--force] [-F|--freshen <packagefile>+]
[-h|--hash] [--ignorearch] [--ignoreos] [--ignoresize] [-i|--install]
[--justdb] [--nodeps] [--nomd5] [--noorder] [--nosuggest]
[--noscripts] [--notriggers] [--oldpackage] [--percent]
[--prefix=<dir>] [--relocate=<old>=<new>] [--repackage]
[--replacefiles] [--replacepkgs] [--test]
[-U|--upgrade <packagefile>+] [-D|--define 'MACRO EXPR']
[-E|--eval 'EXPR'] [--macros=<FILE:...>] [--nodigest] [--nosignature]
[--rcfile=<FILE:...>] [-r|--root ROOT] [--querytags] [--showrc]
[--quiet] [-v|--verbose] [--version] [-?|--help] [--usage]
[--scripts] [--setperms] [--setugids] [--conflicts] [--obsoletes]
[--provides] [--requires] [--info] [--changelog] [--triggers]
[--last] [--filesbypkg] [--fileclass] [--filecolor] [--fileprovide]
[--filerequire] [--redhatprovides] [--redhatrequires]
[--buildpolicy=<policy>] [--with=<option>] [--without=<option>]
##################################################################
rpm버젼 4.2에는 rpm -ba 라든지 rpm -bb라는 옵션이 없는것같았서.
이것저것 찾았서 해봤는데.. 계속 안되는데요...
아무래도 rpm버젼에 따라서 좀 틀린것같은데 man페이지보면서
뭐 해봐도 안되는데요.. ?? 좀 가르쳐주세요..
rpm 버젼 4.0.2 까지는 -ba -bb 라는 옵션이
있는데요.버젼이올라가면서
바뀌는것같은데.뭐
이것저것 해봐도 안되네요.. 그렇다고 rpm 4.2버젼을 삭제하고
rpm-4.0.2 버젼을 넣을수있는것도아니고..쩝..
무식한놈 오만 생각다하고있습니다.
그리고
예전에 산이님께서 설명해주신 부분을보면
아래는 산이님의 예전작성하신내용입니다
###########################################
SRPM 은 rpm -Uvh 나 -ivh 으로 설치하면 /usr/src/redhat 쪽에
풀립니다.
/usr/src/redhat/SPEC 에 들어가면
xxx.spec 파일이 있는 이 파일은 xxx.rpm 을 만드는 매크로
파일입니다.
즉 이 파일을 자신의 환경에 맞게 약간 수정해서
rpm -ba xxx.spec 하면 rpm 파일과 다시 src.rpm 이 만들어집니다.
만들어진 rpm 을 설치하면 되겠지요.
#####################################################
여기서 자신이 환경에 맞게 수정해야한다고
하신부분요.. 제가 httpd.spec를 열어서 보니깐 뭐를
수정해줘야할지
막막한데.구체적으로
어떤부분을수정해줘야하는지..그냥
수정없이 사용하면 안되는지요..
아 이것만 성공하면 그전에 해킹당한 웹메일 서버
살릴수있는데.주말까지..
그리고 죄송한데요..이전에
src.rpm 말고 rpm으로 인스톨할려고 하니깐.
[root@test hclee]# rpm -Uvh httpd-devel-2.0.49-2.i386.rpm --test
エラー: Failed dependencies:
apr-devel is needed by httpd-devel-2.0.49-2
apr-util-devel is needed by httpd-devel-2.0.49-2
httpd = 2.0.49 is needed by httpd-devel-2.0.49-2
이런한 에러가 나오는데요..위내용을보면
apr-devel , apr-util-devel 이것이필요한것같은데요.조사를
해보니깐 fedora core 부터나온 새로운패키지같은데요.
같은버젼의 src.rpm으로 설치할경우도 위의 패키지들이
필요하겠지요?
그래고 rpm으로 인스톨할려고 --test옵션을줘서
확인을 해보니깐 아래같은
의존성문제들이
나오는데 무시하고 깔수도없을것같고..
어떻게해야할지.
[root@test hclee]# rpm -Uvh httpd-2.0.49-2.i386.rpm --test
エラー: Failed dependencies:
libapr-0.so.0 is needed by httpd-2.0.49-2
libaprutil-0.so.0 is needed by httpd-2.0.49-2
libdb-4.2.so is needed by httpd-2.0.49-2
httpd-mmn = 20020628 is needed by (installed) mod_perl-1.99_07-5
httpd-mmn = 20020628 is needed by (installed) mod_ssl-2.0.40-21
httpd-mmn = 20020628 is needed by (installed) php-4.2.2-17
libapr.so.0 is needed by (installed) mod_perl-1.99_07-5
libaprutil.so.0 is needed by (installed) mod_perl-1.99_07-5
Suggested resolutions:
subversion-0.17.1-4503.0.i386.rpm
뒤죽박죽여다 질문드려서 죄송합니다.주말까지
귀찮게 해서요..
|
이전글 : Re: 이상하군요 sysinfo를 사용중인데요;;
다음글 : Re: 토요일도 질문드리네요..민망하게..
|
from 210.238.198.62
JS(Redhands)Board 0.4 +@
|