Author

Topic: bitcoind install problems: "openssl/crypto.h: No such file or directory" (Read 2608 times)

kjj
legendary
Activity: 1302
Merit: 1026
/sigh

So many tutorials on various linux things just stuff "sudo" onto the beginning of random command lines with little or no explanation.  One can hardly blame people that have never actually been root for thinking that sudo is a necessary part of nearly every command.
full member
Activity: 176
Merit: 100
You should be able to build bitcoind without sudoing.

eg. just make -f makefile.unix
newbie
Activity: 17
Merit: 0
The article he is following uses environment variables to set the path to the openssl version he compiled which contains the elliptical curve stuff that is removed in the Redhat/centos version of openssl.

What happened when you ran make install on openssl?  Did you run it as root?  It seems like it's putting it in openssl-bitcoin, bit bitcoind wants it to be in openssl.  Can you try a link to check that?  Or there may be a config option for your ssl directory in bitcoind.

Answer cp1 questions also maybe post the the results of printenv command.

Ended up figuring it out.  When running

Code:
sudo make -f makefile.unix

Centos ignores the environment variables.  Added

Code:
Defaults    env_keep += "OPENSSL_LIB_PATH OPENSSL_INCLUDE_PATH BOOST_LIB_SUFFIX"

in the sudoers file and it worked.  *Note: working on making the file without sudo command.

full member
Activity: 176
Merit: 100
The article he is following uses environment variables to set the path to the openssl version he compiled which contains the elliptical curve stuff that is removed in the Redhat/centos version of openssl.

What happened when you ran make install on openssl?  Did you run it as root?  It seems like it's putting it in openssl-bitcoin, bit bitcoind wants it to be in openssl.  Can you try a link to check that?  Or there may be a config option for your ssl directory in bitcoind.

Answer cp1 questions also maybe post the the results of printenv command.
cp1
hero member
Activity: 616
Merit: 500
Stop using branwallets
What happened when you ran make install on openssl?  Did you run it as root?  It seems like it's putting it in openssl-bitcoin, bit bitcoind wants it to be in openssl.  Can you try a link to check that?  Or there may be a config option for your ssl directory in bitcoind.
newbie
Activity: 17
Merit: 0
Which command gave you that error?

For a little background, I cloned the repo from here: https://github.com/bitcoin/bitcoin and am running the following command:

Code:
make -f makefile.unix

The above command is being run from /bitcoin/src/
cp1
hero member
Activity: 616
Merit: 500
Stop using branwallets
Which command gave you that error?
newbie
Activity: 17
Merit: 0
 I'm trying to install bitcoind on a Centos server.  Am following instructions from here: http://www.ripplex.biz/blog/compiling-bitcoin-on-centos-v6-4.  And am getting this error: " openssl/crypto.h: No such file or directory" Any idea as to what is going on?
Jump to: