免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4055 | 回复: 7
打印 上一主题 下一主题

[ldap] solaris10+openldap [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-01-30 15:19 |只看该作者 |倒序浏览
我想在solaris10上安装openldap,BerkeleyDB.4.2等都装好了,但是configure的时候报错:
error:C compiler cannot create executables。无论我用系统自带的gcc,lib还是用自己装的都出现这种报错?不知道有谁在solaris下装过这个东西?

论坛徽章:
0
2 [报告]
发表于 2008-01-31 10:23 |只看该作者
帮顶!
俺刚刚碰到同样的错误,不过按这边的系统不是我装的,干脆就没有装gcc。
我自己装的那台服务器则是碰到了这个错误:
configure: error: BDB/HDB: BerkeleyDB not available

[ 本帖最后由 fusm 于 2008-1-31 10:28 编辑 ]

论坛徽章:
0
3 [报告]
发表于 2008-01-31 10:40 |只看该作者
楼主的问题我已解决:
通过find找到了gcc,添加到/etc/profile就可以了。
Solaris一般自带gcc的,是在/usr/sfw/bin目录下,将/usr/sfw/bin添加到PATH路径就可以用了。

现在就剩下BerkeleyDB没有啦。

[ 本帖最后由 fusm 于 2008-1-31 10:41 编辑 ]

论坛徽章:
0
4 [报告]
发表于 2008-01-31 10:44 |只看该作者
otn网站上的Berkeley DB有这么多,下哪个呢?
Oracle Berkeley DB Downloads
Latest Production Releases

Berkeley DB 4.6.21                                Previous Releases
          Requires log file format upgrade. change log
          Download         Berkeley DB 4.6.21.tar.gz, with AES encryption (11.3M)
          Download         Berkeley DB 4.6.21.zip, with AES encryption (14.7M)
          Download         Berkeley DB 4.6.21.msi Windows installer, with AES encryption (16.1M)
          Download         Berkeley DB 4.6.21.tar.gz for VxWorks, with AES encryption (52M)
          Download         Berkeley DB 4.6.21NC.tar.gz , without encryption (11.3M)
          Download         Berkeley DB 4.6.21.NC.zip, without encryption (14.7M)
          Download         Berkeley DB 4.6.21VxWorks CD.NC.tar.gz, without encryption (51.7M)

Berkeley DB Java Edition 3.2.68          Previous Releases
          change log - release notes
          Download         Berkeley DB Java Edition 3.2.68 .tar.gz (4.7M)
          Download         Berkeley DB Java Edition 3.2.68.zip (6M)

Berkeley DB XML 2.3.10                      Previous Releases
          change log - release notes - patches (9)
          Download         Berkeley DB XML 2.3.10 .tar.gz (30.9M)
          Download         Berkeley DB XML 2.3.10 .zip (42.7M)
          Download         Berkeley DB XML 2.3.10 .msi Windows installer (52.7M)

论坛徽章:
0
5 [报告]
发表于 2008-01-31 11:01 |只看该作者
装完了4.6,还报那个configure: error: BDB/HDB: BerkeleyDB not available错,郁闷!

论坛徽章:
0
6 [报告]
发表于 2008-01-31 12:16 |只看该作者
装了个4.2覆盖了,这下一切ok啰。

论坛徽章:
0
7 [报告]
发表于 2008-02-01 10:38 |只看该作者

回复 #6 fusm 的帖子

问题解决了,感觉有点笨,只要在env前面知名CC=gcc就可以了!
# env CC=gcc CPPFLAGS="-I/usr/local/BerkeleyDB.4.2/include" LDFLAGS="-L/usr/local/BerkeleyDB.4.2/lib" ./configure --prefix=/usr/local/openldap --enable-ldbm

[ 本帖最后由 pet-dtg 于 2008-2-1 10:40 编辑 ]

论坛徽章:
0
8 [报告]
发表于 2008-02-01 13:44 |只看该作者
呵呵,我这儿的问题是gcc没被加入path啊。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP