Skip to content
This repository has been archived by the owner on Sep 15, 2020. It is now read-only.

not able to install on windows #758

Open
danishshaikh42 opened this issue Jun 19, 2018 · 9 comments
Open

not able to install on windows #758

danishshaikh42 opened this issue Jun 19, 2018 · 9 comments
Assignees

Comments

@danishshaikh42
Copy link

danishshaikh42 commented Jun 19, 2018

Getting this error while installing holochain on windows

C:\Users\Admin\go\src\github.com\holochain\holochain-proto>go get github.com\holochain\holochain-proto\cmd\hcdev

github.com/holochain/holochain-proto

.\node.go:439:15: undefined: swarm.NewNetwork

@ddd-mtl
Copy link
Contributor

ddd-mtl commented Jun 19, 2018

Hi danishwinjit.

That's because you need to run gx-go first. The make.bat doesn't do it on windows.

If you have make installed, I suggest you remove the make.bat and run the makefile.
Or you can manually run those commands yourself before running make.bat :
go get -u github.com/whyrusleeping/gx
go get -u github.com/whyrusleeping/gx-go
gx-go get github.com/holochain/holochain-proto

@ddd-mtl ddd-mtl self-assigned this Jun 19, 2018
@danishshaikh42
Copy link
Author

Did as you said but got the error..kindly help

C:\Users\Admin\go\src\github.com\holochain\holochain-proto>make
makefile:8: using hardcoded repo of github.com/holochain/holochain-proto
go get -u github.com/whyrusleeping/gx
go get -u github.com/whyrusleeping/gx-go
gx-go get github.com/holochain/holochain-proto
[�[33mget �[0m] [fetch] go-multihash QmU9a9NV9RdPNwZQDYd5uKsm6N6LJLSvLbywDDYFbaaC6P
[0 / 100] 1sERROR: from shell.Get(): symlink ..\bin C:\Users\Admin\go\src\gx\ipfs\QmU9a9NV9RdPNwZQDYd5uKsm6N6LJLSvLbywDDYFbaaC6P.part\go-multihash\test\sharness\bin: A required privilege is not held by the client.
retrying fetch QmU9a9NV9RdPNwZQDYd5uKsm6N6LJLSvLbywDDYFbaaC6P after a second...
[0 / 100] 3sERROR: from shell.Get(): symlink ..\bin C:\Users\Admin\go\src\gx\ipfs\QmU9a9NV9RdPNwZQDYd5uKsm6N6LJLSvLbywDDYFbaaC6P.part\go-multihash\test\sharness\bin: A required privilege is not held by the client.
retrying fetch QmU9a9NV9RdPNwZQDYd5uKsm6N6LJLSvLbywDDYFbaaC6P after a second...
[0 / 100] 5sERROR: from shell.Get(): symlink ..\bin C:\Users\Admin\go\src\gx\ipfs\QmU9a9NV9RdPNwZQDYd5uKsm6N6LJLSvLbywDDYFbaaC6P.part\go-multihash\test\sharness\bin: A required privilege is not held by the client.
[�[31merr �[0m] [fetch] go-multihash QmU9a9NV9RdPNwZQDYd5uKsm6N6LJLSvLbywDDYFbaaC6P symlink ..\bin C:\Users\Admin\go\src\gx\ipfs\QmU9a9NV9RdPNwZQDYd5uKsm6N6LJLSvLbywDDYFbaaC6P.part\go-multihash\test\sharness\bin: A requirERROR: [49 / 49 ] parallel fetch: failed to fetch package: QmU9a9NV9RdPNwZQDYd5uKsm6N6LJLSvLbywDDYFbaaC6P: symlink ..\bin C:\Users\Admin\go\src\gx\ipfs\QmU9a9NV9RdPNwZQDYd5uKsm6N6LJLSvLbywDDYFbaaC6P.part\go-multihash\test\sharness\bin: A required privilege is not held by the client.
ERROR: install deps: failed to fetch dependencies
ERROR: Error: exit status 1
make: *** [deps] Error 1

@ddd-mtl
Copy link
Contributor

ddd-mtl commented Jun 24, 2018

Do you have admin rights when launching that command?

@SimunKaracic
Copy link

I was facing the same problem (minus the required priviledge).

My problem was that i was running the go get and gx-go get commands in powershell, and they were failing. When run from cmd, everything went smoothly.

Are you using powershell or cmd?

@fatihdemirtc
Copy link

if you add following rows to top of ...\go\src\github.com\holochain\holochain-proto\make.bat file, Error will fix

go get -u github.com/whyrusleeping/gx
go get -u github.com/whyrusleeping/gx-go
gx-go get github.com/holochain/holochain-proto

@serinoto
Copy link

serinoto commented Sep 9, 2018

Hi,

I am beginner here, please can someone help me out with installation on Windows 10

                                I got to      

step 2 Double-click Path, and in the window that pops up add the following entries:

%GOPATH%\bin

C:\Go\bin (Or wherever you installed Go to+\bin).

C:\Program Files (x86)\GnuWin32\bin (Or wherever you installed GnuWin32 make to+\bin).

I didn't do any of what's shown in step two (don't know how to get to that path window???)
Also, I am using Git CMD for my commands and getting to the following while trying (go get -u github.com/whyrusleeping/gx) :

C:\Go-work>go get -u github.com/whyrusleeping/gx

cd C:\Go-work\src\github.com\ipfs\go-ipfs-cmdkit; git pull --ff-only

There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

git branch --set-upstream-to=origin/<branch> master

package github.com/ipfs/go-ipfs-cmdkit/files: exit status 1

cd C:\Go-work\src\github.com\gogo\protobuf; git pull --ff-only

fatal: not a git repository (or any of the parent directories): .git
package github.com/gogo/protobuf/proto: exit status 128

I would really appreciate the help as I want to install Holochain and continue learning.

Thanks.

@serinoto
Copy link

serinoto commented Sep 9, 2018

I was able to figure it out, now i have to run the make command but it won't find the file :( help...

@fducatelle
Copy link

I got the same problem as @danishwinjit :

ERROR: install deps: failed to fetch package: QmU9a9NV9RdPNwZQDYd5uKsm6N6LJLSvLbywDDYFbaaC6P: symlink ..\bin C:\Users\fduca\go\src\gx\ipfs\QmU9a9NV9RdPNwZQDYd5uKsm6N6LJLSvLbywDDYFbaaC6P.part\go-multihash\test\sharness\bin: Een van de vereiste bevoegdheden is niet aan de client toegekend.

I think it may have to do with this issue in Go: golang/dep#773

Any suggestions?

@fducatelle
Copy link

OK, could finally solve this by disabling "User Account Control: Run all administrators in Admin Approval Mode", see https://appuals.com/a-required-privilege-is-not-held-by-the-client-0x80070522/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants