Dear staff,
1) I tried the first set of installation instructions downloading the source from:
http://nim-lang.org/download/nim-0.13.0.tar.xz
and ran the command:
sh build.sh
then tried
[sudo] ln -s $your_install_dir/bin/nim /usr/bin/nim
creating aliases to /usr/bin no longer works since recently apple neutered OS X
so THIS INSTALLATION DOESN'T WORK
git clone -b master git://github.com/nim-lang/Nim.git
cd Nim
git clone -b master --depth 1 git://github.com/nim-lang/csources
cd csources && sh build.sh
cd ..
bin/nim c koch
./koch boot -d:release
THIS INSTALLATION DOESN'T WORK EITHER
after entering the following command:
git clone https://github.com/nim-lang/nimble.git
cd nimble
git clone -b v0.13.0 --depth 1 https://github.com/nim-lang/nim vendor/nim
nim c -r src/nimble install
I get the following error
Error: execution of an external program failed: './src/nimble install'
could someone spend the time and test an installation that actually works on OS X EL CAPITAN 10.11.3 and kindly update the main page Mac installation instructions ?
creating aliases to /usr/bin no longer works since recently apple neutered OS X
You could use /usr/local/bin (and add it to your PATH if it isn't), this should be updated in the instructions.
THIS INSTALLATION DOESN'T WORK EITHER
GitHub instructions are not an installation, they only bootstrap the compiler. You have to add the bin directory inside the checked-out sources to your PATH afterwards to be able to use it. This works well for me. If it doesn't for you, please elaborate about the error you get.
thanks a lot - it worked!
for everyone on a mac or raspberry pi
after you compile nim, this is the correct path:
[sudo] ln -s $your_install_dir/bin/nim /usr/local/bin/nim
the same is true for nimble
sudo ln -s ~/.nimble/bin/nimble /usr/local/bin/nimble
I can only recommend to use "nim-vm" on Mac (and no SUDO)!
https://github.com/ekarlso/nim-vm
P.S.: Better don't use sudo for "/usr/local/". Install "homebrew" as your developer user (http://brew.sh/). This will aid in installing needed libs and other tools too.
I tried nix in the past (while working with Haskell) but it could not even solve my needs in NixOS at this time.
It may be the "better" packet manager and the concept is great but it does not even remotely offer the versatility and package freedom homebrew + homebrew casks delivers since years!
I was curious to evaluate this again but https://nixos.org/wiki/Nix_on_OS_X already talks about some problems I do not want to face when trying to reinstall the 174 packages I have installed with homebrew.
There are also those numbers:
Nix Packages Issues: 1.075 open / 2.172 closed PR: 271 Open / 10.095 closed
Homebrew Issues: 261 open / 16.616 closed PR: 193 Open / 32.642 closed
Where the Nix Numbers include all "NixOS (Linux)" packages.