Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: Problems compiling / running  (Read 469 times)

Offline jpark

  • Newbie
  • *
  • Posts: 7
    • View Profile
Problems compiling / running
« on: August 28, 2014, 06:24:26 PM »

I keep getting this message when trying to run ./lottoshares-qt
I pulled with git ,  ran qmake and make..

error:
bool InitBlockIndex(): Assertion `block.hashMerkleRoot == merklerootGenesisBlock' failed.
Aborted (core dumped)

In debug.log it says there is a bunch of text files (ie. bitcoin.txt dogecoin.txt) required for airdrop not found.

I'm compiling on linux mint 17 and I also tried on another computer with xubuntu 14.04 and get the same results.

Any ideas how to fix this?

Thanks.
« Last Edit: August 28, 2014, 06:27:39 PM by jpark »

Offline ionx

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Problems compiling / running
« Reply #1 on: August 28, 2014, 06:34:18 PM »
Copy the .txt files from the release directory to the top level of lottoshares and run it again.
« Last Edit: August 28, 2014, 06:40:00 PM by ionx »

Offline jpark

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Problems compiling / running
« Reply #2 on: August 28, 2014, 11:36:09 PM »
put them in ~/.lottoshares ?   or where lottoshares-qt resides?

merockstar

  • Guest
Re: Problems compiling / running
« Reply #3 on: August 29, 2014, 12:11:02 AM »
i copied mine /lottoshares/src, then compiled lottosharesd, then compiled qt, and it worked fine.

before i did that I was getting the same error.

Offline jpark

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Problems compiling / running
« Reply #4 on: August 29, 2014, 02:23:22 PM »
All I get now is "Segmentation Fault"  -  I'm now trying to compile with the .zip source file under releases.

And everything looks fine in debug.log.. 
but it just ends at "Initializing Databases..."

I tried copying those text files to all kinds of places, (./lottoshares ./lottoshares/src ./lottoshares/database and a bunch of folders when I compiled) seems to make no difference.

Edit: 

strace shows that it looks like its trying to open "bitcoin.txt"
then sigsegv pops up  {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0}
and  +++killed by SIGSEGV +++


Any other suggestions?

Thanks
« Last Edit: August 29, 2014, 02:29:10 PM by jpark »

Offline jpark

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Problems compiling / running
« Reply #5 on: August 29, 2014, 03:22:54 PM »
i copied mine /lottoshares/src, then compiled lottosharesd, then compiled qt, and it worked fine.

before i did that I was getting the same error.

1. Did you use the zip source file,  or did you git pull?
2. How do you compile just lottosharesd ? 
3. Why can't it just be written in the compilation instructions the correct way to do this or what needs to be done - its just that I don't have these type of problems compiling other clients :(


« Last Edit: August 29, 2014, 03:35:08 PM by jpark »

Offline FreeTrade

  • Moderator
  • Hero Member
  • *****
  • Posts: 700
    • View Profile
Re: Problems compiling / running
« Reply #6 on: August 29, 2014, 03:28:44 PM »
Sounds like you might be running into a memory problem - the genesis block is big . . maybe adding more memory would help.
“People should be more sophisticated? How are you gonna get that done?” - Jerry Seinfeld reply to Bill Maher

Offline jpark

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Problems compiling / running
« Reply #7 on: August 29, 2014, 03:33:11 PM »
Sounds like you might be running into a memory problem - the genesis block is big . . maybe adding more memory would help.

That could be,  I have 2 GB though.  Other clients (dogecoin, litecoin, bitcoin) compile and run fine..
Maybe this requires more?

Edit: actually I have 2 GB..  thought I only had 1

« Last Edit: August 29, 2014, 03:41:38 PM by jpark »

Offline jpark

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Problems compiling / running
« Reply #8 on: August 29, 2014, 03:55:34 PM »
Hmm..  in strace it shows about bitcoin.txt being an html format.
When I saved it from git,  it's html somehow

I'll try using the actual text format files out of the zip source..

Sounds like maybe this is the problem.


Offline jpark

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Problems compiling / running
« Reply #9 on: August 29, 2014, 05:03:33 PM »
Copied the text files from source .zip to the unzipped folder where lottoshares-qt was built.
The don't have to be in the hidden ~/.lottoshares

Seems to be working now.. great.


Offline FreeTrade

  • Moderator
  • Hero Member
  • *****
  • Posts: 700
    • View Profile
Re: Problems compiling / running
« Reply #10 on: August 29, 2014, 05:30:48 PM »
Thanks for the report - any changes you'd recommend to the repo to avoid this problem for future users?
“People should be more sophisticated? How are you gonna get that done?” - Jerry Seinfeld reply to Bill Maher

merockstar

  • Guest
Re: Problems compiling / running
« Reply #11 on: August 29, 2014, 09:46:29 PM »
i copied mine /lottoshares/src, then compiled lottosharesd, then compiled qt, and it worked fine.

before i did that I was getting the same error.

1. Did you use the zip source file,  or did you git pull?
2. How do you compile just lottosharesd ? 
3. Why can't it just be written in the compilation instructions the correct way to do this or what needs to be done - its just that I don't have these type of problems compiling other clients :(

I git pulled.

You go into /src directory and type "make -f makefile.unix" then after that compile go to /lottoshares and "cmake" "make"

It is, but you have to dig for it, and the instructions are for litecoin. Idk.

Glad you got it to work.

 

Google+