Chinaunix首页 | 论坛 | 博客
  • 博客访问: 909061
  • 博文数量: 436
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: -103
  • 用 户 组: 普通用户
  • 注册时间: 2016-08-01 09:48
个人简介

爱生活,爱IT

文章分类

全部博文(436)

文章存档

2015年(1)

2014年(2)

2013年(6)

2011年(39)

2010年(176)

2009年(30)

2008年(28)

2007年(54)

2006年(91)

2005年(9)

分类:

2006-02-15 20:21:46

About compiler LDAP happend error message "Version incompatible".

This question has also been addressed on the list many times, so
you might search the archives for "BerkeleyDB version incompatible".

Pls see below.----Windy

 

Use CPPFLAGS and LDFLAGS.

env CPPFLAGS=-I/usr/mylocal/include LDFLAGS=-L/usr/mylocal/lib ./configure

Details are provided in the release document

If you're linking against shared libraries and they reside in non-standard locations, you may also need to tell the runtime dynamic linker where to find them, otherwise the resulting executable files won't run. The steps are operating-system dependent but usually involve setting an environment variable before attempting to run the programs.

For Linux, Solaris, Irix, and other SVR4-derived systems you use the LD_LIBRARY_PATH environment variable. For AIX use LIBPATH, for HP-UX use SHLIB_PATH.

LD_LIBRARY_PATH=/usr/mylocal/lib; export LD_LIBRARY_PATH

Don't forget to make veryclean after changing your environment.

Even using the correct CPPFLAGS and LDFLAGS environment variables it is possible that configure misses to find the library matching the headers indicated by the CPPFLAGS var. It is possible to force configure to not look at specific library versions using something like: env ol_cv_db_db_4_dot_2=no ./configure ... (in this case it should not look at db-4.2 libraries)

 

If you are using 4.2.52, please apply these two patches:>>

# wget

# wget

# wget
>>

# gzip –d db-4.2.52.tar.gz
# tar xvf db-4.2.52.tar
# chmod u+w db-4.2.52/mp/mp_fget.c
# chmod u+w db-4.2.52/lock/lock.c
# cd db-4.2.52
# patch -i ../patch.4.2.52.1
# patch -i ../patch.4.2.52.2

You may find my HOW-TOs useful.



Gary

阅读(1711) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~