Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Skywire node on a Mac
#1
Hi all!

I tried to create a node on my Mac and would like to ask if I succeeded or not  Wink

I am not familiar with Golang and had struggle to set the $GOPATH, so...

Instead of...

Code:
./manager -web-dir ${GOPATH}/src/github.com/skycoin/skywire/static/skywire-manager

... I run the manager with:
Code:
./manager -web-dir ~/go/src/github.com/skycoin/skywire/static/skywire-manager


[Image: Screen_Shot_2018_01_05_at_01_40_03.png]

Does it look ok?
Reply
#2
(01-05-2018, 12:50 AM)Mitael Wrote: Hi all!

I tried to create a node on my Mac and would like to ask if I succeeded or not  Wink

I am not familiar with Golang and had struggle to set the $GOPATH, so...

Instead of...

Code:
./manager -web-dir ${GOPATH}/src/github.com/skycoin/skywire/static/skywire-manager

... I run the manager with:
Code:
./manager -web-dir ~/go/src/github.com/skycoin/skywire/static/skywire-manager


[Image: Screen_Shot_2018_01_05_at_01_40_03.png]

Does it look ok?
That looks a lot like the one i got running on CentOS, not much more you can do from their i believe, can't connect to any other nodes yet, but well done.

I also wouldn't mind setting up on my MAC, but are very unfamiliar with the brew cmds,

Any chance you can post the mac steps?
Reply
#3
Step 1 – Install Homebrew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebr...er/install)"

brew doctor

You will be offered to install the Command Line Developer Tools from Apple. Confirm by clicking Install. After the installation finished, continue installing Homebrew.

Step 2 – Install Git

brew install git

Step 3 – Download and install Golang

https://golang.org/dl/

Step 4 – Set $GOPATH

sudo nano  /.bash_profile

Paste the text:

export GOPATH=$HOME/go
export GOBIN=$HOME/go/bin

Press Ctrl+x, then [y] and then [Enter]. Close the Terminal and open a new one.

Step 5 – Follow the official guide

https://github.com/skycoin/skywire

That means:

mkdir -p $GOPATH/src/github.com/skycoin
cd $GOPATH/src/github.com/skycoin
git clone https://github.com/skycoin/skywire.git

cd $GOPATH/src/github.com/skycoin/skywire/cmd
go install ./...

Step 6 – Run Skywire

cd $GOPATH/bin
./manager -web-dir ${GOPATH}/src/github.com/skycoin/skywire/static/skywire-manager

cd $GOPATH/bin
./node -connect-manager -manager-address :5998 -manager-web :8000 -discovery-address messenger.skycoin.net:5999 -address :5000 -web-port :6001

Step 7

Browse to http://localhost:8000


That should be it! Anyway, I did not set the $GOPATH and used absolute paths and it worked for me. Or is it a bad approach?

Hope this helps.
Reply
#4
Anonymous kid also posted a pdf guide on telegram, here's the link: https://www.dropbox.com/s/dms9eqlrjfe9qr...9.pdf?dl=0
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)