忘记密码   免费注册 查看新帖 | 论坛精华区

ChinaUnix.net

  平台 论坛 博客 认证专区 大话IT HPC论坛 徽章 文库 沙龙 自测 下载 频道自动化运维 虚拟化 储存备份 C/C++ PHP MySQL 嵌入式 Linux系统
最近访问板块 发新帖
楼主: angelking96

[ldap] 安装LDAP的时候碰到DB版本不兼容的问题 [复制链接]

论坛徽章:
0
发表于 2005-11-03 14:07 |显示全部楼层
查看相关文档说,
# env CPPFLAGS="-I/usr/local/BerkeleyDB.4.3/include"
LDFLAGS="-L/usr/local/BerkeleyDB.4.3/lib"
./configure --enable-ldbm
注意以上配置语句,要设置资料库的include和lib路径,否则在配置到资料库相关内容时会提示Berkeley DB版本不兼容,并中断配置。

可是我的路径是正确的啊!!!
郁闷至极!


急盼协助!

论坛徽章:
0
发表于 2005-11-03 16:02 |显示全部楼层
急人啊!!!


有没有热心人指点一下阿

论坛徽章:
0
发表于 2005-11-03 16:03 |显示全部楼层
报错提示:

checking for db.h... yes
checking for Berkeley DB link (default)... no
checking for Berkeley DB link (-ldb43)... no
checking for Berkeley DB link (-ldb-43)... no
checking for Berkeley DB link (-ldb-4.3)... no
checking for Berkeley DB link (-ldb-4-3)... no
checking for Berkeley DB link (-ldb42)... no
checking for Berkeley DB link (-ldb-42)... no
checking for Berkeley DB link (-ldb-4.2)... no
checking for Berkeley DB link (-ldb-4-2)... no
checking for Berkeley DB link (-ldb-4)... no
checking for Berkeley DB link (-ldb4)... no
checking for Berkeley DB link (-ldb)... yes
checking for Berkeley DB version match... yes
checking for Berkeley DB thread support... yes
checking Berkeley DB version for BDB/HDB backends... no
configure: error: BDB/HDB: BerkeleyDB version incompatible
Shallot 该用户已被删除
发表于 2005-11-03 21:12 |显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
发表于 2005-11-05 10:36 |显示全部楼层
LD_LIBRARY_PATH我已经定义过了

卸载掉别的版本的DB会不会有问题呢?毕竟是安装操作系统的时候自带的啊!

论坛徽章:
0
发表于 2005-11-07 09:20 |显示全部楼层
我现在已经将Openldap安装完成了,也执行了make,make install

但是启动openldap的时候有报错,启动不了,不知道为什么

