3

I'm following the isntructions for installing Nim(rod) onto linux. I then followed this site which showed to do this:

$ echo 'export PATH=$PATH:$your_install_dir/bin' >> ~/.profile
$ source ~/.profile
$ nim

Typing nim in the terminal doesn't do anything.
I have a Nim folder in my home directory with all the files but can't use it.

I did echo export PATH=$PATH:$/home/bob/Nim/bin' >> ~/.profile

And the nim command still does nothing. Am I not doing it right?
The command pwd told me /home/bob/Nim when I was in the Nim folder.

I tried running nim with sh in Nim/bin and did ./nim -path:/home/bob/Nim/bin

and it said:

config/nim.cfg(45, 2) Hint: added path: '/home/bob/.babel/pkgs/' [Path] config/nim.cfg(46, 2) Hint: added path: '/home/bob/.nimble/pkgs/' [Path] Hint: used config file '/home/bob/Nim/config/nim.cfg' [Conf]

GrvTyagi
  • 4,231
  • 1
  • 33
  • 40
The User
  • 471
  • 1
  • 4
  • 6

1 Answers1

4
echo 'export PATH=$PATH:$/home/bob/Nim/bin' >> ~/.profile

You appended the location $/home/bob/Nim/bin which doesn't exist. You must remove the $.

Oleh Prypin
  • 33,184
  • 10
  • 89
  • 99