go-fastpbkdf2 icon indicating copy to clipboard operation
go-fastpbkdf2 copied to clipboard

go get fails: fatal error: 'openssl/sha.h' file not found

Open montanaflynn opened this issue 8 years ago • 5 comments

$ go get github.com/ctz/go-fastpbkdf2
# github.com/ctz/go-fastpbkdf2
../Development/go/src/github.com/ctz/go-fastpbkdf2/fastpbkdf2.c:20:10: fatal error: 'openssl/sha.h' file not found

montanaflynn avatar Jul 15 '17 22:07 montanaflynn

what ur platform? when ur using linux. use libssl

kazegawa avatar Aug 26 '17 03:08 kazegawa

Hi, same problem, windows 10 C:\Go\src>go get "github.com/ctz/go-fastpbkdf2" github.com/ctz/go-fastpbkdf2 fastpbkdf2.c:20:10: fatal error: openssl/sha.h: No such file or directory include <openssl/sha.h>

199862 avatar Oct 29 '17 00:10 199862

Yes, this needs openssl to be installed and available on the system you're building on. That'll make using it on Windows quite challenging.

ctz avatar Oct 29 '17 11:10 ctz

If you want to run on windows 10 i suggest you change the program to use import "golang.org/x/crypto/pbkdf2" instead of "github.com/ctz/go-fastpbkdf2"

Mines running fine now after compiling with the "golang.org/x/crypto/pbkdf2"

bitwrite avatar Dec 18 '17 10:12 bitwrite

With regards to the error

fastpbkdf2.c:20:10: fatal error: 'openssl/sha.h' file not found

I had to install openssl and was still getting the above error. then install libssl-dev if your still having issues

sudo apt-get install libssl-dev

This worked for me running on my Raspberry

bitwrite avatar Dec 18 '17 10:12 bitwrite