Skip to content

Cannot install PowerShell #112539

Description

@DanielEIlie

brew gist-logs <formula> link OR brew config AND brew doctor output

`brew gist-logs openssl`
Error: openssl: /opt/homebrew/Library/Taps/homebrew/homebrew-core/Aliases/openssl:1: syntax error, unexpected ..
../Formula/openssl@3.rb
^~
/opt/homebrew/Library/Taps/homebrew/homebrew-core/Aliases/openssl:1: unknown regexp options - pl
/opt/homebrew/Library/Taps/homebrew/homebrew-core/Aliases/openssl:1: `@3' is not allowed as an instance variable name

`brew config`
HOMEBREW_VERSION: 3.6.4
ORIGIN: https://github.com/Homebrew/brew
HEAD: 99682c5af3b48e7b37bf9c565781800153ee88fb
Last commit: 4 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 20a991bff175a2e7e89faf9fd9f4456163bce42f
Core tap last commit: 61 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.8 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 14.0.0 build 1400
Git: 2.37.0 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.79.1 => /usr/bin/curl
macOS: 12.6-arm64
CLT: 14.0.0.0.1.1661618636
Xcode: N/A
Rosetta 2: false

`brew doctor`
Your system is ready to brew.

Verification

  • I ran brew update and am still able to reproduce my issue.
  • I have resolved all warnings from brew doctor and that did not fix my problem.

What were you trying to do (and why)?

I wanted to install PowerShell by executing:
brew install --cask powershell
The error occurs in the openssl formula.

What happened (include all command output)?

==> Caveats
To use Homebrew in PowerShell, set:
Add-Content -Path $PROFILE.CurrentUserAllHosts -Value '$(/opt/homebrew/bin/brew shellenv) | Invoke-Expression'

==> Downloading https://github.com/PowerShell/PowerShell/releases/download/v7.2.6/powershell-7.2.6-osx-arm64.pkg
Already downloaded: /Users/n1614056/Library/Caches/Homebrew/downloads/c7abdb14cc0f4891bb6f3df9f8f2e8a39183df9add399b08688f1823a91262bc--powershell-7.2.6-osx-arm64.pkg
Error: openssl: /opt/homebrew/Library/Taps/homebrew/homebrew-core/Aliases/openssl:1: syntax error, unexpected ..
../Formula/openssl@3.rb
^~
/opt/homebrew/Library/Taps/homebrew/homebrew-core/Aliases/openssl:1: unknown regexp options - pl
/opt/homebrew/Library/Taps/homebrew/homebrew-core/Aliases/openssl:1: `@3' is not allowed as an instance variable name

What did you expect to happen?

Powershell to be installed

Step-by-step reproduction instructions (by running brew commands)

brew update
brew doctor
brew install --cask powershell

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugReproducible Homebrew/homebrew-core bugoutdatedPR was locked due to age

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions