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
• 27,620 points
161 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,040 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
• 65,820 points
111 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
• 27,620 points
64 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
• 65,820 points
158 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,040 points
178 views
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.