Giter Site home page Giter Site logo

Cannot install Go 1.4 about gvm HOT 6 OPEN

grandstairs avatar grandstairs commented on September 23, 2024 5
Cannot install Go 1.4

from gvm.

Comments (6)

ryan-ju avatar ryan-ju commented on September 23, 2024 3

I found a workaround (on macos). Instead of doing the crazy bootstrapping chain, you can do this:

  1. Download the .tar.gz file from the official site https://go.dev/dl/ and unpack it somewhere (it'll decompress to a go dir)
  2. In a terminal add the go to PATH:
export PATH="<where your go dir is>/bin:$PATH"
  1. Run gvm install go1.22.3 or whatever version you need.
  2. Delete the go dir in step 1
  3. Then run gvm use go1.22.3 --default. Otherwise it'll complain about invalid go version (you need to set a default, gvm doesn't set it for you).

Note the latest go actually requires >= 1.20 to compile

from gvm.

kaykhan avatar kaykhan commented on September 23, 2024

Did you find a fix?

from gvm.

grandstairs avatar grandstairs commented on September 23, 2024

No, I went back to using homebrew for now and just manually changing versions if needed.

$ which go
/opt/homebrew/bin/go
$ go version
go version go1.22.0 darwin/arm64

from gvm.

Kyungminkim31 avatar Kyungminkim31 commented on September 23, 2024

I found a workaround (on macos). Instead of doing the crazy bootstrapping chain, you can do this:

  1. Download the .tar.gz file from the official site https://go.dev/dl/ and unpack it somewhere (it'll decompress to a go dir)
  2. In a terminal add the go to PATH:
export PATH="<where your go dir is>/bin:$PATH"
  1. Run gvm install go1.22.3 or whatever version you need.
  2. Delete the go dir in step 1
  3. Then run gvm use go1.22.3 --default. Otherwise it'll complain about invalid go version (you need to set a default, gvm doesn't set it for you).

Note the latest go actually requires >= 1.20 to compile

This works perfectly! Thanks!

from gvm.

mhazizk avatar mhazizk commented on September 23, 2024

I found a workaround (on macos). Instead of doing the crazy bootstrapping chain, you can do this:

  1. Download the .tar.gz file from the official site https://go.dev/dl/ and unpack it somewhere (it'll decompress to a go dir)
  2. In a terminal add the go to PATH:
export PATH="<where your go dir is>/bin:$PATH"
  1. Run gvm install go1.22.3 or whatever version you need.
  2. Delete the go dir in step 1
  3. Then run gvm use go1.22.3 --default. Otherwise it'll complain about invalid go version (you need to set a default, gvm doesn't set it for you).

Note the latest go actually requires >= 1.20 to compile

perfectly works!!! thank you

from gvm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.