Docker-gitlab: krb5 required in gem bundle install

Created on 22 Jun 2015  路  4Comments  路  Source: sameersbn/docker-gitlab

Hi again,

I occasionally notice issues like these (missing required pkgs) in the build process, the latest one I have is:

Installing timfel-krb5-auth 0.8.3 with native extensions

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /usr/bin/ruby2.1 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/bin/ruby2.1
    --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)

extconf failed, exit code 1

Gem files will remain installed in /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/timfel-krb5-auth-0.8.3 for inspection.
Results logged to /home/git/gitlab/vendor/bundle/ruby/2.1.0/extensions/x86_64-linux/2.1.0/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'` succeeds before
bundling.
The command '/bin/sh -c bash ${SETUP_DIR}/install.sh' returned a non-zero code: 5

Most helpful comment

Okay, so... seems to build fine on utopic if you have the following pre-reqs:

apt-get install -y libpam-krb5 libkrb5-dev

All 4 comments

Just thinking, could be since I am running utopic in my base... rather than trusty... doing some testing now.

Okay, so... seems to build fine on utopic if you have the following pre-reqs:

apt-get install -y libpam-krb5 libkrb5-dev

should i consider this issue closed? or do you want me to add this to the package install list of this image?

Hey guys . How can i do this in heroku platform ?

Was this page helpful?
0 / 5 - 0 ratings