Liteide compile Golang Project error ltdl.h:no such file or directory solution

Source: Internet
Author: User

A project in the GitHub, in use liteide compile the times wrong, the error message is as follows:

# GITHUB.COM/MIEKG/PKCS11 d:\goproject\src\github.com\miekg\pkcs11\pkcs11.go:29:10:fatal error:ltdl.h:no such file or directory

#include <ltdl.h>

^~~~~~~~ compilation terminated.

Error: Process exit code 2.


Command-line workaround: Go build-tags nopkcs11
Liteide Solution: Compiling environment-Custom-"Buildargs:-i-tags nopkcs11"


If you are in the Ubunt operating system, simply install:

Apt Install Libltdl3-dev

If you are in the CentOS operating system, simply install:

Yum Install Libtool-ltdl-devel


Solve the problem.


Additional content: Install Govendor Project Dependency management tools:

Go get-u Github.com/kardianos/govendor compiles a govendor to find the path to the Govendor.exe file and adds it to the environment variable.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.