Esselami
Esselami

Reputation: 85

Error running Go program

i'm trying to run a Go program and it always gives me this error i tried googling it but nothing can't see what's the problem! ScreenShot

Executable file (C:/Users!/ABDELLATIF-PC/Desktop/SimpleComputerRemote/Host/bin/server.exe) doesn't exist

Upvotes: 3

Views: 2360

Answers (3)

Nesh
Nesh

Reputation: 13

I managed to find the issue, It is no configuration issue or anything. You have to do 3 things as follows,

1) Make sure GOPATH value is different from GOROOT. 2) Make sure GOBIN value is empty. 3) Your package name on the go file in eclipse should be main and not the package name "hello". This should be the case for at least the file that has main function. To do this, File->New go file->Source file type should be -> Command source file-> Empty main function. Then type your code after which you can build to see the the .exe file in GOPATH/bin and the program run.

Worked for me.

Upvotes: 0

Jin Thakur
Jin Thakur

Reputation: 2773

Its a build issue. Check your bin folder Whether program has access to the folder Check preferences and missing references for the golang project.

Upvotes: 1

VonC
VonC

Reputation: 1328112

The setup process should be driven by Host/install/windows/innosetup-x64.iss for InnoSetup:
You need to check if the setup properly installed the exe, and why it looks for C:/Users!/... instead of C:/Users/...

Upvotes: 0

Related Questions