Bug #8042
closedfailed to compile and install rKerberos in bundle process when installing smart-proxy
Description
environment
--------------------------------------------------------------
SLES 11 SP2
ruby-1.9.3-p547
smart-proxy 1.5 stable.
---------------------------------------------------------------
There is a Gemfile under the decompressed directory and i tried to run "bundle install --path vendor" and failed as below:
/usr/local/rvm/rubies/ruby-1.9.3-p547/bin/ruby extconf.rbchecking for krb5.h... yes
checking for main() in -lkrb5... yes
checking for kadm5/admin.h... no
- extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/rvm/rubies/ruby-1.9.3-p547/bin/ruby
--with-rkerberos-dir
--without-rkerberos-dir
--with-rkerberos-include
--without-rkerberos-include=${rkerberos-dir}/include
--with-rkerberos-lib
--without-rkerberos-lib=${rkerberos-dir}/lib
--with-krb5lib
--without-krb5lib
--with-com_err-config
--without-com_err-config
--with-pkg-config
--without-pkg-config
extconf.rb:15:in `<main>': kadm5clnt library not found (RuntimeError)
extconf failed, exit code 1
Gem files will remain installed in /usr/local/src/smart-proxy-1.5-stable/vendor/ruby/1.9.1/gems/rkerberos-0.1.3 for inspection.
Results logged to /usr/local/src/smart-proxy-1.5-stable/vendor/ruby/1.9.1/extensions/x86_64-linux/1.9.1/rkerberos-0.1.3/gem_make.out
An error occurred while installing rkerberos (0.1.3), and Bundler cannot continue.
Make sure that `gem install rkerberos -v '0.1.3'` succeeds before bundling.
------------------------------------------------------------------
I have already installed the below kerberos packages.
krb5-devel-1.6.3-133.48.48.1
krb5-client-1.6.3-133.48.48.1
krb5-apps-clients-1.6.3-133.48.48.1
krb5-apps-servers-1.6.3-133.48.48.1
krb5-32bit-1.6.3-133.48.48.1
krb5-1.6.3-133.48.48.1
pam_krb5-2.3.1-47.10.15
sles:/usr/local/src/smart-proxy-1.5-stable # locate kadm5clnt
/usr/lib64/libkadm5clnt.so.5
/usr/lib64/libkadm5clnt.so.5.1
/usr/lib/libkadm5clnt.so.5
/usr/lib/libkadm5clnt.so.5.1
It seem rkerberos includes kadmin/admin.h , but can't find it in the installed krb5-devel package.