From: ts Date: 2005-01-29T21:10:14+09:00 Subject: Re: Error with bdb installation >>>>> "O" == Oliver Cromm writes: O> : $ grep db_version /usr/include/db.h O> : char *db_version __P((int *, int *, int *)); ??? Anyway try it with uln% diff -u bdb-0.5.4/src/extconf.rb.old bdb-0.5.4/src/extconf.rb --- bdb-0.5.4/src/extconf.rb.old 2004-11-14 16:30:06.000000000 +0100 +++ bdb-0.5.4/src/extconf.rb 2005-01-28 17:16:26.000000000 +0100 @@ -58,20 +58,26 @@ "" end +under = if with_config("db-underscore") + "_" + else + "" + end + version = with_config('db-version', "-4.3,43,-4.2,42,-4.1,41,-4.0,-4,40,4,3,2,").split(/,/, -1) version << "" if version.empty? catch(:done) do version.each do |with_ver| if unique != true - db_version = "db_version" + unique + db_version = "#{under}db_version" + unique throw :done if have_library("db#{with_ver}", db_version) end if with_ver != "" && (unique == "" || unique == true) /(\d)\.?(\d)?/ =~ with_ver major = $1.to_i minor = $2.to_i - db_version = "db_version_" + (1000 * major + minor).to_s + db_version = "#{under}db_version_" + (1000 * major + minor).to_s throw :done if have_library("db#{with_ver}", db_version) end end uln% and run it with ruby extconf.rb --with-db-underscore I'll try to find a better solution Guy Decoux