wskdeploy not recognized error on Windows 10 CLI - openwhisk

I have just gone through the OpenWhisk-wskdeploy set up page.
After building the tool (godep go build -o wskdeploy) I got the wskdeploy file available in the working dir (src/github.com/apache/openwhisk-wskdeploy/).
When I try to test the build though I got the following:
C:\Users\decaro\go\src\github.com\apache\openwhisk-wskdeploy>.\wskdeploy --help
'.\wskdeploy' is not recognized as an internal or external command,
operable program or batch file.
How can I fix that?

Related

'hdfs' is not recognized as an internal or external command, operable program or batch file

I am following this instruction to install hadoop 3.3.1 on Windows 10 machine, I followed all the steps as it says but when I reached to step 6, after replacing the bin folder, it asks to run the following command:
`– Format the NameNode
– Open cmd and type command “hdfs namenode –format”`
And I did, but I received the following error message:
'hdfs' is not recognized as an internal or external command, operable program or batch file.
I checked my system environment variables and they all seem to be OK as following:
`echo %JAVA_HOME%
C:\ProgramData\OpenJDK
echo %HADOOP_HOME%
C:\ProgramData\hadoop`
Also added C:\ProgramData\OpenJDK\bin and C:\ProgramData\hadoop to system path. But I don't know what is the problem and why it doesn't work?
I found the problem is that all the installation instructions say that you should replace downloaded bin folder with the existing hadoop/bin folder, but you shouldn't do that!
In fact you MUST add up the files there are inside the downloaded bin folder to the files already exist within the hadoop/bin folder. You HAVEN'T delete the previous hadoop/bin folder or the files inside.

'make' is not recognized as an internal or external command, operable program or batch file. [Sphinx]

I was trying to study sphinx python documentation, i was struggling to make an html inside of my directory. I already try it to my cmd prompt but the error shows.
$ make html
P.s I already install Python and NodeJs and Git (incase)
I get my own answer on my own question.
You should locate your own directory and make sure you sphinx-build in your folder

Error while executing .go file. Not recognized even when go is installed

When I type go run file.go in command line, it says go is not recognized as an internal or external command, operable program or batch file. I have Go installed.
Edit: sorry that was a weird question
You should put the directory where you installed Go (default c:\Go\bin) in your PATH environment variable.

Windows 10 golang setup. Error, Not in an environment

I am running into issues setting up go for the first time on a Windows 10 machine.
I followed the instructions from the install. https://golang.org/doc/install?download=go1.10.windows-386.msi
When I CD to my project E:\goProjects\goWebApp\src and run go build, I receive the following error.
C:\windows\system32>go version
Not in an environment
C:\Users\MyUser~1\AppData\Local\Temp\go_there.bat' is not recognized as an internal or external command,
operable program or batch file.
My system variables are as follows:
GOPATH=E:\goProjects\goWebApp
GOROOT=C:\Go
PATH=C:\Go\bin
If I run go version from C:\Go\bin everything works fine. Running go command from anywhere outside of this directory does not work. I have also tried restarting my cmd prompt and restarting my computer. Still no luck. Has anyone else ran into this issue? Or know what I might have done wrong?
Turns out I had two go locations in my PATH (sort of). When I ran the command where go from command prompt two paths were returned.
Something like this..
C:\tools\devTools\bin
C:\Go\bin\go.exe
There apparently was a bat file in devTools\bin called go.bat. This was unrelated to golang itself, just coincidental naming unfortunately.This was executing instead of the go binary, which in return was throwing the random error with the Not in an environment message.
To fix the issue I just removed the devTools path from my PATH variable for now.

How can I install go mobile and have it work on windows?

I am having issues installing gomobile on windows with the command :
go get golang.org/x/mobile/cmd/gomobile
It doesn't give me any error but it doesn't seem to be doing anything. When trying to execute gomobile afterwards I get the error:
'gomobile' is not recognized as an internal or external command,
operable program or batch file.
So I figured the PATH where the go executable is differs from GOPATH. To find what my GOPATH was, I used the command
go env GOPATH
Have you added the path to gomobile location to your PATH variable?
Check if it is included with batch command
set PATH

Resources