Author Topic: How-To build 0.5.3 in Linux console  (Read 2200 times)

0 Members and 1 Guest are viewing this topic.

38PTSWarrior

  • Guest
The solution to the missing leveldb link is in my earlier post which references https://bitsharestalk.org/index.php/topic,15451.msg203324.html#msg203324

Quoting it here:

Code: [Select]
rm -r libraries/leveldb
cd libraries
git clone https://github.com/bitcoin/leveldb.git

Thanks Cube.  I hadn't read the post you linked.   I should have, but was in a hurry when I posted.

Also thanks from me, I was a bit busy and stressed. I did not have to compile 0.5.3 at the end.

Offline puppies

  • Hero Member
  • *****
  • Posts: 1659
    • View Profile
  • BitShares: puppies
The solution to the missing leveldb link is in my earlier post which references https://bitsharestalk.org/index.php/topic,15451.msg203324.html#msg203324

Quoting it here:

Code: [Select]
rm -r libraries/leveldb
cd libraries
git clone https://github.com/bitcoin/leveldb.git

Thanks Cube.  I hadn't read the post you linked.   I should have, but was in a hurry when I posted.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline cube

  • Hero Member
  • *****
  • Posts: 1404
  • Bit by bit, we will get there!
    • View Profile
  • BitShares: bitcube
The solution to the missing leveldb link is in my earlier post which references https://bitsharestalk.org/index.php/topic,15451.msg203324.html#msg203324

Quoting it here:

Code: [Select]
rm -r libraries/leveldb
cd libraries
git clone https://github.com/bitcoin/leveldb.git
ID: bitcube
bitcube is a dedicated witness and committe member. Please vote for bitcube.

Offline puppies

  • Hero Member
  • *****
  • Posts: 1659
    • View Profile
  • BitShares: puppies
Puppies wrote a guide for compiling 0.x.x Bitshares that I used to use.

https://bitsharestalk.org/index.php?topic=6008.msg80548#msg80548

Worked great for me every time until the day they started releasing precompiled linux binaries.

This will not work because leveldb has changed its link.  I encountered the same problem some time back and I had to download leveldb separately.

Exactly.  You can find an explanation of what to do in this case in the first couple pages of the original bitshares 2 test net thread.  That is if it will build with the newer leveldb.  When I get a chance I'll build 0.5.3 to see if it works and post instructions.  Unless someone beats be to it.

edit.  It looks like there are a lot of submodule paths that will need manual updating to build bts 0.5.3
« Last Edit: November 01, 2015, 05:06:25 am by puppies »
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline cube

  • Hero Member
  • *****
  • Posts: 1404
  • Bit by bit, we will get there!
    • View Profile
  • BitShares: bitcube
Puppies wrote a guide for compiling 0.x.x Bitshares that I used to use.

https://bitsharestalk.org/index.php?topic=6008.msg80548#msg80548

Worked great for me every time until the day they started releasing precompiled linux binaries.

This will not work because leveldb has changed its link.  I encountered the same problem some time back and I had to download leveldb separately.
ID: bitcube
bitcube is a dedicated witness and committe member. Please vote for bitcube.

unreadPostsSinceLastVisit

  • Guest
Puppies wrote a guide for compiling 0.x.x Bitshares that I used to use.

https://bitsharestalk.org/index.php?topic=6008.msg80548#msg80548

Worked great for me every time until the day they started releasing precompiled linux binaries.

Offline cube

  • Hero Member
  • *****
  • Posts: 1404
  • Bit by bit, we will get there!
    • View Profile
  • BitShares: bitcube
...
Unable to checkout '028f9409247be6d3d09a157e8eb347a173afc599' in submodule path 'libraries/leveldb'

There you go. leveldb dependency error.  The leveldb link is no longer valid.  Your link has a solution to the missing leveldb - see https://bitsharestalk.org/index.php/topic,15451.msg203324.html#msg203324
ID: bitcube
bitcube is a dedicated witness and committe member. Please vote for bitcube.

38PTSWarrior

  • Guest

Edit:
I downloaded the chain, ThAnKs Betax, and will check if things can be fixed. Then export and just use the file also in case it will miss something for Graphene.

