fangli / rancherssh

Native SSH Client for Rancher Containers, provided a powerful native terminal to manage your docker containers
Apache License 2.0
101 stars 12 forks source link

Can not install on Ubuntu 20.04 #11

Open ghost opened 3 years ago

ghost commented 3 years ago

I tried go get github.com/fangli/rancherssh

sudo apt install golang

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libqt5pas-dev libqt5pas1 mpv python3-pyxattr rtmpdump
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  golang-1.13 golang-1.13-doc golang-1.13-go golang-1.13-race-detector-runtime
  golang-1.13-src golang-doc golang-go golang-race-detector-runtime golang-src
Suggested packages:
  bzr | brz mercurial subversion
The following NEW packages will be installed:
  golang golang-1.13 golang-1.13-doc golang-1.13-go
  golang-1.13-race-detector-runtime golang-1.13-src golang-doc golang-go
  golang-race-detector-runtime golang-src
0 upgraded, 10 newly installed, 0 to remove and 143 not upgraded.
Need to get 63.5 MB of archives.
After this operation, 329 MB of additional disk space will be used.
Do you want to continue? [Y/n] y

Then I do

user@user-MS-7817:~/Public/stasco/rancher$ go get github.com/fangli/rancherssh
package github.com/hashicorp/hcl/hcl/printer: cannot find package "github.com/hashicorp/hcl/hcl/printer" in any of:
    /usr/lib/go-1.13/src/github.com/hashicorp/hcl/hcl/printer (from $GOROOT)
    /home/user/go/src/github.com/hashicorp/hcl/hcl/printer (from $GOPATH)

Then I tried to use brew

sudo apt-get install curl
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
...
....
From https://github.com/Homebrew/linuxbrew-core
 * [new branch]      master     -> origin/master
HEAD is now at 78f77f72d99 openjdk@11: add bottle back
==> Downloading https://ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:97e639a64dcec285392b53ad804b5334c324f1d2a8bdc2b5087b8bf8051e332f
######################################################################### 100.0%
==> Pouring portable-ruby-2.6.3_2.x86_64_linux.bottle.tar.gz
Warning: /home/linuxbrew/.linuxbrew/bin is not in your PATH.
  Instructions on how to configure your shell for Homebrew
  can be found in the 'Next steps' section below.
==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics
No analytics data has been sent yet (or will be during this `install` run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations

==> Next steps:
- Run these two commands in your terminal to add Homebrew to your PATH:
    echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/user/.profile
    eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
- Run `brew help` to get started
- Further documentation: 
    https://docs.brew.sh
- Install the Homebrew dependencies if you have sudo access:
    sudo apt-get install build-essential
    See https://docs.brew.sh/linux for more information
- We recommend that you install GCC:
    brew install gcc

Then I do brew install fangli/dev/rancherssh

And get

=> Installing rancherssh from fangli/dev
==> Downloading https://github.com/fangli/rancherssh/archive/v1.1.3.tar.gz
Already downloaded: /home/user/.cache/Homebrew/downloads/681608c4eef2ecc607ec1ade4ec3b66f10acce53171902c9b6047f8f06c86b7b--rancherssh-1.1.3.tar.gz
Warning: Tried to stage empty Language::Go resources array
==> go get -d
Last 15 lines from /home/user/.cache/Homebrew/Logs/rancherssh/01.go:
2021-08-17 11:46:06 +0300

go
get
-d

go: go.mod file not found in current directory or any parent directory; see 'go help modules'

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/fangli/homebrew-dev/issues

Not cool at all 😡