gophernotes
                                
                                 gophernotes copied to clipboard
                                
                                    gophernotes copied to clipboard
                            
                            
                            
                        how to install kernel in Windows
Sorry to ask but it really seems hard for me to operate the instructions below.
REM Download w/o building.
go get -d github.com/gopherds/gophernotes
cd %GOPATH%\src\github.com\gopherds\gophernotes\zmq-win
REM Build x64 version.
build.bat amd64
move gophernotes.exe %GOPATH%\bin
copy lib-amd64\libzmq.dll %GOPATH%\bin
REM Build x86 version.
build.bat 386
move gophernotes.exe %GOPATH%\bin
copy lib-386\libzmq.dll %GOPATH%\bin
Could you please offer a more clear explanation for this part?
Hi, yeah, I'm not able to test in windows, because I don't have a machine.  Are you able to use the linux subsystem and/or the docker image for Gophernotes.  Are you able to go get and compile other Go programs successfully? When you say "hard to operate," what exactly are you referring to?
Hello @TaoRuan, sorry for the extremely late answer.
The commands you listed are for an old version: gopherds/gophernotes instead of gopherdata/gophernotes. The updated ones are listed here.
They should be executed in a Windows command prompt, and require that you already installed the Mingw compiler listed in the link above and the other necessary Prerequisites. Did you do this part already?
On 64-bit windows, you open the command prompt cmd.exe and type one by one the commands
set GOPATH="%USERPROFILE%\go"
go get -d github.com/gopherdata/gophernotes
cd %GOPATH%\src\github.com\gopherdata\gophernotes\zmq-win
build.bat amd64
move gophernotes.exe %GOPATH%\bin
copy lib-amd64\libzmq.dll %GOPATH%\bin
On 32-bit windows, the commands to enter at cmd.exe prompt are slightly different:
set GOPATH="%USERPROFILE%\go"
go get -d github.com/gopherdata/gophernotes
cd %GOPATH%\src\github.com\gopherdata\gophernotes\zmq-win
build.bat 386
move gophernotes.exe %GOPATH%\bin
copy lib-386\libzmq.dll %GOPATH%\bin
Let me know if you are still stuck in some of the steps listed above.
PS C:\Users\bubth\go\src\github.com\gopherdata\gophernotes\zmq-win> .\build.bat amd64
# github.com/gopherdata/gophernotes/vendor/github.com/pebbe/zmq4
exec: "gcc": executable file not found in %PATH%
PS C:\Users\bubth\go\src\github.com\gopherdata\gophernotes\zmq-win>
I tried installing a third party gcc equivalent, and it just failed silently but still didn't build anything.
Trying to build manually:
PS C:\Users\bubth\go\src\github.com\gopherdata\gophernotes\zmq-win> set target="amd64"
PS C:\Users\bubth\go\src\github.com\gopherdata\gophernotes\zmq-win> set mydir=%~dp0
PS C:\Users\bubth\go\src\github.com\gopherdata\gophernotes\zmq-win> set mydir=%mydir:\=/%
PS C:\Users\bubth\go\src\github.com\gopherdata\gophernotes\zmq-win> set CGO_CFLAGS=-I %mydir%include
PS C:\Users\bubth\go\src\github.com\gopherdata\gophernotes\zmq-win> set CGO_LDFLAGS=-L %mydir%lib-%target% -l zmq
Set-Variable : A parameter cannot be found that matches parameter name 'l'.
At line:1 char:40
+ set CGO_LDFLAGS=-L %mydir%lib-%target% -l zmq
+                                        ~~
    + CategoryInfo          : InvalidArgument: (:) [Set-Variable], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.SetVariableCommand
PS C:\Users\bubth\go\src\github.com\gopherdata\gophernotes\zmq-win> pwd
Path
----
C:\Users\bubth\go\src\github.com\gopherdata\gophernotes\zmq-win
PS C:\Users\bubth\go\src\github.com\gopherdata\gophernotes\zmq-win> set CGO_LDFLAGS=-L C:\Users\bubth\go\src\github.com\gopherdata\gophernotes\zmq-win\lib-a
md64 -l zmq
Set-Variable : A parameter cannot be found that matches parameter name 'l'.
At line:1 char:94
+ ... bth\go\src\github.com\gopherdata\gophernotes\zmq-win\lib-amd64 -l zmq
+                                                                    ~~
    + CategoryInfo          : InvalidArgument: (:) [Set-Variable], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.SetVariableCommand
For context, just running this in docker defeats the purpose of being able to install it on my windows box, where I have multiple different kernels available, and I'd like this one to be available in addition to the other kernels I have installed.
@bubthegreat in gophernotes we provide a batch script. It needs to be run in cmd, not powershell. To run from powershell could you try cmd.exe /c '.\build.bat amd64'?
No one is safe from my idiocy! I'll give that a go.
On Wed, Feb 27, 2019, 1:07 PM Spencer Park [email protected] wrote:
@bubthegreat https://github.com/bubthegreat in gophernotes we provide a batch script. It needs to be run in cmd, not powershell. To run from powershell could you try cmd.exe /c '.\build.bat amd64'?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/gopherdata/gophernotes/issues/64#issuecomment-468010867, or mute the thread https://github.com/notifications/unsubscribe-auth/ALojod7vnybZQ76l2Mlp8HRjNyqk_LOlks5vRuWBgaJpZM4NtkyU .