git clone https://github.com/bitshares/bitshares OK
cd bitshares OK
git checkout bts/0.5.3: HEAD is now at 8c908f8... Handle fix 
ok?
git submodule init OK
git submodule update --init --recursive:
Cloning into 'libraries/fc'...
remote: Counting objects: 7595, done.
remote: Total 7595 (delta 0), reused 0 (delta 0), pack-reused 7595
Receiving objects: 100% (7595/7595), 3.78 MiB | 513.00 KiB/s, done.
Resolving deltas: 100% (4376/4376), done.
Checking connectivity... done.
Submodule path 'libraries/fc': checked out '64c6c01b806efcf70bb06aeb55ca317492123d80'
Cloning into 'libraries/leveldb'...
remote: Counting objects: 1353, done.
remote: Total 1353 (delta 0), reused 0 (delta 0), pack-reused 1353
Receiving objects: 100% (1353/1353), 813.83 KiB | 321.00 KiB/s, done.
Resolving deltas: 100% (849/849), done.
Checking connectivity... done.
fatal: reference is not a tree: 028f9409247be6d3d09a157e8eb347a173afc599
Cloning into 'programs/qt_wallet'...
remote: Counting objects: 1779, done.
remote: Total 1779 (delta 0), reused 0 (delta 0), pack-reused 1779
Receiving objects: 100% (1779/1779), 2.09 MiB | 388.00 KiB/s, done.
Resolving deltas: 100% (1121/1121), done.
Checking connectivity... done.
Submodule path 'programs/qt_wallet': checked out 'b40cbecefeb0ba62d1ab5e625ff19d1701803712'
Cloning into 'programs/web_wallet'...
remote: Counting objects: 18960, done.
remote: Total 18960 (delta 0), reused 0 (delta 0), pack-reused 18960
Receiving objects: 100% (18960/18960), 11.13 MiB | 611.00 KiB/s, done.
Resolving deltas: 100% (14457/14457), done.
Checking connectivity... done.
Submodule path 'programs/web_wallet': checked out 'dfdc630dc8eb7b8c77718fea52ceefb3ca9e0ce6'
Cloning into 'vendor'...
remote: Counting objects: 208, done.
remote: Total 208 (delta 0), reused 0 (delta 0), pack-reused 208
Receiving objects: 100% (208/208), 401.98 KiB | 341.00 KiB/s, done.
Resolving deltas: 100% (13/13), done.
Checking connectivity... done.
Submodule path 'vendor': checked out 'b008f5c4ad0414894a886f6204d9fd2f59588276'
Unable to checkout '028f9409247be6d3d09a157e8eb347a173afc599' in submodule path 'libraries/leveldb'





« Last Edit: October 31, 2015, 12:34:59 pm by 38PTSWarrior »

38PTSWarrior

  • Guest
Look at Edit3. It's the same problem. I used a version to backup, which, when trying to import to 0.9.3c produces "wrong password'.

Cube, because of the password bug. 0.9.3c states wrong password. Last time I installed 0.5.3 which accepted the password. But because it wasn't 0.9.3c I used for export but WINDOWS GUI 0.9.2, I have scrambled assets (only BTS shows, all other assets not).

Cmake does not give an error and its the same problem as the link under Edit3.

Only make. Of course I have all dependencies.
« Last Edit: October 31, 2015, 11:23:53 am by 38PTSWarrior »

Offline cube

  • Hero Member
  • *****
  • Posts: 1404
  • Bit by bit, we will get there!
    • View Profile
  • BitShares: bitcube
BTS0.x.x works in 32bit linux.  But why do you need 0.5.x?  It is obsolete.

Your "cmake -DCMAKE_BUILD_TYPE=Release ." probably produces error due to a missing dependency.  Post the cmake output here if you like someone to help you troubleshoot.
ID: bitcube
bitcube is a dedicated witness and committe member. Please vote for bitcube.

Offline Riverhead


I do not think it will build on a 32bit OS.

38PTSWarrior

  • Guest
Edit:
After looking it up I know it now. Checkout..
Edit2:
Everything works until 'make'. It says '/bitshares$ make
make: *** No targets specified and no makefile found.  Stop.'

Edit3:
Here someone has the same problem:
https://bitsharestalk.org/index.php?topic=15451.0


What did I do wrong?

I only have 32bit and need to build 0.5.3 now. In the wiki it only describes what to do to get the latest version but what do I have to type to install 0.5.3?

What do I need to change here?

git clone https://github.com/bitshares/bitshares
cd bitshares
checkout bts/0.5.3
git submodule init
git submodule update --init --recursiv
export LC_ALL="en_US.UTF-8"
cmake -DCMAKE_BUILD_TYPE=Release .
make

Cheers
« Last Edit: October 31, 2015, 03:18:00 am by 38PTSWarrior »