How to solve “ltdl.h: No such file or directory” error?

0 votes

I am building a chaincode and when I run go build command, I am getting the error:

.\hyperledger\fabric\vendor\github.com\miekg\pkcs11\pkcs11.g‌​o:29:18: 
fatal error:ltdl.h: No such file or directory
compilation terminated

How to solve this?

Jul 26, 2018 in Blockchain by digger
• 26,550 points
366 views

1 answer to this question.

0 votes

It seems like you are missing header files and static libraries for the libltdl package in your system.

First install the libltdl package by running the following command:

sudo apt install libltdl-dev

and then build the chaincode. It should work now.

answered Jul 26, 2018 by slayer
• 29,170 points

Related Questions In Blockchain

0 votes
1 answer

geth: Fatal: Failed to read genesis file: open “/home/edureka/privatechain/”: no such file or directory

Use this: geth --datadir ./data init ./custom_genesis.json READ MORE

answered Dec 5, 2018 in Blockchain by Omkar
• 67,660 points
375 views
0 votes
1 answer

How to solve “error: no objects passed to create” Error?

It seems like a problem with the ...READ MORE

answered Aug 1, 2018 in Blockchain by digger
• 26,550 points
337 views
0 votes
1 answer

Hyperledger Fabric: cp: cannot stat ‘build/docker/gotools/bin/protoc-gen-go’: No such file or directory

Do this: $go get -u github.com/golang/protobuf/protoc-gen-go $ cp $GOPATH/bin/protoc-gen-go build/docker/gotools/bin/ Now ...READ MORE

answered Oct 29, 2018 in Blockchain by Omkar
• 67,660 points
345 views
0 votes
1 answer
0 votes
1 answer

How to solve “Error: Expected a Resource or Concept”?

There are few errors in code. I ...READ MORE

answered Jul 31, 2018 in Blockchain by slayer
• 29,170 points
276 views
0 votes
1 answer