Jump to content
presstab

Installing HBN on Ubuntu server 13.10

Recommended Posts

So I am pretty much brand new to Linux, but it is apparent that I will need it more and more as time goes on. I am trying to get the HoboNickels version 1.3 to compile. I am using the make -f makefile.unix command.  It runs through the compilation and then gets hung up:

 

 

s-1.3.0.0-linux/src/src/leveldb/helpers -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
In file included from db.cpp:6:0:
db.h:14:20: fatal error: db_cxx.h: No such file or directory

 

 

Does anyone know what I am doing wrong?

Share this post


Link to post
Share on other sites

Think I might have figured out the problem I was having, needed libdb-dev and libdb++-dev?  Got those on now. And when I run the makefile it now stops here 

 


In file included from bitcoinrpc.h:16:0,
                 from init.cpp:7:
json/json_spirit_writer_template.h: In function ‘String_type json_spirit::non_printable_to_string(unsigned int)’:
json/json_spirit_writer_template.h:31:50: warning: typedef ‘Char_type’ locally defined but not used [-Wunused-local-t                                     ypedefs]
         typedef typename String_type::value_type Char_type;
 
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.8/README.Bugs> for instructions.
make: *** [obj/init.o] Error 4
 

Share this post


Link to post
Share on other sites

Also I have installed these as detailed by digitsmith

 

Depending on what you've got installed you may also have other dependency issues.

 
For qt4 I usually install the following.
 
sudo apt-get install qt4-dev-tools libqt4-dev libqt4-core libqt4-gui
 
You'll probably also need.
 
sudo apt-get install build-essential
sudo apt-get install libssl-dev
sudo apt-get install libqrencode-dev
sudo apt-get install libdb5.1++-dev

 

 

______________________

Edit

Found this thread https://bitcointalk.org/index.php?topic=304389.0

Might be that I don't have enough ram.

Share this post


Link to post
Share on other sites

I think you ran out of RAM.

 Try adding swap if you don't have one.

 

I'm not sure this is the problem but it looks like one bug I had... I installed the headless HBN client on a VPS but I needed to upgrade to 1Gig of RAM or it wouldn't compile.  Even with a swap file on!

 

Might be the same thing here for you

 

EDIT: I guess I didn't read all the way through! I saw your edit after posting  :huh:

Share this post


Link to post
Share on other sites

Ok so I switched to a server with enough ram. And I think I got it to install correctly.

 

For now I am just trying to figure out how to use this. I have my hobonickels.conf file setup correctly I believe, with some seed nodes as well.

 

I think I did something right because this just worked for me!  I am slow at this type of thing, but learning...

 

 


[email protected]/HoboNickels-1.3.0.0-linux/src/src$ ./hobonickelsd getpeerinfo
[
    {
        "addr" : "80.229.249.107:7372",
        "services" : "00000001",
        "lastsend" : 1392759274,
        "lastrecv" : 1392759274,
        "conntime" : 1392758754,
        "bytessent" : 288931,
        "bytesrecv" : 2594577,
        "blocksrequested" : 0,
        "version" : 70003,
        "subver" : "/HoboNickels:0.7.5/",
        "inbound" : false,
        "releasetime" : 0,
        "startingheight" : 601774,
        "banscore" : 0
    },
[snip]

Share this post


Link to post
Share on other sites

Good job presstab.

 

Here is a good start for rpc commands https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list

 

This might be a good topic for the wiki. We have more and some a slightly different.

 

This is true, it would make a great addition to the wiki.  I don't think I can add new pages to the wiki, but I would set up the page if I could

Share this post


Link to post
Share on other sites

This is true, it would make a great addition to the wiki.  I don't think I can add new pages to the wiki, but I would set up the page if I could

 

You do have the ability to create pages (or at least should as long as I followed the direction correctly).  Just search for a page and if it doesn't exist it says create this page. It would be great to work on it together.  I threw in some example text just to get the formatting going and will continue to fill in the commands. I am thinking that it would be nice to list all of the commands that come up with the help command and an explanation of the results.

 

http://wiki.hobonickels.info/index.php?title=RPC_Commands

Share this post


Link to post
Share on other sites

Some basics calls I'm used to use for my "staking wallet" :

./hobonickelsd getinfo; ./hobonickelsd getdifficulty; ./hobonickelsd listtransactions |grep "amount\|category";./hobonickelsd getbalance

 

If you're running last Tranz rev from git, you can add a "better" getinfo adding the bool "true" :

./hobonickelsd getinfo true; ./hobonickelsd getdifficulty; ./hobonickelsd listtransactions |grep "amount\|category";./hobonickelsd getbalance

 

For me, it's my "end of the day" and "morning" command, so I can compare how much I earn by sleeping :P

A nice one is also the :

listaddressgroupings 

Share this post


Link to post
Share on other sites

This return something like this :

 

~$ ./hobonickelsd getinfo; ./hobonickelsd getdifficulty && ./hobonickelsd getbalance && ./hobonickelsd listtransactions |grep "amount\|category";./hobonickelsd getbalance
{
    "version" : "v1.3.0.0-g76880ab-hobo",
    "protocolversion" : 70003,
    "blocks" : 603940,
    "timeoffset" : 0,
    "moneysupply" : 3060846.23204300,
    "connections" : 119,
    "wallets" : 1,
    "proxy" : "",
    "ip" : "2001:41d0:8:9c11::1",
    "difficulty" : 1.84294151,
    "testnet" : false,
    "paytxfee" : 0.00100000,
    "errors" : ""
}
{
    "proof-of-work" : 1.84294151,
    "proof-of-stake" : 0.00390625,
    "search-interval" : 1
}
25126.20624000
        "category" : "generate",
        "subcategory" : "stake",
        "amount" : 2.69986600,
        "category" : "generate",
        "subcategory" : "stake",
        "amount" : 2.70123600,
        "category" : "generate",
        "subcategory" : "stake",
        "amount" : 2.78884800,
        "category" : "generate",
        "subcategory" : "stake",
        "amount" : 1395.92066700,
        "category" : "receive",
        "amount" : 51.18620100,
        "category" : "generate",
        "subcategory" : "stake",
        "amount" : 2.78748000,
        "category" : "generate",
        "subcategory" : "stake",
        "amount" : 2.78884800,
        "category" : "generate",
        "subcategory" : "stake",
        "amount" : 2.72176900,
        "category" : "generate",
        "subcategory" : "stake",
        "amount" : 2.70397300,
        "category" : "immature",
        "amount" : 2.69849800,
25126.20624000

Share this post


Link to post
Share on other sites

You do have the ability to create pages (or at least should as long as I followed the direction correctly).  Just search for a page and if it doesn't exist it says create this page. It would be great to work on it together.  I threw in some example text just to get the formatting going and will continue to fill in the commands. I am thinking that it would be nice to list all of the commands that come up with the help command and an explanation of the results.

 

http://wiki.hobonickels.info/index.php?title=RPC_Commands

 

Yup you're right, searching for a page get's the link to create if it's not found.

 

I saw your example page, I'll try to fill in as much as I can and work from there

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

Cryptocurrenytalk Logo

 

News, information, and discussions about cryptocurrencies, blockchains, technology, and events. Blockchaintalk is your source for advice on what to mine, technical details, new launch announcements, and advice from trusted members of the community. Cryptocurrencytalk is your source for everything crypto. We love discussing the world of cryptocurrencies.

 

   
×

Important Information

By using CRYPTOCURRENCYTALK.COM, you agree to our Terms of Use.