Skip to content

Instantly share code, notes, and snippets.

@slomo
Created October 16, 2014 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slomo/544b3588a9021c4793e1 to your computer and use it in GitHub Desktop.
Save slomo/544b3588a9021c4793e1 to your computer and use it in GitHub Desktop.
export PATH=/home/yves/repos/policycompass/nix/env/bin:/home/yves/.nix-profile/bin:/home/yves/.nix-profile/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/sbin:/sbin:~/bin:~/.scripts:`(gem env gempath | cut -d ':' -f 2 )`/bin&&\
mkdir -p var/lib/tomcat/webapps&&\
gem install --user compass&&\
./carneades/src/CarneadesWeb/scripts/build_war.sh --deploy /home/yves/repos/policycompass/var/lib/tomcat/webapps/carneades.war
Building native extensions. This could take a while...
ERROR: Error installing compass:
ERROR: Failed to build gem native extension.
/nix/store/kn475x0hqa96vxhb3f6czfpm714n80hc-ruby-1.9.3-p484/bin/ruby extconf.rb
checking for ffi_call() in -lffi... *** 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=/nix/store/kn475x0hqa96vxhb3f6czfpm714n80hc-ruby-1.9.3-p484/bin/ruby
--with-ffi_c-dir
--without-ffi_c-dir
--with-ffi_c-include
--without-ffi_c-include=${ffi_c-dir}/include
--with-ffi_c-lib
--without-ffi_c-lib=${ffi_c-dir}/lib
--with-libffi-config
--without-libffi-config
--with-pkg-config
--without-pkg-config
--with-ffilib
--without-ffilib
/nix/store/kn475x0hqa96vxhb3f6czfpm714n80hc-ruby-1.9.3-p484/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /nix/store/kn475x0hqa96vxhb3f6czfpm714n80hc-ruby-1.9.3-p484/lib/ruby/1.9.1/mkmf.rb:461:in `try_link0'
from /nix/store/kn475x0hqa96vxhb3f6czfpm714n80hc-ruby-1.9.3-p484/lib/ruby/1.9.1/mkmf.rb:476:in `try_link'
from /nix/store/kn475x0hqa96vxhb3f6czfpm714n80hc-ruby-1.9.3-p484/lib/ruby/1.9.1/mkmf.rb:619:in `try_func'
from /nix/store/kn475x0hqa96vxhb3f6czfpm714n80hc-ruby-1.9.3-p484/lib/ruby/1.9.1/mkmf.rb:845:in `block in have_library'
from /nix/store/kn475x0hqa96vxhb3f6czfpm714n80hc-ruby-1.9.3-p484/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for'
from /nix/store/kn475x0hqa96vxhb3f6czfpm714n80hc-ruby-1.9.3-p484/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone'
from /nix/store/kn475x0hqa96vxhb3f6czfpm714n80hc-ruby-1.9.3-p484/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from /nix/store/kn475x0hqa96vxhb3f6czfpm714n80hc-ruby-1.9.3-p484/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone'
from /nix/store/kn475x0hqa96vxhb3f6czfpm714n80hc-ruby-1.9.3-p484/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from /nix/store/kn475x0hqa96vxhb3f6czfpm714n80hc-ruby-1.9.3-p484/lib/ruby/1.9.1/mkmf.rb:280:in `postpone'
from /nix/store/kn475x0hqa96vxhb3f6czfpm714n80hc-ruby-1.9.3-p484/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for'
from /nix/store/kn475x0hqa96vxhb3f6czfpm714n80hc-ruby-1.9.3-p484/lib/ruby/1.9.1/mkmf.rb:840:in `have_library'
from extconf.rb:20:in `<main>'
Gem files will remain installed in /home/yves/.gem/ruby/1.9.1/gems/ffi-1.9.6 for inspection.
Results logged to /home/yves/.gem/ruby/1.9.1/gems/ffi-1.9.6/ext/ffi_c/gem_make.out
make: *** [carneades_install] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment