Author Topic: How to update in Linux?  (Read 4254 times)

0 Members and 1 Guest are viewing this topic.

Offline bitmarley

  • Full Member
  • ***
  • Posts: 135
    • View Profile
I have been compiling with the exact commands in the order as you've listed them.
But I wasn't executing those sudo commands after compiling.
Now I just did that and v0.5.3 qt GUI client started!

Thanks everyone!!  :D

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
@bitmarley: You need to also COMPILE the upgraded sourcecode

upgrade process:

Code: [Select]
cd <BitSharesDirectory>
git pull
git checkout bts/5.0.3
git submodule update
make
make forcebuildweb
make BitShares
sudo cp programs/qt_wallet/bin/BitShares /usr/local/bin/
sudo mkdir -p /usr/local/share/icons/
sudo cp programs/qt_wallet/images/qtapp80.png /usr/local/share/icons/BitShares.png
sudo cp programs/qt_wallet/BitShares.desktop /usr/local/share/applications/

Offline bitmarley

  • Full Member
  • ***
  • Posts: 135
    • View Profile
I really appreciate your help. I still don't understand what I need to do to make the update work. When I type
git checkout bts/0.5.3

the output is:
M   libraries/fc
M   programs/qt_wallet
M   programs/web_wallet
Previous HEAD position was 1100744... Update checkpoints
HEAD is now at 8c908f8... Handle fix

Then I run BitShares command line yet the qt client splash screen still says v0.4.27.2-1.


Offline vikram

Code: [Select]
cd <path-to-bitshares>
git checkout bts/0.5.3
git pull


I figured after running the checkout I should try git pull but this error:

You are not currently on a branch. Please specify which
branch you want to merge with. See git-pull(1) for details.

    git pull <remote> <branch>

No need to pull if the checkout succeeded. When updating you should checkout master branch and then pull, then checkout the release tag.

Offline bitmarley

  • Full Member
  • ***
  • Posts: 135
    • View Profile
Code: [Select]
cd <path-to-bitshares>
git checkout bts/0.5.3
git pull


I figured after running the checkout I should try git pull but this error:

You are not currently on a branch. Please specify which
branch you want to merge with. See git-pull(1) for details.

    git pull <remote> <branch>


 

Offline vikram

Code: [Select]
cd <path-to-bitshares>
git pull
git checkout v0.5.0     #error: pathspec 'v0.5.0' did not match any file(s) known to git.
git submodule update
make
make forcebuildweb
make BitShares

I've tried all the above commands they all worked except the checkout.
Now when I run the qt client with BitShares command there is not change to the version number appearing on the splash screen its still is v0.4.27.2-1. And the client sync is now behind by over 3 days.

Any ideas??

You can see that the tag for the latest release is bts/0.5.3 according to: https://github.com/BitShares/bitshares/releases/latest

So you need to do "git checkout bts/0.5.3".

Offline bitmarley

  • Full Member
  • ***
  • Posts: 135
    • View Profile
Code: [Select]
cd <path-to-bitshares>
git pull
git checkout v0.5.0     #error: pathspec 'v0.5.0' did not match any file(s) known to git.
git submodule update
make
make forcebuildweb
make BitShares

I've tried all the above commands they all worked except the checkout.
Now when I run the qt client with BitShares command there is not change to the version number appearing on the splash screen its still is v0.4.27.2-1. And the client sync is now behind by over 3 days.

Any ideas??

Offline islandking

  • Sr. Member
  • ****
  • Posts: 378
  • The king of the island
    • View Profile
Lines starting with # are comment ;)

 +5% Haha thanks... I am still learning.
I've been working on a new electronic cash system that's fully peer-to-peer, with no trusted third party. - Satoshi

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Lines starting with # are comment ;)

Offline islandking

  • Sr. Member
  • ****
  • Posts: 378
  • The king of the island
    • View Profile
ah .. I see ..
If you also want the GUI version compiled then you need those additional steps:
Code: [Select]
make forcebuildweb
make BitShares

# install binaries etc..
sudo cp programs/qt_wallet/bin/BitShares /usr/local/bin/
sudo mkdir -p /usr/local/share/icons/
sudo cp programs/qt_wallet/images/qtapp80.png /usr/local/share/icons/BitShares.png
sudo cp programs/qt_wallet/BitShares.desktop /usr/local/share/applications/

So the instructions you have me won't update the GUI? So I would need to follow those additional commands right?

What does this mean: #install binaries etc?
I've been working on a new electronic cash system that's fully peer-to-peer, with no trusted third party. - Satoshi

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
ah .. I see ..
If you also want the GUI version compiled then you need those additional steps:
Code: [Select]
make forcebuildweb
make BitShares

# install binaries etc..
sudo cp programs/qt_wallet/bin/BitShares /usr/local/bin/
sudo mkdir -p /usr/local/share/icons/
sudo cp programs/qt_wallet/images/qtapp80.png /usr/local/share/icons/BitShares.png
sudo cp programs/qt_wallet/BitShares.desktop /usr/local/share/applications/

Offline islandking

  • Sr. Member
  • ****
  • Posts: 378
  • The king of the island
    • View Profile
yes .. assuming your downloaded the source code from github initially .. (git clone)

that's how I upgrade my delegates for ages :P

I followed these instructions to download initially: https://github.com/BitShares/bitshares/blob/master/BUILD_UBUNTU.md
I've been working on a new electronic cash system that's fully peer-to-peer, with no trusted third party. - Satoshi

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
yes .. assuming your downloaded the source code from github initially .. (git clone)

that's how I upgrade my delegates for ages :P

Offline islandking

  • Sr. Member
  • ****
  • Posts: 378
  • The king of the island
    • View Profile
Afair they are going to release binaries for linux too this time

So how would I update using the terminal commands? I already have an existing client. I just need to update.

Code: [Select]
cd <path-to-bitshares>
git pull
git checkout v0.5.0
git submodule update
make

Thanks xeroc. Is that it?
I've been working on a new electronic cash system that's fully peer-to-peer, with no trusted third party. - Satoshi

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Afair they are going to release binaries for linux too this time

So how would I update using the terminal commands? I already have an existing client. I just need to update.

Code: [Select]
cd <path-to-bitshares>
git pull
git checkout v0.5.0
git submodule update
make