[root@ak openldap-2.1.29]# /usr/local/libexec/slapd -d 1
@(#) $OpenLDAP: slapd 2.1.29 (Nov  4 2005 20:06:49) $
        root@ak:/root/Onceportal/openldap-2.1.29/servers/slapd
daemon_init: listen on ldap:///
daemon_init: 1 listeners to open...
ldap_url_parse_ext(ldap:///)
daemon: socket() failed errno=97 (Address family not supported by protocol)
daemon: initialized ldap:///
daemon_init: 2 listeners opened
slapd init: initiated server.
slap_sasl_init: initialized!
bdb_initialize: initialize BDB backend
bdb_initialize: version mismatch
        expected: Sleepycat Software: Berkeley DB 4.3.28: (April 22, 2005)
        got: Sleepycat Software: Berkeley DB 4.1.25: (August 21, 2003)
bdb_initialize: Sleepycat Software: Berkeley DB 4.1.25: (August 21, 2003)
>>> dnNormalize: <cn=Subschema>
=> ldap_bv2dn(cn=Subschema,0)
<= ldap_bv2dn(cn=Subschema,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=subschema,272)=0
<<< dnNormalize: <cn=subschema>
bdb_db_init: Initializing BDB database
>>> dnPrettyNormal: <dc=onceportal,dc=com>
=> ldap_bv2dn(dc=onceportal,dc=com,0)
<= ldap_bv2dn(dc=onceportal,dc=com,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(dc=onceportal,dc=com,272)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(dc=onceportal,dc=com,272)=0
<<< dnPrettyNormal: <dc=onceportal,dc=com>, <dc=onceportal,dc=com>
>>> dnPrettyNormal: <cn=Directory Manager,dc=onceportal,dc=com>
=> ldap_bv2dn(cn=Directory Manager,dc=onceportal,dc=com,0)
<= ldap_bv2dn(cn=Directory Manager,dc=onceportal,dc=com,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=Directory Manager,dc=onceportal,dc=com,272)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=directory manager,dc=onceportal,dc=com,272)=0
<<< dnPrettyNormal: <cn=Directory Manager,dc=onceportal,dc=com>, <cn=directory manager,dc=onceportal,dc=com>
matching_rule_use_init
    1.2.840.113556.1.4.804 (integerBitOrMatch): matchingRuleUse: ( 1.2.840.113556.1.4.804 NAME 'integerBitOrMatch' APPLIES ( oncRpcNumber $ ipProtocolNumber $ ipServicePort $ shadowFlag $ shadowExpire $ shadowInactive $ shadowWarning $ shadowMax $ shadowMin $ shadowLastChange $ gidNumber $ uidNumber $ mailPreferenceOption $ supportedLDAPVersion ) )
    1.2.840.113556.1.4.803 (integerBitAndMatch): matchingRuleUse: ( 1.2.840.113556.1.4.803 NAME 'integerBitAndMatch' APPLIES ( oncRpcNumber $ ipProtocolNumber $ ipServicePort $ shadowFlag $ shadowExpire $ shadowInactive $ shadowWarning $ shadowMax $ shadowMin $ shadowLastChange $ gidNumber $ uidNumber $ mailPreferenceOption $ supportedLDAPVersion ) )
    1.3.6.1.4.1.1466.109.114.2 (caseIgnoreIA5Match): matchingRuleUse: ( 1.3.6.1.4.1.1466.109.114.2 NAME 'caseIgnoreIA5Match' APPLIES ( javaDoc $ javaCodebase $ nisMapEntry $ bootFile $ macAddress $ ipNetmaskNumber $ ipNetworkNumber $ ipHostNumber $ memberNisNetgroup $ memberUid $ loginShell $ homeDirectory $ gecos $ rfc822MailMember $ mailRoutingAddress $ mailHost $ mailLocalAddress $ janetMailbox $ cNAMERecord $ sOARecord $ nSRecord $ mXRecord $ mDRecord $ aRecord $ corbaIor $ email $ associatedDomain $ dc $ mail $ altServer ) )
    1.3.6.1.4.1.1466.109.114.1 (caseExactIA5Match): matchingRuleUse: ( 1.3.6.1.4.1.1466.109.114.1 NAME 'caseExactIA5Match' APPLIES ( javaDoc $ javaCodebase $ nisMapEntry $ bootFile $ macAddress $ ipNetmaskNumber $ ipNetworkNumber $ ipHostNumber $ memberNisNetgroup $ memberUid $ loginShell $ homeDirectory $ gecos $ rfc822MailMember $ mailRoutingAddress $ mailHost $ mailLocalAddress $ janetMailbox $ cNAMERecord $ sOARecord $ nSRecord $ mXRecord $ mDRecord $ aRecord $ corbaIor $ email $ associatedDomain $ dc $ mail $ altServer ) )
    2.5.13.30 (objectIdentifierFirstComponentMatch): matchingRuleUse: ( 2.5.13.30 NAME 'objectIdentifierFirstComponentMatch' APPLIES ( supportedApplicationContext $ ldapSyntaxes $ matchingRuleUse $ objectClasses $ attributeTypes $ matchingRules $ supportedFeatures $ supportedExtension $ supportedControl $ structuralObjectClass $ objectClass ) )
    2.5.13.29 (integerFirstComponentMatch): matchingRuleUse: ( 2.5.13.29 NAME 'integerFirstComponentMatch' APPLIES ( oncRpcNumber $ ipProtocolNumber $ ipServicePort $ shadowFlag $ shadowExpire $ shadowInactive $ shadowWarning $ shadowMax $ shadowMin $ shadowLastChange $ gidNumber $ uidNumber $ mailPreferenceOption $ supportedLDAPVersion ) )
    2.5.13.27 (generalizedTimeMatch): matchingRuleUse: ( 2.5.13.27 NAME 'generalizedTimeMatch' APPLIES ( modifyTimestamp $ createTimestamp ) )
    2.5.13.24 (protocolInformationMatch): matchingRuleUse: ( 2.5.13.24 NAME 'protocolInformationMatch' APPLIES protocolInformation )
    2.5.13.23 (uniqueMemberMatch): matchingRuleUse: ( 2.5.13.23 NAME 'uniqueMemberMatch' APPLIES uniqueMember )
    2.5.13.22 (presentationAddressMatch): matchingRuleUse: ( 2.5.13.22 NAME 'presentationAddressMatch' APPLIES presentationAddress )
    2.5.13.20 (telephoneNumberMatch): matchingRuleUse: ( 2.5.13.20 NAME 'telephoneNumberMatch' APPLIES ( pager $ mobile $ homePhone $ telephoneNumber ) )
    2.5.13.17 (octetStringMatch): matchingRuleUse: ( 2.5.13.17 NAME 'octetStringMatch' APPLIES ( javaSerializedData $ userPassword ) )
    2.5.13.16 (bitStringMatch): matchingRuleUse: ( 2.5.13.16 NAME 'bitStringMatch' APPLIES x500UniqueIdentifier )
    2.5.13.14 (integerMatch): matchingRuleUse: ( 2.5.13.14 NAME 'integerMatch' APPLIES ( oncRpcNumber $ ipProtocolNumber $ ipServicePort $ shadowFlag $ shadowExpire $ shadowInactive $ shadowWarning $ shadowMax $ shadowMin $ shadowLastChange $ gidNumber $ uidNumber $ mailPreferenceOption $ supportedLDAPVersion ) )
    2.5.13.13 (booleanMatch): matchingRuleUse: ( 2.5.13.13 NAME 'booleanMatch' APPLIES hasSubordinates )
    2.5.13.11 (caseIgnoreListMatch): matchingRuleUse: ( 2.5.13.11 NAME 'caseIgnoreListMatch' APPLIES ( homePostalAddress $ registeredAddress $ postalAddress ) )
    2.5.13.8 (numericStringMatch): matchingRuleUse: ( 2.5.13.8 NAME 'numericStringMatch' APPLIES ( internationaliSDNNumber $ x121Address ) )
    2.5.13.7 (caseExactSubstringsMatch): matchingRuleUse: ( 2.5.13.7 NAME 'caseExactSubstringsMatch' APPLIES ( dnQualifier $ destinationIndicator $ serialNumber ) )
    2.5.13.6 (caseExactOrderingMatch): matchingRuleUse: ( 2.5.13.6 NAME 'caseExactOrderingMatch' APPLIES ( dnQualifier $ destinationIndicator $ serialNumber ) )
    2.5.13.5 (caseExactMatch): matchingRuleUse: ( 2.5.13.5 NAME 'caseExactMatch' APPLIES ( javaReferenceAddress $ javaFactory $ javaClassNames $ javaClassName $ nisMapName $ ipServiceProtocol $ preferredLanguage $ employeeType $ employeeNumber $ displayName $ departmentNumber $ carLicense $ documentPublisher $ buildingName $ organizationalStatus $ uniqueIdentifier $ co $ personalTitle $ documentLocation $ documentVersion $ documentTitle $ documentIdentifier $ host $ userClass $ roomNumber $ drink $ info $ textEncodedORAddress $ corbaRepositoryId $ uid $ labeledURI $ dmdName $ houseIdentifier $ dnQualifier $ generationQualifier $ initials $ givenName $ destinationIndicator $ physicalDeliveryOfficeName $ postOfficeBox $ postalCode $ businessCategory $ description $ title $ ou $ o $ street $ st $ l $ c $ serialNumber $ sn $ knowledgeInformation $ cn $ name $ ref $ vendorVersion $ vendorName $ supportedSASLMechanisms ) )
    2.5.13.3 (caseIgnoreOrderingMatch): matchingRuleUse: ( 2.5.13.3 NAME 'caseIgnoreOrderingMatch' APPLIES ( dnQualifier $ destinationIndicator $ serialNumber ) )
    2.5.13.2 (caseIgnoreMatch): matchingRuleUse: ( 2.5.13.2 NAME 'caseIgnoreMatch' APPLIES ( javaReferenceAddress $ javaFactory $ javaClassNames $ javaClassName $ nisMapName $ ipServiceProtocol $ preferredLanguage $ employeeType $ employeeNumber $ displayName $ departmentNumber $ carLicense $ documentPublisher $ buildingName $ organizationalStatus $ uniqueIdentifier $ co $ personalTitle $ documentLocation $ documentVersion $ documentTitle $ documentIdentifier $ host $ userClass $ roomNumber $ drink $ info $ textEncodedORAddress $ corbaRepositoryId $ uid $ labeledURI $ dmdName $ houseIdentifier $ dnQualifier $ generationQualifier $ initials $ givenName $ destinationIndicator $ physicalDeliveryOfficeName $ postOfficeBox $ postalCode $ businessCategory $ description $ title $ ou $ o $ street $ st $ l $ c $ serialNumber $ sn $ knowledgeInformation $ cn $ name $ ref $ vendorVersion $ vendorName $ supportedSASLMechanisms ) )
    2.5.13.1 (distinguishedNameMatch): matchingRuleUse: ( 2.5.13.1 NAME 'distinguishedNameMatch' APPLIES ( dITRedirect $ associatedName $ secretary $ documentAuthor $ manager $ seeAlso $ roleOccupant $ owner $ member $ distinguishedName $ aliasedObjectName $ namingContexts $ subschemaSubentry $ modifiersName $ creatorsName ) )
    2.5.13.0 (objectIdentifierMatch): matchingRuleUse: ( 2.5.13.0 NAME 'objectIdentifierMatch' APPLIES ( supportedApplicationContext $ supportedFeatures $ supportedExtension $ supportedControl $ structuralObjectClass $ objectClass ) )
slapd startup: initiated.
bdb_db_open: dbenv_open(/usr/local/var/openldap-data)
bdb_db_open: dbenv_open failed: Unknown error 157384752 (157384752)
backend_startup: bi_db_open(0) failed! (157384752)
slapd shutdown: initiated
====> bdb_cache_release_all
slapd shutdown: freeing system resources.
段错误

论坛徽章:
0
发表于 2005-11-07 15:50 |显示全部楼层
原帖由 angelking96 于 2005-11-3 14:07 发表
查看相关文档说,
# env CPPFLAGS="-I/usr/local/BerkeleyDB.4.3/include"
LDFLAGS="-L/usr/local/BerkeleyDB.4.3/lib"
./configure --enable-ldbm
注意以上配置语句,要设置资料库的i ...



环境变量设置有问题!
建议你将env该为export!

论坛徽章:
0
发表于 2005-11-08 08:59 |显示全部楼层

回复 1楼 angelking96 的帖子

今天刚碰到这个问题,如下解决:
LD_LIBRARY_PATH="/usr/lib:/usr/local/lib:/usr/local/BerkeleyDB.4.3/lib:/usr/local/ssl/lib"
export LD_LIBRARY_PATH
LDFLAGS="-L/usr/local/lib -L/usr/local/BerkeleyDB.4.3/lib -L/usr/local/ssl/lib"
export LDFLAGS
CPPFLAGS="-I/usr/local/include -I/usr/local/BerkeleyDB.4.3/include -I/usr/local/ssl/include"
export CPPFLAGS

论坛徽章:
0
发表于 2005-11-18 15:58 |显示全部楼层

Re: 报错提示

to ->angelking96

at the first. please confirm if the path of Berkeley DB.4.3 is "/usr/local/BerkeleyDB.4.3/", and the version of OpenLDAP is 2.3.x (this is a very important thing)

then
"export LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/usr/local/BerkeleyDB.4.3/lib"

finally
CPPFLAGS=-I/usr/local/BerkeleyDB.4.3/include LDFLAGS=-L/usr/local/BerkeleyDB.4.3/lib  ./configure --prefix=/usr/local --enable-ldbm

good luck!

[ 本帖最后由 banian 于 2005-11-18 16:03 编辑 ]

论坛徽章:
0
发表于 2005-11-18 17:02 |显示全部楼层
我在redhat 9.0 下安装也OPenldap也现了这个问题,我一直没有解决,能不能给一个详细的说明,例如安装这个环节。谢谢大哥们啦!!!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号 北京市公安局海淀分局网监中心备案编号:11010802020122
广播电视节目制作经营许可证(京) 字第1234号 中国互联网协会会员  联系我们:
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP