3 ms·
Nice article. I was going through trying to follow the instructions and hit a couple of issues: -For "You should then add ~/.nimble/bin to your $PATH" it took
by tim333 12y ago
Nice article.
I was going through trying to follow the instructions and hit a couple of issues:
-For "You should then add ~/.nimble/bin to your $PATH" it took me quite a while to figure I had to enter "ln -s ~/.nimble/bin/nimble /usr/local/bin/" in my Mac's terminal to do that. I guess experienced devs know that stuff but beginner here.
-There's a bug in the client.nim and server.js code where the client refers to element "foo" but the server refers to element "item". Changing them both to foo got it to work.
Nim seems kinda cool.
- wildmXranat 12y agoI have done it in the same fashion as I've done it for Golang and others: Add a line to your ~/.profile #add Nim-lang to path export PATH=/Users/user/nim/nim-0.10.2/bin:$PATH In the same terminal window, run 'source ~/.profile' to run the file and update the path. Creating a symbolic link like you did is fine as well.
- def- 12y ago> -For "You should then add ~/.nimble/bin to your $PATH" it took me quite a while to figure I had to enter "ln -s ~/.nimble/bin/nimble /usr/local/bin/" in my Mac's terminal to do that. I guess experienced devs know that stuff but beginner here. Actually you should add "export PATH=$PATH:$HOME/.nimble/bin/" in ~/.profile, ~/.bashrc, ~/.zshrc or whatever your shell requires. > -There's a bug in the client.nim and server.js code where the client refers to element "foo" but the server refers to element "item". Changing them both to foo got it to work. Thanks, fixed.
- sfilipov 12y agoI would recommend you to do: export PATH = $PATH:~/.nimble/bin instead of creating a symbolic link to /usr/local/bin. That way if you put a new binary in ~/.nimble/bin, i.e. if you have ~/.nimble/bin/foonim, it will work without you having to do ln -s ~/.nimble/bin/foonim /usr/local/bin/
- alwillis 12y agoFor Mac users, I recommend using Homebrew [1] (which hackers should already be using IMHO) to install Nim. brew install nim Done and done. [1]: http://brew.sh http://brew.sh