설치하는데 안돼서 다 지우고 다시 설치 했습니다.
그런데 이번에는 이렇게 에러가 났습니다.
ldap을 설치하는데요 아래와 같은 오류가 나왔습니다.
실행은
$ ./configure --prefix=/usr/local/ldap
$make depend
$make
$make test
위같은 순서로 했는데
make test 할때 아래와 같은 오류가 발행했습니다.
어떻게 해야할지 좀 가르쳐주세요.
-------------------------------------------------------------
cd tests; make test make[1]: 들어감 `/root/openldap-2.1.29/tests' 디렉토리 ln: `./data': 디렉토리는 덮어쓸 수 없습니다 make[1]: [test-bdb] 오류 1 (무시됨) ln: `./schema': 파일이 존재합니다 make[1]: [test-bdb] 오류 1 (무시됨) ln: `ucdata/liblunicode': 파일이 존재합니다 make[1]: [test-bdb] 오류 1 (무시됨) Initiating LDAP tests for BDB... >>>>> Executing all LDAP tests... >>>>> Test Directory: . >>>>> Backend: bdb >>>>> Starting test000-rootdse ... running defines.sh Datadir is ./data Cleaning up in ./test-db... Starting slapd on TCP/IP port 9009... Using ldapsearch to retrieve the root DSE... Waiting 5 seconds for slapd to start... ./scripts/test000-rootdse: line 49: 16573 세그멘테이션 오류 $SLAPD -f $DBC ONF -h $MASTERURI -d $LVL $TIMING >$MASTERLOG 2>&1 Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... ./scripts/test000-rootdse: line 57: kill: (16573) - 그런 프로세스가 없음 ldap_bind: Can't contact LDAP server (81) >>>>> Test failed >>>>> ./scripts/test000-rootdse failed (exit 1) make[1]: *** [test-bdb] 오류 1 make[1]: 나감 `/root/openldap-2.1.29/tests' 디렉토리 make: *** [test] 오류 2
---------------------------------------------------
이부분이 test000-rootdse 파일내용 일부분입니다.
--------------------------------------------------- echo "Waiting 5 seconds for slapd to start..." sleep 5
echo "Datadir is $DATADIR"
echo "Cleaning up in $DBDIR..."
rm -f $DBDIR/[!C]*
echo "Starting slapd on TCP/IP port $PORT..." . $CONFFILTER $BACKEND $MONITORDB < $SCHEMACONF > $DBCONF $SLAPD -f $DBCONF -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 & PID=$! if test $WAIT != 0 ; then echo PID $PID read foo fi
echo "Using ldapsearch to retrieve the root DSE..." for i in 0 1 2 3 4 5; do $LDAPSEARCH -b "" -s base -h $LOCALHOST -p $PORT '+extensibleObject' > $ SEARCHOUT 2>&1 RC=$? if test $RC = 0 ; then break fi echo "Waiting 5 seconds for slapd to start..." sleep 5 echo "Waiting 5 seconds for slapd to start..." sleep 5 done
if test $RC = 0 -a $MONITORDB = yes ; then echo "Using ldapsearch to retrieve the cn=Monitor..." $LDAPSEARCH -b "cn=Monitor" -s base -h $LOCALHOST -p $PORT '+extensibleO bject' >> $SEARCHOUT 2>&1 RC=$? <----- 여기가 line 59 입니다. fi
kill -HUP $PID
cat $SEARCHOUT
if test $RC != 0 ; then echo ">>>>> Test failed" else if grep "TLS:" $SEARCHOUT; then RC=-1 else echo ">>>>> Test succeeded" fi fi
|