Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: AndyRossy on September 19, 2012, 03:19:04 PM



Title: PPCoin: How to Compile on Ubuntu 12.04
Post by: AndyRossy on September 19, 2012, 03:19:04 PM
A quick walk through on how to compile on a fresh Ubuntu LTS 12.04

Code:
apt-get install git g++-4.5 libboost1.46-all-dev libdb5.1++-dev make
useradd -m -s /bin/bash ppcoin
su ppcoin
cd ~
git clone https://github.com/ppcoin/ppcoin.git
cd ppcoin/src
make -f makefile.unix USE_UPNP= ppcoind

This will put a ppcoind executeable in the ppcoin/src folder.  You can move it to wherever you desire, and execute in a similar way to starting up bitcoind.

FAQ.

Q. I receive internal compiler error: Killed (program cc1plus)

Code:
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.

A.

Type "dmesg",
Code:
[ 1377.575785] Out of memory: Kill process 12305 (cc1plus) score 905 or sacrifice child
[ 1377.575800] Killed process 12305 (cc1plus) total-vm:579928kB, anon-rss:546144kB, file-rss:0kB

If you see output like this, your machine does not have enough memory to compile.  You can fix this by adding more swap. To add a 1gb swap file, in /swapfile:

Code:
sudo dd if=/dev/zero of=/swapfile bs=64M count=16
sudo mkswap /swapfile
sudo swapon /swapfile

After compiling, you may wish to

Code:
sudo swapoff /swapfile
sudo rm /swapfile




Will be adding answers to other compiling questions for other OS's over time.


Title: Re: PPCoin: How to Compile on Ubuntu 12.04
Post by: napoleon2121 on June 02, 2013, 10:18:55 AM
hi and tnx for the tutorial. i am trying to compille wallets... every wallet. and i get this error.

Code:
/usr/local/include/boost/filesystem/path.hpp:707: undefined reference to `boost::filesystem::path::m_append_separator_if_needed()'
/usr/local/include/boost/filesystem/path.hpp:710: undefined reference to `boost::filesystem::path::m_erase_redundant_separator(unsigned int)'
collect2: ld returned 1 exit status
make: *** [worldcoind] Error 1

if you could help plzzzzzz


Title: Re: PPCoin: How to Compile on Ubuntu 12.04
Post by: vual on September 29, 2013, 12:21:32 AM
Hey mate,

Thanks nice tip on the swap space.

I still get this error:


g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
make: *** [obj/alert.o] Error 4