sdk: DotNet Run for F# on OS X giving access error
If I create a new F# project using the DotNet CLI I get an access error on compile see blow console output
Gavins-MacBook-Air:fsharperror gavindraper$ dotnet new -l f#
Created new F# project in /Users/gavindraper/fsharperror.
Gavins-MacBook-Air:fsharperror gavindraper$ botnet restore
log : Restoring packages for /Users/gavindraper/fsharperror/project.json...
info : CACHE https://dotnet.myget.org/F/dotnet-core/api/v3/flatcontainer/microsoft.netcore.platforms/index.json
info : CACHE https://api.nuget.org/v3-flatcontainer/microsoft.netcore.platforms/index.json
info : GET https://www.myget.org/F/fsharp-daily/api/v3/flatcontainer/microsoft.netcore.platforms/index.json.
info : NotFound https://www.myget.org/F/fsharp-daily/api/v3/flatcontainer/microsoft.netcore.platforms/index.json 488ms
log : Committing restore...
log : Restore completed in 3382ms.
NuGet Config files used:
/Users/gavindraper/fsharperror/NuGet.Config
/Users/gavindraper/.nuget/NuGet/NuGet.Config
Feeds used:
https://dotnet.myget.org/F/dotnet-core/api/v3/index.json
https://api.nuget.org/v3/index.json
https://www.myget.org/F/fsharp-daily/api/v3/index.json
Gavins-MacBook-Air:fsharperror gavindraper$ dot net run
Compiling fsharperror for DNXCore,Version=v5.0
/usr/local/share/dotnet/bin/dotnet compile-fsc @/Users/gavindraper/fsharperror/obj/Debug/dnxcore50/dotnet-compile.rsp returned Exit Code 1
/Users/gavindraper/fsharperror/error FS0193: Access to the path '/usr/local/share/dotnet/bin' is denied.
Compilation failed.
0 Warning(s)
1 Error(s)
Time elapsed 00:00:06.1663319
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 1
- Comments: 29 (10 by maintainers)
@ctaggart there is pr dotnet/cli#1898 ready to be merged with this and other fixes
Sorry, I succeeded! It was because left the old environment. % rm -rf /usr/local/share/dotnet then reinstall latest version, so I succeeded. Thank you.