0 votes
1 view
in Blockchain by (4.1k points)

I am trying to build a chain code by using go build. When I run Go build command its reporting


fatal error:ltdl.h: No such file or directory

compilation terminated

I installed libtools, but I am getting the same error.

1 Answer

0 votes
by (14.4k points)

For the code to run, you need to download the developer version for LibTools and make sure that ltdl.h is exported to any of the many directories that are implicitly available in LibTools. For Ubuntu, you can use the code,

sudo apt install libltdl-dev

For CentOS, you can use,

yum install libtool-ltdl-devel

For Mac, you have to make sure that brew is installed. Then you can use,

brew install libtool

Welcome to Intellipaat Community. Get your technical queries answered by top developers !