Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: Brandon on April 14, 2010, 07:39:32 PM



Title: CentOS error
Post by: Brandon on April 14, 2010, 07:39:32 PM
Hello all,

I've setup a BitCoin machine within my network (the one posted in the Static IP thread), but I am also trying to set one up on a server I have in Germany. When I try to run BitCoin it is returning me this error :

Code:
[****@m6091 bitcoin-0.2.0]# ./bitcoin
./bitcoin: error while loading shared libraries: libcrypto.so.0.9.8: cannot open shared object file: No such file or directory

I have made sure openSSL is installed and libcrypto can be found when searching for it, is there anything I am missing?

Thank you,
Brandon


Title: Re: CentOS error
Post by: Xunie on April 14, 2010, 09:15:21 PM
NEVER RUN A USERSPACE APPLICATION AS ROOT, EVER
Sorry about that, but using root for that is so foolish caps and bold is required.
It's unsafe for your security, it will get you laughed at, it will cause kittens to be raped. (Seriously, who doesn't like kittens?)

Anyhow, if it's installed it *should* work.
Is it properly installed and findable?
Run this:
Code:
$ whereis libcrypto


Title: Re: CentOS error
Post by: Brandon on April 14, 2010, 09:20:58 PM
It returns :

Code:
[*****@m6091 lib]# whereis libcrypto
libcrypto: /usr/lib/libcrypto.a /usr/lib/libcrypto.so
[*****@m6091 lib]#


Title: Re: CentOS error
Post by: Xunie on April 14, 2010, 09:26:08 PM
Run this and afterwards try bitcoin again:
Code:
# ldconfig
(just to be safe guys!)


Title: Re: CentOS error
Post by: The Madhatter on April 14, 2010, 09:27:29 PM

Better yet -- run it in a sandbox / jail / virtual instance. That's what I do. But I am paranoid. ;)

NEVER RUN A USERSPACE APPLICATION AS ROOT, EVER
Sorry about that, but using root for that is so foolish caps and bold is required.
It's unsafe for your security, it will get you laughed at, it will cause kittens to be raped. (Seriously, who doesn't like kittens?)


Title: Re: CentOS error
Post by: Xunie on April 14, 2010, 09:30:16 PM

Better yet -- run it in a sandbox / jail / virtual instance. That's what I do. But I am paranoid. ;)

NEVER RUN A USERSPACE APPLICATION AS ROOT, EVER
Sorry about that, but using root for that is so foolish caps and bold is required.
It's unsafe for your security, it will get you laughed at, it will cause kittens to be raped. (Seriously, who doesn't like kittens?)


You could also run it on an entirely different machine locked out from the world by a firewall allowing traffic to only another machine's 8333 port which also has bitcoin running on there which actually connects to the network. ;D


Title: Re: CentOS error
Post by: Brandon on April 14, 2010, 09:31:52 PM
Same issue, and thanks for the warning, it's not running as root, I just replaced the username it is running under with stars. This is a publicly accessible FTP server as well, so I'm being smart about security, no worries.


Title: Re: CentOS error
Post by: theymos on April 14, 2010, 09:44:57 PM
Did you try "LD_LIBRARY_PATH=/usr/lib ./bitcoin"? Are you sure libcrypto.so.0.9.8 actually exists?


Title: Re: CentOS error
Post by: Brandon on April 14, 2010, 10:28:31 PM
I figured it out, thanks for the help anyways guys


Title: Re: CentOS error
Post by: Xunie on April 15, 2010, 12:37:53 AM
I figured it out, thanks for the help anyways guys

Out of curiosity, what was the problem?