BitShares Forum

Main => Technical Support => Topic started by: doxymoron on September 13, 2014, 12:10:07 am

Title: Unable to build on VPS with 2GB memory
Post by: doxymoron on September 13, 2014, 12:10:07 am
I recently setup a VPS with 2GB of memory, but when trying to build I am getting this error:

[ 67%] Building CXX object libraries/blockchain/CMakeFiles/bts_blockchain.dir/chain_database.cpp.o
virtual memory exhausted: Cannot allocate memory
make[2]: *** [libraries/blockchain/CMakeFiles/bts_blockchain.dir/chain_database.cpp.o] Error 1
make[1]: *** [libraries/blockchain/CMakeFiles/bts_blockchain.dir/all] Error 2
make: *** [all] Error 2

Is there any way around this?  Or is the only solution to up the memory?
Title: Re: Unable to build on VPS with 2GB memory
Post by: cgafeng on September 13, 2014, 12:19:55 am
may be this can help
https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04 (https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04)
Title: Re: Unable to build on VPS with 2GB memory
Post by: doxymoron on September 13, 2014, 12:43:53 am
may be this can help
https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04 (https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04)

Perfect!  That worked.  Thanks for the help.