Unable to install Go packages as getting stream error

Asked
Active3 hr before
Viewed126 times

7 Answers

packagesgettingstreamunableinstallerror
90%

When I try to install the Go Extension in my Visual Studio Code, and I got these error messages as below. Am I missing something here?, What does Einstein mean by “mollusc” in chapter 29 of His book Relativity? ,This is my .bashrc and .bash_profile setting:, Are there (small, pod) hotels for single people in Western countries?

Adding

export GOPATH = * your path to GOPATH *
   export GOROOT = * path to your go installation *
load more v
88%

On Helm install chart I get:,Error: list: failed to list: stream error when reading response body, may be caused by closed connection. Please retry. Original error: stream error: stream ID 3; INTERNAL_ERROR, Pull requests , Pull requests 160

> helm ls
Error: list: failed to list: stream error when reading response body, may be caused by closed connection.Please retry.Original error: stream error: stream ID 3;
INTERNAL_ERROR
load more v
72%

Most users don't need to do this, and will instead install from precompiled binary packages as described in Download and install, a much simpler process. If you want to help develop what goes into those precompiled packages, though, read on. , although, to reiterate, none of these variables needs to be set to build, install, and develop the Go tree. ,If you intend to modify the go source code, and contribute your changes to the project, then move your repository off the release tag, and onto the master (development) branch. Otherwise, skip this step.,Change to the directory where you intend to install Go, and make sure the goroot directory does not exist. Then clone the repository and check out the latest release tag (go1.12, for example):

When run as (for example)

$ GOOS = linux GOARCH = ppc64. / bootstrap.bash
load more v
65%

Watch "Getting started with VS Code Go" for an explanation of how to build your first Go application using VS Code Go.,You can install the Go extension from the VS Code Marketplace.,Install an Extension - Learn about other extensions are available in the Marketplace., Extension Marketplace

By default, formatting is run when you save your Go file. You can disable this behavior by setting editor.formatOnSave to false for the [go] language identifier. You can change this using your JSON setting files.

"[go]": {
   "editor.formatOnSave": false
}
load more v
75%

Oh no, I'm sorry haha I didn't mean as in x2 version of Go. What I meant was since I had already installed Go, and needed to export PATH=$PATH:/usr/local/go/bin to be able to build programs which isn't ideal. did I install Go a second time by using sudo apt update && apt install golang? – richie Nov 14 '18 at 5:09 , but I still have a question...did I just install Go x2? I mean, I was already able to build projects and etc..I just had to ran export PATH=$PATH:/usr/local/go/bin everytime – richie Nov 14 '18 at 2:53 , but I don't wanna have to explicit use the export PATH=$PATH:/usr/local/go/bin command every time I need to build a project...can you show me how I'm supposed to put the export command into the .profile – richie Nov 13 '18 at 15:43 , you were right, the location of the tar,gz file has nothing to do with it. I ran export PATH=$PATH:/usr/local/go/bin and then go version and I get the right version – richie Nov 13 '18 at 15:41

Add /usr/local/go/bin to the PATH environment variable. You can do this by adding this line to your /etc/profile (for a system-wide installation) or $HOME/.profile:

export PATH = $PATH: /usr/local / go / bin
load more v
40%

Go to go-pear and save as go-pear.php. Copy go-pear.php to your server and open the corresponding URL in your browser, for example http://example.com/pear/go-pear.php. , Use curl as shown below to download the go-pear.phar file or just download the go-pear.phar file via your browser. , For a system-wide installation, you will need to execute the go-pear script with increased permissions. This is only recommended for advanced users. , Alternatively, download the go-pear.phar file via your browser.

After you have downloaded and installed PHP, you have to manually execute the batch file located in e.g. c:\php\go-pear.bat. Alternatively, download https://pear.php.net/go-pear.phar with your browser and save the output to a local file named go-pear.phar. You can then run

      php go - pear.phar
load more v
22%

When installed, try to run go version to see the installed version of Go. ,The command above should import github.com/gorilla/mux Go package into this directory $GOPATH/src/github.com/gorilla/mux,The following interactive tutorial will let you discover Golang world : A tour of Go,You can then use this package in your Go programs by importing it. Example:

Install Golang with Homebrew:

$ brew update
$ brew install golang
load more v

Other "packages-getting" queries related to "Unable to install Go packages as getting stream error"