OSX Error dnvm: command not found
Asked Answered
Y

2

7

I am newbie to OSX. After following the step by step instructions from https://github.com/aspnet/home.

brew tap aspnet/dnx
brew update
brew install dnvm

I got the following error when I run dnvm upgrade:

$ dnvm upgrade

Error:
-bash: dnvm: command not found

I have tried locate the dnvm and looks like it is successfully installed in the \usr\local directory.

Is there a step I am missing?

Yonne answered 15/5, 2015 at 14:39 Comment(0)
E
10

run source dnvm.sh after brew install dnvm and try to run dnvm then. Preferably, put this on your shell profile (e.g. inside .profile file) so that it will persist.

Escobedo answered 15/5, 2015 at 14:43 Comment(3)
Should I put the source dnvm.sh into ~/.bash_profile?Yonne
.profile worked for me. Not sure, not a Mac guy :)Escobedo
I created the file ~/.bash_profile and add the line source dnvm.sh. Now dnvm is available everytime I open the terminal. This works for me!Yonne
D
1

For this specific problem like the answer above mention just run source dnvm.sh

If you want to get up and running with asp.net 5 in OSX see how I fixed some problems on the way this blog post tutorial can help

Dyal answered 15/5, 2015 at 15:29 Comment(3)
The article is very useful! One minor thing though, the sudo dnu restore gives error ... complaining about the bower doesn't like sudo. To solve the problem what I did is to run dnu restore a 2nd time without sudo.Yonne
A question related to your export MONO_MANAGED_WATCHER=false. Can you explain why the sample project from Microsoft github.com/aspnet/Home/tree/dev/samples/latest/HelloWeb doesn't require to use that environment variable?Yonne
@VincentLeung I had issues with executing dnu restore only, I updated the tutorial and execute sudo dnu restore --allow-root . That environment variable is a bug in Mono, there is a github thread on that issue github.com/aspnet/Mvc/issues/2118 and on mono-project known bugs mono-project.com/docs/about-mono/releases/3.12.0/#known-issuesDyal

© 2022 - 2024 — McMap. All rights reserved.