Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

ghostman.sh install symlinks are malformed and tar contents are missing on aarch64 platform #7

Open
skepticalshoe opened this issue Jul 15, 2022 · 4 comments

Comments

@skepticalshoe
Copy link

bash bin/ghostman.sh install for the aarch64 platform results in broken links for the binaries.

cd
# force re-install 
rm -r ~/ghostcore

bash bin/ghostman.sh install
 --> Downloading https://github.com/ghost-coin/ghost-core/releases/download/v0.21.1.10/ghost-0.21.1.10-aarch64-linux-gnu.tar.gz...  done!
 --> Unpacking ghost-0.21.1.10-aarch64-linux-gnu.tar.gz... tar: Substituting `.' for empty member name
 done!
mv: cannot stat 'ghost-0.21.1.10/bin/ghostd': No such file or directory
mv: cannot stat 'ghost-0.21.1.10/bin/ghost-cli': No such file or directory
mv: cannot stat 'ghost-0.21.1.10/bin/ghost-wallet': No such file or directory

The results in sym links fail because they point to a non existent file location.

ls ~/ghostcore/
ghost-0.21.1.10-aarch64-linux-gnu.tar.gz              ghost-cli  ghost-wallet
ghost-0.21.1.10-aarch64-linux-gnu.tar.gz.DIGESTS.txt  ghostd

ls -l ~/ghostcore/ shows broken links links:
ghost-cli -> ghost-cli-0.21.1.10
ghostd -> ghostd-0.21.1.10
ghost-wallet -> ghost-wallet-0.21.1.10

Workaround:

tar -xvf ~/ghostcore/ghost-0.21.1.10-aarch64-linux-gnu.tar.gz -C ~/ghostcore
mv ~/ghostcore/ghost-0.21.1.10/* ~/ghostcore/
#(or fix the sym links) 
@bleach86
Copy link
Collaborator

this has been deprecated in favor of https://github.com/ghost-coin/GhostVault

@skepticalshoe
Copy link
Author

Ok - I was working on a cold staking node and the guide references ghostman. (see https://ghostbymcafee.medium.com/vps-cold-staking-setup-612d6f63242b )

I fixed the install script by editing the ARM if statement. The arm binaries do not contain a "bin" subdirectory.

ghostman/lib/functions.sh starting line 486

    # place it ---------------------------------------------------------------

    echo "LATEST_VERSION = $LATEST_VERSION"  
    if [ $ARM != 1 ];then
        mv "ghost-$LATEST_VERSION/bin/ghostd" "ghostd-$LATEST_VERSION"
        mv "ghost-$LATEST_VERSION/bin/ghost-cli" "ghost-cli-$LATEST_VERSION"
        mv "ghost-$LATEST_VERSION/bin/ghost-wallet" "ghost-wallet-$LATEST_VERSION"
        mv "ghost-$LATEST_VERSION/bin/ghost-qt" "ghost-qt-$LATEST_VERSION"
    else
        mv "ghost-$LATEST_VERSION/ghostd" "ghostd-$LATEST_VERSION"
        mv "ghost-$LATEST_VERSION/ghost-cli" "ghost-cli-$LATEST_VERSION"
        mv "ghost-$LATEST_VERSION/ghost-wallet" "ghost-wallet-$LATEST_VERSION"
        mv "ghost-$LATEST_VERSION/ghost-qt" "ghost-qt-$LATEST_VERSION"
    fi

@skepticalshoe
Copy link
Author

I suggest updating the link from https://www.ghostbyjohnmcafee.com/faq/staking that points to the stale medium article (https://ghostbymcafee.medium.com/vps-cold-staking-setup-612d6f63242b ). Then we can close this one out.

@bleach86
Copy link
Collaborator

bleach86 commented Jul 15, 2022

please see https://ghostveterans.com/vps for a guide

Also, thank you for pointing out the link, it will be fixed shortly

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants