BitShares Forum

Main => Technical Support => Topic started by: islandking on January 14, 2015, 02:15:10 pm

Title: How to update in Linux?
Post by: islandking on January 14, 2015, 02:15:10 pm
What Linux command lines do I need to update my defunct client to 0.5?

Thanks so much!
Title: Re: How to update in Linux?
Post by: xeroc on January 14, 2015, 02:39:15 pm
Afair they are going to release binaries for linux too this time
Title: Re: How to update in Linux?
Post by: islandking on January 14, 2015, 02:46:28 pm
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.
Title: Re: How to update in Linux?
Post by: xeroc on January 14, 2015, 02:49:53 pm
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
Title: Re: How to update in Linux?
Post by: islandking on January 14, 2015, 03:16:46 pm
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?
Title: Re: How to update in Linux?
Post by: xeroc on January 14, 2015, 03:20:11 pm
yes .. assuming your downloaded the source code from github initially .. (git clone)

that's how I upgrade my delegates for ages :P
Title: Re: How to update in Linux?
Post by: islandking on January 14, 2015, 03:22:16 pm
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
Title: Re: How to update in Linux?
Post by: xeroc on January 14, 2015, 03:25:04 pm
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/
Title: Re: How to update in Linux?
Post by: islandking on January 14, 2015, 03:45:12 pm
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?
Title: Re: How to update in Linux?
Post by: xeroc on January 14, 2015, 03:58:32 pm
Lines starting with # are comment ;)
Title: Re: How to update in Linux?
Post by: islandking on January 14, 2015, 04:18:46 pm
Lines starting with # are comment ;)

 +5% Haha thanks... I am still learning.
Title: Re: How to update in Linux?
Post by: bitmarley on January 26, 2015, 01:10:40 am
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??
Title: Re: How to update in Linux?
Post by: vikram on January 26, 2015, 02:07:20 am
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".
Title: Re: How to update in Linux?
Post by: bitmarley on January 26, 2015, 03:49:13 am
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>


 
Title: Re: How to update in Linux?
Post by: vikram on January 26, 2015, 07:20:44 am
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.
Title: Re: How to update in Linux?
Post by: bitmarley on January 26, 2015, 09:12:53 am
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.

Title: Re: How to update in Linux?
Post by: xeroc on January 26, 2015, 09:37:35 am
@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/
Title: Re: How to update in Linux?
Post by: bitmarley on January 26, 2015, 12:24:42 pm
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