question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

powershell won't compile on ubuntu 16.10

See original GitHub issue

Steps to reproduce

  1. Setup a fresh repo according to the instructions.
  2. Install all dependencies according to instructions.
  3. 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:closed
  • Created 7 years ago
  • Comments:22 (15 by maintainers)

github_iconTop GitHub Comments

2reactions
vorscommented, Jan 4, 2017

@douglaswth there is no package for ubuntu 16.10 yet, but you should be able to build from source with ./build.sh script.

1reaction
nadiasvertexcommented, Dec 1, 2016

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”.

Read more comments on GitHub >

github_iconTop Results From Across the Web

compiling powershell scripts on linux to portable executable
Let's say I am a Linux (ubuntu) user, I installed PowerShell on my system with snap, etc and I have a simple file...
Read more >
Install PowerShell on Linux
Learn about the Linux distributions supported by PowerShell.
Read more >
Why are my PowerShell scripts not running?
I wrote a simple batch file as a PowerShell script, and I am getting errors when they run. It's in a scripts directory...
Read more >
Updated Windows Terminal and now Ubuntu won't load. ...
First, delete the existing Ubuntu profile (back up settings. json if you want), exit Windows Terminal, and restart. Windows Terminal should ...
Read more >
WSL command doesn't work through CMD/PowerShell
I'm trying to install software to multiple WSL distros, so I'm doing this using a batch file. Here's an example command and its...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found