Bitcoin Forum
November 17, 2017, 06:03:08 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: PPCoin: How to Compile on Ubuntu 12.04  (Read 17591 times)
AndyRossy
Sr. Member
****
Offline Offline

Activity: 448


View Profile
September 19, 2012, 03:19:04 PM
 #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 <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.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1510941788
Hero Member
*
Offline Offline

Posts: 1510941788

View Profile Personal Message (Offline)

Ignore
1510941788
Reply with quote  #2

1510941788
Report to moderator
napoleon2121
Sr. Member
****
Offline Offline

Activity: 266


View Profile
June 02, 2013, 10: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
vual
Hero Member
*****
Offline Offline

Activity: 672


View Profile
September 29, 2013, 12:21:32 AM
 #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 <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
make: *** [obj/alert.o] Error 4

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!