krb5 library install error
Summary
install libs failed with: extconf.rb:7:in <main>: Cannot find krb5 library (RuntimeError)
and installation of libkrb5-dev krb5-multidev not working in debian 9
Steps to reproduce
root@git:/home/git/gitlab# sudo -u git -H bundle install --without postgres development test --deployment
Installing timfel-krb5-auth 0.8.3 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/timfel-krb5-auth-0.8.3/ext
/usr/local/bin/ruby -r ./siteconf20181008-26628-1bqzoip.rb extconf.rb
checking for main() in -lc... yes
checking for krb5_init_context() in -lkrb5... 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/bin/$(RUBY_BASE_NAME)
--with-krb5_auth-dir
--without-krb5_auth-dir
--with-krb5_auth-include
--without-krb5_auth-include=${krb5_auth-dir}/include
--with-krb5_auth-lib
--without-krb5_auth-lib=${krb5_auth-dir}/lib
--with-clib
--without-clib
--with-krb5lib
--without-krb5lib
extconf.rb:7:in `<main>': Cannot find krb5 library (RuntimeError)
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/home/git/gitlab/vendor/bundle/ruby/2.4.0/extensions/x86_64-linux/2.4.0-static/timfel-krb5-auth-0.8.3/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/timfel-krb5-auth-0.8.3 for inspection.
Results logged to /home/git/gitlab/vendor/bundle/ruby/2.4.0/extensions/x86_64-linux/2.4.0-static/timfel-krb5-auth-0.8.3/gem_make.out
An error occurred while installing timfel-krb5-auth (0.8.3), and Bundler cannot continue.
Make sure that `gem install timfel-krb5-auth -v '0.8.3' --source 'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
omniauth-kerberos was resolved to 0.3.0, which depends on
timfel-krb5-auth
try to install krb5 lib
root@git:/home/git/gitlab# apt-get install libkrb5-dev
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libkrb5-dev : Depends: krb5-multidev (= 1.15-1+deb9u1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@git:/home/git/gitlab# apt-get install libkrb5-dev krb5-multidev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
krb5-multidev : Depends: libkrb5-3 (= 1.15-1+deb9u1) but 1.16-2 is to be installed
Depends: libk5crypto3 (= 1.15-1+deb9u1) but 1.16-2 is to be installed
Depends: libgssapi-krb5-2 (= 1.15-1+deb9u1) but 1.16-2 is to be installed
Depends: libkadm5srv-mit11 (= 1.15-1+deb9u1) but it is not going to be installed
Depends: comerr-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@git:/home/git/gitlab# apt-get install libkrb5-dev=1.15-1+deb9u1 krb5-multidev=1.15-1+deb9u1
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
krb5-multidev : Depends: libkrb5-3 (= 1.15-1+deb9u1) but 1.16-2 is to be installed
Depends: libk5crypto3 (= 1.15-1+deb9u1) but 1.16-2 is to be installed
Depends: libgssapi-krb5-2 (= 1.15-1+deb9u1) but 1.16-2 is to be installed
Depends: libkadm5srv-mit11 (= 1.15-1+deb9u1) but it is not going to be installed
Depends: comerr-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@git:/home/git/gitlab# apt-get install libkrb5-dev=1.15-1+deb9u1 krb5-multidev=1.15-1+deb9u1 libkrb5-3=1.15-1+deb9u1 libk5crypto3=1.15-1+deb9u1 libgssapi-krb5-2=1.15-1+deb9u1 libkadm5srv-mit11=1.15-1+deb9u1
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
krb5-multidev : Depends: libkadm5clnt-mit11 (= 1.15-1+deb9u1) but it is not going to be installed
Depends: comerr-dev but it is not going to be installed
libgssapi-krb5-2 : Depends: libkrb5support0 (>= 1.15~beta1) but it is not going to be installed
libk5crypto3 : Depends: libkrb5support0 (>= 1.15~beta1) but it is not going to be installed
libkadm5srv-mit11 : Depends: libkdb5-8 but it is not going to be installed
Depends: libkrb5support0 (>= 1.13~alpha1+dfsg) but it is not going to be installed
libkrb5-3 : Depends: libkrb5support0 (= 1.15-1+deb9u1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Gitlab environment
11-0-stable branch from git (https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/update/10.8-to-11.0.md)
debian 9 stretch
ruby 2.4.4p296 (2018-03-28 revision 63013) [x86_64-linux]
go version go1.10.3 linux/amd64