I tried the following suggestions and caught the error in the git clone command, but this did not work for me. The following error was displayed after my unsuccessful use of this code:
:~/Worldcoin/src# make -j2 -f makefile.unix USE_UPNP=-
/bin/sh ../share/genbuild.sh obj/build.h
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DUSE_IPV6 -DBOOST_SPIRIT_THREADSAFE -I/root/Worldcoin/src -I/root/Worldcoin/src/obj -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/checkpoints.d -o obj/checkpoints.o checkpoints.cpp
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DUSE_IPV6 -DBOOST_SPIRIT_THREADSAFE -I/root/Worldcoin/src -I/root/Worldcoin/src/obj -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/netbase.d -o obj/netbase.o netbase.cpp
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DUSE_IPV6 -DBOOST_SPIRIT_THREADSAFE -I/root/Worldcoin/src -I/root/Worldcoin/src/obj -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/addrman.d -o obj/addrman.o addrman.cpp
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DUSE_IPV6 -DBOOST_SPIRIT_THREADSAFE -I/root/Worldcoin/src -I/root/Worldcoin/src/obj -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/crypter.d -o obj/crypter.o crypter.cpp
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DUSE_IPV6 -DBOOST_SPIRIT_THREADSAFE -I/root/Worldcoin/src -I/root/Worldcoin/src/obj -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/key.d -o obj/key.o key.cpp
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DUSE_IPV6 -DBOOST_SPIRIT_THREADSAFE -I/root/Worldcoin/src -I/root/Worldcoin/src/obj -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/db.d -o obj/db.o db.cpp
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DUSE_IPV6 -DBOOST_SPIRIT_THREADSAFE -I/root/Worldcoin/src -I/root/Worldcoin/src/obj -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/init.d -o obj/init.o init.cpp
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DUSE_IPV6 -DBOOST_SPIRIT_THREADSAFE -I/root/Worldcoin/src -I/root/Worldcoin/src/obj -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/irc.d -o obj/irc.o irc.cpp
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DUSE_IPV6 -DBOOST_SPIRIT_THREADSAFE -I/root/Worldcoin/src -I/root/Worldcoin/src/obj -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/keystore.d -o obj/keystore.o keystore.cpp
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DUSE_IPV6 -DBOOST_SPIRIT_THREADSAFE -I/root/Worldcoin/src -I/root/Worldcoin/src/obj -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/main.d -o obj/main.o main.cpp
main.cpp:17:53: fatal error: boost/random/uniform_int_distribution.hpp: No such file or directory
compilation terminated.
make: *** [obj/main.o] Error 1
make: *** Waiting for unfinished jobs....
Quick and dirty worldcoind compile on Ubuntu 12.04
Download and install dependencies:sudo apt-get install build-essential
sudo apt-get install libssl-dev
sudo apt-get install libdb4.8-dev
sudo apt-get install libdb4.8++-dev
sudo apt-get install libboost-all-dev
Recommended utilities:
Download the source code:git clonehttps://github.com/worldcoinproject/Worldcoin.git
Navigate to src directory:Compile the damn thing:make -j2 -f makefile.unix USE_UPNP=-
With no errors this should build worldcoin:worldcoind should appear as the last file in the Worldcoin/src directory
addrman.cpp irc.cpp netbase.h serialize.h
addrman.h irc.h net.cpp strlcpy.h
allocators.h json net.h sync.cpp
base58.h key.cpp noui.cpp sync.h
bignum.h key.h obj test
bitcoinrpc.cpp keystore.cpp obj-test ui_interface.h
bitcoinrpc.h keystore.h protocol.cpp uint256.h
checkpoints.cpp libeay32.dll protocol.h util.cpp
checkpoints.h main.cpp qt util.h
compat.h main.h rpcdump.cpp version.cpp
crypter.cpp makefile.linux-mingw rpcnet.cpp version.h
crypter.h makefile.mingw rpcrawtransaction.cpp wallet.cpp
db.cpp makefile.osx script.cpp walletdb.cpp
db.h makefile.unix script.h walletdb.h
init.cpp mruset.h scrypt.c wallet.h
init.h netbase.cpp scrypt.h worldcoind
Ok, almost done!
Create the worldcoin data directory:Now make the conf file:sudo nano ~/.worldcoin/worldcoin.conf
Put this stuff in there:rpcuser=username
rpcpassword=password
rpcport=11082
port=11081
daemon=1
server=1
gen=0
listen=1
testnet=0
maxconnections=100
Ok. GO TIME!
In the same directory as the worldcoind file:You should see:Commands:
worldcoind getinfo
worldcoind stop
worldoind getaccountaddress ""
See
https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list for other commands.
Let me know if this works.
If it does. I graciously accept the following:Love
WDC: WbE7NcXKEkQhsMyqnPxByFKfhqfFwdwH3P
LTC: LdZ5nUE9NnKKjwAGVVp4n2YVGPTM4zv2yN