Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: mike4747 on July 23, 2013, 12:12:52 AM



Title: bitcoind install problems: "openssl/crypto.h: No such file or directory"
Post by: mike4747 on July 23, 2013, 12:12:52 AM
 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?


Title: Re: bitcoind install problems: "openssl/crypto.h: No such file or directory"
Post by: cp1 on July 23, 2013, 12:29:51 AM
Which command gave you that error?


Title: Re: bitcoind install problems: "openssl/crypto.h: No such file or directory"
Post by: mike4747 on July 23, 2013, 12:41:02 AM
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/


Title: Re: bitcoind install problems: "openssl/crypto.h: No such file or directory"
Post by: cp1 on July 23, 2013, 12:26:21 PM
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.


Title: Re: bitcoind install problems: "openssl/crypto.h: No such file or directory"
Post by: tiktoc on July 23, 2013, 08:15:55 PM
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.


Title: Re: bitcoind install problems: "openssl/crypto.h: No such file or directory"
Post by: mike4747 on July 24, 2013, 04:42:22 PM
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.



Title: Re: bitcoind install problems: "openssl/crypto.h: No such file or directory"
Post by: tiktoc on July 24, 2013, 09:03:16 PM
You should be able to build bitcoind without sudoing.

eg. just make -f makefile.unix


Title: Re: bitcoind install problems: "openssl/crypto.h: No such file or directory"
Post by: kjj on July 27, 2013, 04:24:04 AM
/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.