Skip to content

install ipfs and build the code #4119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
TimothyWang123 opened this issue Aug 4, 2017 · 8 comments
Closed

install ipfs and build the code #4119

TimothyWang123 opened this issue Aug 4, 2017 · 8 comments

Comments

@TimothyWang123
Copy link

image

thanks for ur help. but I ran all the cmds as shown above, I just got three folders
image

I dont know how to get the complete one like
image

thanks

@djdv
Copy link
Contributor

djdv commented Aug 4, 2017

Take a look at this
https://github.com/ipfs/go-ipfs/blob/master/docs/windows.md
When you're done ipfs.exe should be in %GOPATH%/bin/

I personally use msys2 to build on Windows and use a batch file to update my builds. I keep the repo isolated on my system for testing, it's not required.

SET ORIGGOPATH=%GOPATH%
SET ORIGPATH=%PATH%
SET GOPATH=C:\tmp

IF NOT EXIST %GOPATH%\bin\gx.exe (
	go get -u "github.com/whyrusleeping/gx"
)

IF NOT EXIST %GOPATH%\bin\gx-go.exe (
	go get -u "github.com/whyrusleeping/gx-go"
)

pushd %GOPATH%\src\github.com\ipfs\go-ipfs
::git checkout master
git pull
make install

ipfs shutdown
ping -n 3 localhost
popd

move /Y %GOPATH%\bin\ipfs.exe %ORIGGOPATH%\bin\ipfs.exe

SET GOPATH=%ORIGGOPATH%
SET PATH=%ORIGPATH%
ipfs daemon 2>&1 | tee ipfs.log

@Kubuxu
Copy link
Member

Kubuxu commented Aug 4, 2017

@TimothyWang123 the code that builds the distribution package lives in separate repo.

I am slowly working on bringing it to go-ipfs itself including building full, portable source package.

@TimothyWang123
Copy link
Author

@djdv thanks , bu it seems some cmds are not available on my computer,like ipfs shutdown.
image

@Kubuxu
Copy link
Member

Kubuxu commented Aug 24, 2017

What is your ipfs --version?

@djdv
Copy link
Contributor

djdv commented Aug 24, 2017

@TimothyWang123 shutdown was added somewhat recently #3884 you likely won't have it on the first build but subsequent builds should be fine, it's not required either way, it's just to make sure "ipfs.exe" is not in use so that it may be overwritten with the move command, the ping following shutdown is just to make sure the file handle is closed in time (I had issues with this early on, maybe it's fine now).
If you make sure your exe is not in use before building, you could remove both of those lines.

You also don't have to pipe the output to tee, I just do that for catching crashes and to fix cli colours (#2124).

@TimothyWang123
Copy link
Author

@Kubuxu 0.4.9 centos7

@TimothyWang123
Copy link
Author

@djdv thanks,I see

@whyrusleeping
Copy link
Member

I think this is resolved, feel free to reopen or open a new issue as needed.

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

No branches or pull requests

4 participants