BitShares Forum

Main => General Discussion => Topic started by: scot on September 11, 2014, 04:08:10 pm

Title: Ubuntu/Linux client for BitsharesX
Post by: scot on September 11, 2014, 04:08:10 pm
Hi,
I am user of Ubuntu Linux.Currently there is no client for Ubuntu.
Are you going to create one?If yes,when?
thanks
Title: Re: Ubuntu/Linux client for BitsharesX
Post by: svk on September 11, 2014, 04:12:06 pm
There is a well functioning client for Ubuntu/Linux, you just need to compile it yourself. It's quite simple, you can find the instructions here:

http://wiki.bitshares.org/index.php/BuildInstructionsBitSharesX#Debian.2FUbuntu

Title: Re: Ubuntu/Linux client for BitsharesX
Post by: maqifrnswa on September 11, 2014, 06:10:45 pm
i suggest learning to compile yourself, but if you want you can use the PPA in my signature. You would have to trust that I don't do anything nefarious. I'm a delegate and you are already running software on your computer that I compiled (I'm a DD and Ubuntu contributor), so you are already trusting me.

Even so, I think you should try compiling even if it just gets you closer to the code
Title: Re: Ubuntu/Linux client for BitsharesX
Post by: lafona on September 13, 2014, 02:22:56 am
Hi I am also a user of Ubuntu and I have been having difficulty with the build. It is not a fresh install as it is my everyday computer but I have tried to set the dependencies to the right versions(boost 1.54 etc). However,  every time I go through the process listed above it crashes when it gets to 75%. Any help would be appreciated. Thanks

Here are the last few lines.

[ 75%] Building CXX object libraries/blockchain/CMakeFiles/bts_blockchain.dir/chain_database.cpp.o
/home/lafona/Applications/bts/bitsharesx/libraries/blockchain/chain_database.cpp: In member function ‘void bts::blockchain::chain_database::open(const fc::path&, fc::optional<fc::path>, std::function<void(float)>)’:
/home/lafona/Applications/bts/bitsharesx/libraries/blockchain/chain_database.cpp:1171:63: internal compiler error: in calc_dfs_tree, at dominance.c:401
    } FC_RETHROW_EXCEPTIONS( warn, "", ("data_dir",data_dir) ) }
                                                               ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccjrG95c.out file, please attach this to your bugreport.
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
Title: Re: Ubuntu/Linux client for BitsharesX
Post by: pc on September 13, 2014, 05:51:54 am
An "internal compiler error" is usually caused by insufficient RAM. You need to add more swapspace for compiling. Or even better - add more RAM. :-)
Title: Re: Ubuntu/Linux client for BitsharesX
Post by: jernau on September 13, 2014, 08:17:45 am
Also, you might try closing all applications. Better still, log in without X at the log in screen so you get to a TTY screen (just a black screen with text) and compile from there.
Title: Re: Ubuntu/Linux client for BitsharesX
Post by: santaclause102 on September 13, 2014, 08:21:38 am
An "internal compiler error" is usually caused by insufficient RAM. You need to add more swapspace for compiling. Or even better - add more RAM. :-)

For me 4 GB of Swap wasn't enough. It worked with 8 GB...
Title: Re: Ubuntu/Linux client for BitsharesX
Post by: pc on September 13, 2014, 08:30:54 am
Huh? I'm regularly building it on a netbook with 1G RAM + 1G swap.
Are you using make -j?
Title: Re: Ubuntu/Linux client for BitsharesX
Post by: xeroc on September 13, 2014, 10:34:47 am
that issue is GCC related ….. i though it is fixed in the latest release.
but you can alternatively also use CLANG for comilation:
https://bitsharestalk.org/index.php?topic=8510.msg110667#msg110667
Title: Re: Ubuntu/Linux client for BitsharesX
Post by: santaclause102 on September 13, 2014, 10:57:59 am
Huh? I'm regularly building it on a netbook with 1G RAM + 1G swap.
Are you using make -j?

make -j? didnt help.
Title: Re: Ubuntu/Linux client for BitsharesX
Post by: pc on September 13, 2014, 12:16:24 pm
No... I was asking if you're using the -j flag when running make. That would mean several compiler processes running in parallel, to make better use of multi-core CPUs. Of course that also requires much more memory and only makes sense when you don't run into swapping.

High optimization levels also consume more memory, and 64bit architectures require more than 32bit. I really don't see why you should need several GB, though.
Title: Re: Ubuntu/Linux client for BitsharesX
Post by: santaclause102 on September 13, 2014, 12:22:48 pm
I compiled it with 4GB Swap and make -j (as you described) as well as with a 4 GB Swap and without make -j. The only thing that worked was to increase the swap to 8 GB (no make -j).