<p>In my personal experience, CentOS is the absolute worst choice of Server OS for compiling altcoins. I have yet to compile and run a single daemon on this Operating System. Cent OS is dead. Instead, use Ubuntu or any other Debian based OS and enjoy the benefits of painless compiling.</p>

<p>If you're in a situation where your main application resides on a centos server, and you don't want to change up your whole operation my suggestion would be:</p>

<p>buy a small vps and put ubuntu on it(install fail2ban and clamav, in addition to dependencies. </p>

<p>then download and configure yaproxy to safely tunnel into the vps(you can make rpc calls from the subnet without outside exposure). now make a database on the main server to store your wallet credentials. </p>

<p>now you need to setup ufw at this point. </p>

<p>you should allow with UFW the following:</p>

<p>connection to the default port of the wallet from any ip or a list of trusted nodes
connection for yaproxy confined to the ip of your main server.
connection to the rpcport from localhost to the subnet address of the main server</p>

<p>anyway, probably went way into left field on this one, but it should be enough to get your headed in the right direction when you inevitably realize why you can't compile correctly on cent os. it's because no body updates the yum package repositories, because cent os is just waning in popularity for various reasons.</p>

CC BY-SA 3.0
2014-03-31T14:11:27.627Z
2014-03-31T14:18:41.077Z
2014-03-31T14:18:41.077Z
r3wt
<p>when make file use this:  " OPENSSL_LIB_PATH=/usr/local/lib64 " 
make -f makefile.unix USE_UPNP=- BDB_LIB_PATH=/usr/local/lib OPENSSL_LIB_PATH=/usr/local/lib64</p>

CC BY-SA 3.0
2014-04-12T12:46:04.880Z
2014-04-12T12:46:04.880Z
khaled elkarfai
<p>I have cent os in my amazon ec2 instance i try <a href="http://iamsto.wordpress.com/2014/01/08/howto-compile-and-install-litecoind-on-centos/" rel="nofollow">this post</a> to install litecoin daemon after done compilation and run ./litecoind gives the following error</p>

<pre><code>litecoind: key.cpp:134: {anonymous}::CECKey::CECKey(): Assertion `pkey != __null' failed.
Aborted
</code></pre>

<p>How to configure litecoin.conf in AMI?</p>

<bitcoind><litecoin><daemon><amazon-web-services>
How to install litecoin daemon in AMI
M.R
# How to install litecoin daemon in AMI

(Asked by: username_0 on 2014-03-31)

I have cent os in my amazon ec2 instance i try [this post](http://iamsto.wordpress.com/2014/01/08/howto-compile-and-install-litecoind-on-centos/) to install litecoin daemon after done compilation and run ./litecoind gives the following error

```
litecoind: key.cpp:134: {anonymous}::CECKey::CECKey(): Assertion `pkey != __null' failed.
Aborted

```

How to configure litecoin.conf in AMI?

**Tags:** bitcoind, litecoin, daemon, amazon-web-services


---

## 2 answers

### Answer by username_1 on 2014-03-31. Score: 0 | Accepted answer

In my personal experience, CentOS is the absolute worst choice of Server OS for compiling altcoins. I have yet to compile and run a single daemon on this Operating System. Cent OS is dead. Instead, use Ubuntu or any other Debian based OS and enjoy the benefits of painless compiling.

If you're in a situation where your main application resides on a centos server, and you don't want to change up your whole operation my suggestion would be:

buy a small vps and put ubuntu on it(install fail2ban and clamav, in addition to dependencies.

then download and configure yaproxy to safely tunnel into the vps(you can make rpc calls from the subnet without outside exposure). now make a database on the main server to store your wallet credentials.

now you need to setup ufw at this point.

you should allow with UFW the following:

connection to the default port of the wallet from any ip or a list of trusted nodes
connection for yaproxy confined to the ip of your main server.
connection to the rpcport from localhost to the subnet address of the main server

anyway, probably went way into left field on this one, but it should be enough to get your headed in the right direction when you inevitably realize why you can't compile correctly on cent os. it's because no body updates the yum package repositories, because cent os is just waning in popularity for various reasons.


---

### Answer by username_2 on 2014-04-12. Score: 0

when make file use this: " OPENSSL\_LIB\_PATH=/usr/local/lib64 "
make -f makefile.unix USE\_UPNP=- BDB\_LIB\_PATH=/usr/local/lib OPENSSL\_LIB\_PATH=/usr/local/lib64


---

