powershell won't compile on ubuntu 16.10
See original GitHub issueSteps to reproduce
- Setup a fresh repo according to the instructions.
- Install all dependencies according to instructions.
- Build according to instructions
Expected behavior
PowerShell binary exists.
Actual behavior
christopher@starburst:~/projects/power-shell/src/powershell-unix⟫ dotnet build --configuration Linux Project Microsoft.PowerShell.CoreCLR.AssemblyLoadContext (.NETStandard,Version=v1.6) will be compiled because expected outputs are missing Compiling Microsoft.PowerShell.CoreCLR.AssemblyLoadContext for .NETStandard,Version=v1.6 /usr/share/dotnet/dotnet compile-csc @/home/christopher/projects/power-shell/src/Microsoft.PowerShell.CoreCLR.AssemblyLoadContext/obj/Linux/netstandard1.6/dotnet-compile.rsp returned Exit Code 1 /home/christopher/projects/power-shell/src/Microsoft.PowerShell.CoreCLR.AssemblyLoadContext/CoreCLR/CorePsAssemblyLoadContext.cs(112,35): error CS0103: The name ‘InitializeTypeCatalog’ does not exist in the current context
Compilation failed. 0 Warning(s) 1 Error(s)
Time elapsed 00:00:01.2199140
Environment data
uname -a Linux starburst 4.8.0-26-generic #28-Ubuntu SMP Tue Oct 18 14:39:52 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.10 Release: 16.10 Codename: yakkety
dotnet --version 1.0.0-preview2-1-003177
dotnet --info .NET Command Line Tools (1.0.0-preview2-1-003177)
Product Information: Version: 1.0.0-preview2-1-003177 Commit SHA-1 hash: a2df9c2576
Runtime Environment: OS Name: ubuntu OS Version: 16.10 OS Platform: Linux RID: ubuntu.16.10-x64
Issue Analytics
- State:
- Created 7 years ago
- Comments:22 (15 by maintainers)
@douglaswth there is no package for ubuntu 16.10 yet, but you should be able to build from source with
./build.sh
script.I would also like to note that it would be really, really easy for you to take that list of scattered commands and put it in the “else” section of build.sh. It’s sort of incomprehensible that it wasn’t done.
I will also grant that a more careful reading of the instructions might have led me to understand that I need to perform several different commands. However, it would have been very clear if all of the pieces necessary to perform a manual build were just listed directly in the section “Manual Build”.