Warning: The install command is a part of the legacy v1 style of cabal usage. Please switch to using either the new project style and the new-install command or the legacy v1-install alias as new-style projects will become the default in the next version of cabal-install. Please file a bug if you cannot replicate a working v1- use case with the new-style commands. For more information, see: https://wiki.haskell.org/Cabal/NewBuild Resolving dependencies... Starting dlist-0.8.0.6 Starting integer-logarithms-1.0.3 Starting hashable-1.2.7.0 Starting base-compat-0.10.5 Building dlist-0.8.0.6 Building integer-logarithms-1.0.3 Building hashable-1.2.7.0 Building base-compat-0.10.5 Completed integer-logarithms-1.0.3 Starting primitive-0.7.0.0 Building primitive-0.7.0.0 Completed dlist-0.8.0.6 Starting random-1.1 Building random-1.1 Completed hashable-1.2.7.0 Starting tagged-0.8.6 Building tagged-0.8.6 Completed base-compat-0.10.5 Starting th-abstraction-0.2.11.0 Completed random-1.1 Starting time-locale-compat-0.1.1.5 Building th-abstraction-0.2.11.0 Building time-locale-compat-0.1.1.5 Completed tagged-0.8.6 Starting unordered-containers-0.2.10.0 Building unordered-containers-0.2.10.0 Completed time-locale-compat-0.1.1.5 Starting uuid-types-1.0.3 Building uuid-types-1.0.3 Completed th-abstraction-0.2.11.0 Completed uuid-types-1.0.3 Completed primitive-0.7.0.0 Starting scientific-0.3.6.2 Starting vector-0.12.0.3 Building scientific-0.3.6.2 Building vector-0.12.0.3 Completed unordered-containers-0.2.10.0 Completed scientific-0.3.6.2 Starting attoparsec-0.13.2.2 Building attoparsec-0.13.2.2 Completed attoparsec-0.13.2.2 Completed vector-0.12.0.3 Starting aeson-1.4.0.0 Building aeson-1.4.0.0 Completed aeson-1.4.0.0 Starting hruby-0.3.8 Failed to install hruby-0.3.8 Build log ( /home/builder/.cabal/logs/ghc-8.6.3/hruby-0.3.8-ABfzStGZwxU494VOEDPFtX.log ): cabal: Entering directory '/tmp/cabal-tmp-30186/hruby-0.3.8' [1 of 1] Compiling Main ( /tmp/cabal-tmp-30186/hruby-0.3.8/dist/setup/setup.hs, /tmp/cabal-tmp-30186/hruby-0.3.8/dist/setup/Main.o ) Linking /tmp/cabal-tmp-30186/hruby-0.3.8/dist/setup/setup ... Configuring hruby-0.3.8... Warning: Could not find the ruby library. Ensure that it is present on your system (on Debian/Ubuntu, make sure you installed the ruby1.8-dev package). If you know it to be installed, please install hruby in the following way (example for nix): $ cabal install hruby -p --configure-option="--rubyversion=19 --rubylib=ruby --rubyinc=/nix/store/v0w14mdpcy9c0qwvhqa7154qsv53ifqn-ruby-1.9.3-p484/include/ruby-1.9.1 --rubyinc=/nix/store/v0w14mdpcy9c0qwvhqa7154qsv53ifqn-ruby-1.9.3-p484/include/ruby-1.9.1/x86_64-linux' --extra-lib-dirs=$HOME/.nix-profile/lib/" --rubylib : Should be the name of the library passed to the linker (ruby for libruby.so). --rubyinc : There can be several instances of this flag. Should be the path of the various ruby header files. --rubyversion : Mandatory for ruby 2.0 and 2.1, should have the values 20 or 21. setup: Missing dependency on a foreign library: * Missing (or bad) header file: ruby.h * Missing (or bad) C library: ruby This problem can usually be solved by installing the system package that provides this library (you may need the "-dev" version). If the library is already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the library file does exist, it may contain errors that are caught by the C compiler at the preprocessing stage. In this case you can re-run configure with the verbosity flag -v3 to see the error messages. If the header file does exist, it may contain errors that are caught by the C compiler at the preprocessing stage. In this case you can re-run configure with the verbosity flag -v3 to see the error messages. cabal: Leaving directory '/tmp/cabal-tmp-30186/hruby-0.3.8' cabal: Error: some packages failed to install: hruby-0.3.8-ABfzStGZwxU494VOEDPFtX failed during the configure step. The exception was: ExitFailure 1