dnu restore broken
I see this with dnu restore with the latest version. 1.0.0-beta6-12032 does the right thing on the same project.
dotnet-mbp:dnulist richlander$ dnu restore -bash: /Users/richlander/.dnx/runtimes/dnx-mono.1.0.0-beta6-12100/bin/dnu: Permission denied
@davidfowl
Update dnvm, this was already fixed https://github.com/aspnet/dnx/issues/2081.
Works. Thanks.
I see the same error with what seems like a later version of dnvm, -bash: /Users/ashab/.dnx/runtimes/dnx-mono.1.0.0-beta6-12120/bin/dnu: Permission denied
I updated dnvm following this post: http://stackoverflow.com/questions/29952630/how-to-get-the-dnu-command-working-on-os-x aka
source dnvm.sh dnvm upgrade -u
But still see the error above, anything I missed?
Running dnvm upgrade fixed it for me
Dnvm upgrade doesn't fix it for me. Not sure if I should run Brew install again?
Finbars-MacBook-Pro:BattlestarSho finbar_ryan$ dnvm upgrade -u -f Determining latest version Latest version is 1.0.0-beta6-12162 Forcing download by deleting /Users/finbar_ryan/.dnx/runtimes/dnx-mono.1.0.0-beta6-12162 directory Downloading dnx-mono.1.0.0-beta6-12162 from https://www.myget.org/F/aspnetvnext/api/v2 Download: https://www.myget.org/F/aspnetvnext/api/v2/package/dnx-mono/1.0.0-beta6-12162 ######################################################################## 100.0% Installing to /Users/finbar_ryan/.dnx/runtimes/dnx-mono.1.0.0-beta6-12162 Adding /Users/finbar_ryan/.dnx/runtimes/dnx-mono.1.0.0-beta6-12162/bin to process PATH Updating alias 'default' to 'dnx-mono.1.0.0-beta6-12162' Finbars-MacBook-Pro:BattlestarSho finbar_ryan$ dnu restore -bash: /Users/finbar_ryan/.dnx/runtimes/dnx-mono.1.0.0-beta6-12162/bin/dnu: Permission denied Finbars-MacBook-Pro:BattlestarSho finbar_ryan$
Just to share that I resolved this. The dnu executable was missing Execute Permissions so I copied the permissions from dnx. ]-rwxr-xr-x 1 finbar_ryan staff 539 2 Jul 18:23 dnu
This all works great now.
Koodos to FinVamp
chmod 777 /Users/<>/.dnx/runtimes/dnx-mono.1.0.0-beta6/bin/dnu
As indicated earlier in the thread this was resolved in this issue and the recommendation is to "run dnvm update-self, then run dnvm upgrade after".
I just set the execute permissions as per @FinVamp1 @javi830810
no fixed, dnvm upgrade does not fix. Fresh update today to beta6. dnvm upgrade -u doesn't fix either.
@coolcsh @glennc
Confirmed. This is still broken
I have this issue with dnx-mono.1.0.0-beta6 or dnx-mono.1.0.0-beta6 or beta7. I'm running OSX 10.11 public beta 3. Anyone have this working?
For those of you who are seeing this issue on OS X, with DNX installed via Homebrew:
Figure: Permission is denied.
The fix is rather simple: grant execution permissions to the dnu command.
Steps to fix:
- Open Terminal
⌘+space Terminal - Execute the following:
cd ~/.dnx/runtimes/dnx-mono.1.0.0-beta6/bin/
chmod +x dnu
- No more issues.
Figure: Executeable dnu
What version of dnvm are you using? The latest should no longer have this issue.
I am using the version install by homebrew. I'll try the trick above when I'm back to my laptop.
Thanks
Yes making it executable worked. Thanks.
This is still broken, I had to manually add the executable flag.
What version of dnvm did you install the dnx with?
.NET Version Manager - Version 1.0.0-beta5-10375 I think (from running dnvm)
Could you update your dnvm, thats a pretty old build