( SzakiLaci | 2023. 06. 18., v – 12:09 )

NetMaker:

Megint csak Morgót tudom idézni:

 - Tudtam, hogy nem megy majd simán...

Kiderült, hogy a netclient_x86.msi illetve a netclient.exe nem fut 32 biten.

Persze sehol egy szóval nem említik ezt az "apróságot", és még az _X86 is eléggé félrevezető.

Egyetlen lezárt hibajegy van erről az Github-on, ahol egy fejlesztő ezt az 2 sort írta "megoldásként" annak, aki 1 éve felvetette:
 

Fordíts le magadnak:

$ GOARCH=386 GOOS=windows GOHOSTARCH=amd64 CGO_ENABLED=0 go build -o bin/windows/netclient-386

 

De ennyiből fogalmam sincsen, hogyan. Még soha nem fejlesztettem semmit GOlang alatt.

...

Közben letöltöttem a GO-t.

Ezen leírás alapján pofonegyszerűnek kellene lennie.

De a valóságban:

PS E:\WgVPN\NetMaker\netclient-develop> GOARCH=386 GOOS=windows GOHOSTARCH=amd64 CGO_ENABLED=0 go build -o bin/windows/netclient-386
GOARCH=386 : The term 'GOARCH=386' is not recognized as the name of a cmdlet, function, script file, or operable progra
m. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ GOARCH=386 GOOS=windows GOHOSTARCH=amd64 CGO_ENABLED=0 go build -o bi ...
+ ~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (GOARCH=386:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Megpróbáltam "felcserélni" a sorrendet, hogy "go" legyen elől:

PS E:\WgVPN\NetMaker\netclient-develop> go build GOARCH=386 GOOS=windows GOHOSTARCH=amd64 CGO_ENABLED=0 -o bin/windows/netclient-386

go : malformed import path "GOARCH=386": invalid char '='
At line:1 char:1
+ go build GOARCH=386 GOOS=windows GOHOSTARCH=amd64 CGO_ENABLED=0 -o bi ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (malformed impor...nvalid char '=':String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
malformed import path "GOOS=windows": invalid char '='
malformed import path "GOHOSTARCH=amd64": invalid char '='
malformed import path "CGO_ENABLED=0": invalid char '='
malformed import path "-o": leading dash
package bin/windows/netclient-386 is not in GOROOT (C:\Program Files\Go\src\bin\windows\netclient-386)

 

További probléma lesz később, hogy:

 - még ha le is fordítom magamnak, a beépített AUTO-UPDATE szerintem le fogja tölteni a legfrissebbet, kilövi a működő szolgáltatást (deamon-t), felrakja a 64biteset, ami aztán nem fog elindulni.