Open elizur-cartasense opened 6 years ago
same on macos x High Sierra 10.13.6. installing leveldb with brew makes no difference.
/Users/alpguneysel/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2 --builddir=.stack-work/dist/x86_64-osx/Cabal-2.0.1.0 configure --with-ghc=/Users/alpguneysel/.stack/programs/x86_64-osx/ghc-8.2.2/bin/ghc --with-ghc-pkg=/Users/alpguneysel/.stack/programs/x86_64-osx/ghc-8.2.2/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/Users/alpguneysel/.stack/snapshots/x86_64-osx/lts-10.7/8.2.2/pkgdb --libdir=/Users/alpguneysel/.stack/snapshots/x86_64-osx/lts-10.7/8.2.2/lib --bindir=/Users/alpguneysel/.stack/snapshots/x86_64-osx/lts-10.7/8.2.2/bin --datadir=/Users/alpguneysel/.stack/snapshots/x86_64-osx/lts-10.7/8.2.2/share --libexecdir=/Users/alpguneysel/.stack/snapshots/x86_64-osx/lts-10.7/8.2.2/libexec --sysconfdir=/Users/alpguneysel/.stack/snapshots/x86_64-osx/lts-10.7/8.2.2/etc --docdir=/Users/alpguneysel/.stack/snapshots/x86_64-osx/lts-10.7/8.2.2/doc/leveldb-haskell-0.6.5 --htmldir=/Users/alpguneysel/.stack/snapshots/x86_64-osx/lts-10.7/8.2.2/doc/leveldb-haskell-0.6.5 --haddockdir=/Users/alpguneysel/.stack/snapshots/x86_64-osx/lts-10.7/8.2.2/doc/leveldb-haskell-0.6.5 --dependency=base=base-4.10.1.0 --dependency=bytestring=bytestring-0.10.8.2 --dependency=data-default=data-default-0.7.1.1-HxP9sk0JsrKFuLVc9OIluX --dependency=exceptions=exceptions-0.8.3-ARBCApn26muKfiBWljkDpK --dependency=filepath=filepath-1.4.1.2 --dependency=resourcet=resourcet-1.1.11-50xA2f6RxEnFxMn9ZnYJAT --dependency=transformers=transformers-0.5.2.0
Process exited with code: ExitFailure 1
Logs have been written to: /Users/alpguneysel/Desktop/mirian/_code/quorum/quorum-aws/.stack-work/logs/leveldb-haskell-0.6.5.log
Configuring leveldb-haskell-0.6.5...
clang: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2: Missing dependency on a foreign
library:
* Missing C library: leveldb
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.```
I can confirm this for Ubuntu 18.04: Configuring BerkeleyDB-0.8.7... Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2: Missing dependency on a foreign library: Missing C library: db
Does somebody have a clue how to fix that? Does it work with other distributions?
Okay same error on ubuntu 16.04. Apt install libdb-dev solved the problem for me.
I ran into the same problem on OSX, and was able to work around it by installing a brew package for whatever it was complaining about:
brew install berkeley-db
brew install leveldb
brew install pkg-config
brew install libsodium
After this, and increasing the memory allocated to docker (error 137), I was able to build it successfully on OSX.
There's another option to try out quorum-cloud
.
It uses the official docker images on AWS ECS Fargate and only requires Terraform runtime from your local.
running the build scripts on ubuntu 18.04 produces this error: -- While building custom Setup.hs for package BerkeleyDB-0.8.7 using: /home/elizur/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2 --builddir=.stack-work/dist/x86_64-linux/Cabal-2.0.1.0 configure --with-ghc=/home/elizur/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc --with-ghc-pkg=/home/elizur/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/home/elizur/.stack/snapshots/x86_64-linux/lts-10.7/8.2.2/pkgdb --package-db=/home/elizur/quorum-aws/.stack-work/install/x86_64-linux/lts-10.7/8.2.2/pkgdb --libdir=/home/elizur/quorum-aws/.stack-work/install/x86_64-linux/lts-10.7/8.2.2/lib --bindir=/home/elizur/quorum-aws/.stack-work/install/x86_64-linux/lts-10.7/8.2.2/bin --datadir=/home/elizur/quorum-aws/.stack-work/install/x86_64-linux/lts-10.7/8.2.2/share --libexecdir=/home/elizur/quorum-aws/.stack-work/install/x86_64-linux/lts-10.7/8.2.2/libexec --sysconfdir=/home/elizur/quorum-aws/.stack-work/install/x86_64-linux/lts-10.7/8.2.2/etc --docdir=/home/elizur/quorum-aws/.stack-work/install/x86_64-linux/lts-10.7/8.2.2/doc/BerkeleyDB-0.8.7 --htmldir=/home/elizur/quorum-aws/.stack-work/install/x86_64-linux/lts-10.7/8.2.2/doc/BerkeleyDB-0.8.7 --haddockdir=/home/elizur/quorum-aws/.stack-work/install/x86_64-linux/lts-10.7/8.2.2/doc/BerkeleyDB-0.8.7 --dependency=base=base-4.10.1.0 --dependency=bytestring=bytestring-0.10.8.2 --dependency=extensible-exceptions=extensible-exceptions-0.1.1.4-E1upJpu86CL5ydxQ3NbPRF Process exited with code: ExitFailure 1 Logs have been written to: /home/elizur/quorum-aws/.stack-work/logs/BerkeleyDB-0.8.7.log