[Haskell-cafe] NetSNMP; FreeBSD 8.1

Комар Максим mk at mtw.ru
Wed Jul 20 09:54:50 CEST 2011


I want to install package NetSNMP:
> cabal install NetSNMP 
Resolving dependencies...
Configuring NetSNMP-0.1.6...
cabal: Missing dependency on a foreign library:
* Missing C library: netsnmp
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. cabal: Error: some packages failed to install:
NetSNMP-0.1.6 failed during the configure step. The exception was:
ExitFailure 1

Package net-mgmt/net-snmp already installed:
> pkg_info | grep snmp
net-snmp-5.5_4      An extendable SNMP implementation

With options --extra-include-dirs= and --extra-lib-dirs= result is same:
> cabal install NetSNMP --extra-include-dirs=/usr/local/include
> --extra-lib-dirs=/usr/local/lib
Resolving dependencies...
Configuring NetSNMP-0.1.6...
cabal: Missing dependency on a foreign library:
* Missing C library: netsnmp
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. cabal: Error: some packages failed to install:
NetSNMP-0.1.6 failed during the configure step. The exception was:
ExitFailure 1

How to install NetSNMP package?



More information about the Haskell-Cafe mailing list