Bitcoin Forum
April 19, 2024, 09:09:42 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoind install problems: "openssl/crypto.h: No such file or directory"  (Read 2606 times)
mike4747 (OP)
Newbie
*
Offline Offline

Activity: 17
Merit: 0


View Profile
July 23, 2013, 12:12:52 AM
 #1

 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?
1713560982
Hero Member
*
Offline Offline

Posts: 1713560982

View Profile Personal Message (Offline)

Ignore
1713560982
Reply with quote  #2

1713560982
Report to moderator
1713560982
Hero Member
*
Offline Offline

Posts: 1713560982

View Profile Personal Message (Offline)

Ignore
1713560982
Reply with quote  #2

1713560982
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
cp1
Hero Member
*****
Offline Offline

Activity: 616
Merit: 500


Stop using branwallets


View Profile
July 23, 2013, 12:29:51 AM
 #2

Which command gave you that error?

Guide to armory offline install on USB key:  https://bitcointalk.org/index.php?topic=241730.0
mike4747 (OP)
Newbie
*
Offline Offline

Activity: 17
Merit: 0


View Profile
July 23, 2013, 12:41:02 AM
 #3

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
*****
Offline Offline

Activity: 616
Merit: 500


Stop using branwallets


View Profile
July 23, 2013, 12:26:21 PM
 #4

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.

Guide to armory offline install on USB key:  https://bitcointalk.org/index.php?topic=241730.0
tiktoc
Full Member
***
Offline Offline

Activity: 176
Merit: 100


View Profile
July 23, 2013, 08:15:55 PM
 #5

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.
mike4747 (OP)
Newbie
*
Offline Offline

Activity: 17
Merit: 0


View Profile
July 24, 2013, 04:42:22 PM
 #6

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.

tiktoc
Full Member
***
Offline Offline

Activity: 176
Merit: 100


View Profile
July 24, 2013, 09:03:16 PM
 #7

You should be able to build bitcoind without sudoing.

eg. just make -f makefile.unix
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1024



View Profile
July 27, 2013, 04:24:04 AM
 #8

/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.

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!