Comments (5)
Perhaps here is where the potential switch can be: https://github.com/moovweb/gvm/blob/master/scripts/install#L81
We can use what go does:
# Test for Windows.
53 case "$(uname)" in
54 *MINGW* | *WIN32* | *CYGWIN*)
55 echo 'ERROR: Do not use make.bash to build on Windows.'
56 echo 'Use make.bat instead.'
57 echo
58 exit 1
59 ;;
60 esac
Unfortunately I'm not well versed in the arts of the bash script. If someone else can help?
from gvm.
Ping @jbussdieker
from gvm.
I just tried out using make.bat.
It gives out a permission denied error.
You need chmod it in Cygwin just prior to running it, here's a modified install script.
compile_go() {
display_message " * Compiling..."
unset GOARCH && unset GOOS && unset GOPATH && unset GOBIN && unset GOROOT &&
export GOBIN=$GO_INSTALL_ROOT/bin &&
export PATH=$GOBIN:$PATH &&
export GOROOT=$GO_INSTALL_ROOT &&
#cd $GO_INSTALL_ROOT/src && ./all.bash &> $GVM_ROOT/logs/go-$GO_NAME-compile.log ||
cd "$GO_INSTALL_ROOT/src"
chmod 777 ./make.bat
./make.bat &> "$GVM_ROOT/logs/go-$GO_NAME-compile.log" ||
(rm -rf "$GO_INSTALL_ROOT" && display_fatal "Failed to compile\nCheck the logs at $GVM_ROOT/logs/go-$GO_NAME-compile.log")
}
However after that comes some compilation errors:
# Building C bootstrap tool.
cmd/dist
cmd/dist/build.c:21:16: error: universal character names are only valid in C++ and C99 [-Werror]
char *goroot = GOROOT_FINAL;
^
cmd/dist/build.c:21:16: error: incomplete universal character name \U
cmd/dist/build.c:21:16: error: unknown escape sequence: '\C' [-Werror]
cmd/dist/build.c:21:16: error: unknown escape sequence: '\.' [-Werror]
cmd/dist/build.c:21:16: error: unknown escape sequence: '\g' [-Werror]
cmd/dist/build.c:21:16: error: unknown escape sequence: '\g' [-Werror]
cmd/dist/build.c:22:22: error: universal character names are only valid in C++ and C99 [-Werror]
char *goroot_final = GOROOT_FINAL;
^
cmd/dist/build.c:22:22: error: incomplete universal character name \U
cmd/dist/build.c:22:22: error: unknown escape sequence: '\C' [-Werror]
cmd/dist/build.c:22:22: error: unknown escape sequence: '\.' [-Werror]
cmd/dist/build.c:22:22: error: unknown escape sequence: '\g' [-Werror]
cmd/dist/build.c:22:22: error: unknown escape sequence: '\g' [-Werror]
cc1: all warnings being treated as errors
Not sure where to go from here.
from gvm.
@CMCDragonkai your "fix" works at current version of GVM under cygwin (i'm using it with babun).
from gvm.
In babun. it says installs successfully. But under ".gvm\gos\go1.4\bin" go binary not found.
from gvm.
Related Issues (20)
- Please stop polluting .bashrc. HOT 1
- gvm use doesn't seem to work anymore with aliases HOT 1
- MacOS zsh (at least) install fail related to missing default HOT 4
- cd 命令无法使用 HOT 5
- iTerm error after installed gvm HOT 1
- pin version for a particular project HOT 3
- Unreasonable initial dependence
- ubuntu 23.10 after source gvm env ,the cd command cannot work HOT 1
- Why GVM always install `darwin/arm64`
- Overriden cd fails to switch to paths with spaces HOT 6
- panic: invalid path: 'css/bootstrap.min.css'
- Cannot install Go 1.4 HOT 2
- Significant ZSH Performance Slowdown After Adding gvm to PATH
- Startup error when having `cd` already set as alias
- Failed install go1.22 HOT 2
- Path incorrectly modified by GVM script HOT 6
- how to instal specific tmp folder on mac ?
- Message 'sed: first RE may not be empty' when using gvm switch version
- ERROR: Looks like the .git directory is present. Please reinstall GVM. HOT 1
- gvm use command causes GVM_ROOT to change
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gvm.