Author

Topic: PPCoin: How to Compile on Ubuntu 12.04 (Read 17758 times)

hero member
Activity: 714
Merit: 500
September 28, 2013, 07:21:32 PM
#3
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 for instructions.
make: *** [obj/alert.o] Error 4

sr. member
Activity: 266
Merit: 250
June 02, 2013, 05:18:55 AM
#2
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
sr. member
Activity: 448
Merit: 250
September 19, 2012, 10:19:04 AM
#1
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 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.
Jump to: