jacobstanley / hadoop-tools

Tools for working with Hadoop, written with performance in mind.
Other
37 stars 15 forks source link

cabal install hadoop-rpc fails #32

Closed subhodi closed 5 years ago

subhodi commented 5 years ago

Trying to install hadoop-rpc package using cabal on Ubuntu 16.04

Resolving dependencies...
Configuring gsasl-0.3.6...
Failed to install gsasl-0.3.6
Build log ( /home/username/.cabal/logs/gsasl-0.3.6.log ):
Configuring gsasl-0.3.6...
setup-Simple-Cabal-1.22.5.0-x86_64-linux-ghc-7.10.3: Th
e pkg-config package
'libgsasl' version >=1.1 is required but it could not b
e found.
cabal: Error: some packages failed to install:
gsasl-0.3.6 failed during the configure step. The excep
tion was:
ExitFailure 1
hadoop-rpc-1.1.0.0 depends on gsasl-0.3.6 which failed
to install.
hdfs-server-0.1.0.0 depends on gsasl-0.3.6 which failed
 to install.

Cabal version: 1.22.5.0

Steps to reproduce

cabal init
# add hadoop-rpc to .cabal file
cabal install
luke-clifton commented 5 years ago

gsasl is a system dependency. You will need to install it via

apt-get install libgsasl

or equivalent for ubuntu.

subhodi commented 5 years ago

@luke-clifton Thanks, it worked.