TIBCOSoftware / flogo-cli

Project Flogo Command Line Interface
http://flogo.io
BSD 3-Clause "New" or "Revised" License
57 stars 28 forks source link

Flogo not get installated on WSL for windows (Ubuntu 22.04) #131

Closed Shadab995 closed 2 years ago

Shadab995 commented 2 years ago

Hello ,

I have installed both windows and linux go version 1.18.6 but still when I'm executing the following commands

go install github.com/project-flogo/cli/...@latest

It doesn't install 'flogo'.

I also tried using the other way git clone https://github.com/project-flogo/cli.git cd cli git checkout test_branch go install ./...

but still the same error .

Can you please help me on that. It's very important for me . I have a deadline.

Thank you

mellistibco commented 2 years ago

What is the error you're getting? I'm not able to reproduce the issue.

Shadab995 commented 2 years ago

Thank you for the quick response .

the error is flogo is not getting installed.

when I'm trying to use flogo it gives me the error : 'flogo' not found

mellistibco commented 2 years ago

is $GOPATH/bin added to your PATH env var?

Shadab995 commented 2 years ago

Yes , GOPATH = C:\Program Files\Go\bin

and also via ubuntu in Path : %USERPROFILE%\go\bin

mellistibco commented 2 years ago

Is the flogo binary in go/bin? What happens if you:

cd cli/cmd/flogo
go build
Shadab995 commented 2 years ago

It is showing me this error with Go version 18.6 Screenshot (8)

and this one with Go version 1.12.7

Screenshot (9)

mellistibco commented 2 years ago

I suspect there may be an issue with your installation of go... Is it possible to remove your previous version and install again? All of the errors that you've shown are not within the Flogo CLI code but rather part of go...

Shadab995 commented 2 years ago

Can you tell me what is the specific version of go suitable for Flogo ?

mellistibco commented 2 years ago

Any recent version should suffice. I'm currently using 1.19.

Shadab995 commented 2 years ago

Is the flogo binary in go/bin? What happens if you:

cd cli/cmd/flogo
go build

I can see a file called as "flogo" being created but it's not readable. any idea what can be done ?

mellistibco commented 2 years ago

Great, that's the flogo CLI binary. Feel free to try go install again or manually copy that over to GOPATH/bin and then run execute the flogo CLI as you normally would.

You may have to chmod the file so that you can execute it, jfyi...

Shadab995 commented 2 years ago

Thank you so much for your help.. it worked.