Skip to content

Commit aa47cef

Browse files
arsingSean Wheeler
authored andcommitted
Clarify the docs regarding libcurl for installation on openSUSE (#2169)
- Explicitly mention the conflict error and the solution. - Make the command that looks for libcurl more precise, since the goal is to find the specific package that places the lib in the place where the RHEL PS package looks for it. Ref: PowerShell/PowerShell#6184
1 parent 4f8b258 commit aa47cef

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

reference/docs-conceptual/setup/Installing-PowerShell-Core-on-macOS-and-Linux.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -387,10 +387,21 @@ sudo yum remove powershell
387387

388388
## OpenSUSE 42.2
389389

390-
> **Note:** When installing PowerShell Core, OpenSUSE may report that nothing provides `libcurl`.
391-
`libcurl` should already be installed on supported versions of OpenSUSE.
392-
Run `zypper search libcurl` to confirm.
393-
The error will present 2 'solutions'. Choose 'Solution 2' to continue installing PowerShell Core.
390+
> **Note:** When installing PowerShell Core, `zypper` may report the following error:
391+
>
392+
> ```text
393+
> Problem: nothing provides libcurl needed by powershell-6.0.1-1.rhel.7.x86_64
394+
> Solution 1: do not install powershell-6.0.1-1.rhel.7.x86_64
395+
> Solution 2: break powershell-6.0.1-1.rhel.7.x86_64 by ignoring some of its dependencies
396+
> ```
397+
>
398+
> In this case, verify that a compatible `libcurl` library is present by checking that the following command shows the `libcurl4` package as installed:
399+
>
400+
> ```sh
401+
> zypper search --file-list --match-exact '/usr/lib64/libcurl.so.4'
402+
> ```
403+
>
404+
> Then choose the `break powershell-6.0.1-1.rhel.7.x86_64 by ignoring some of its dependencies` solution when installing the `powershell` package.
394405
395406
### Installation via Package Repository (preferred) - OpenSUSE 42.2
396407

0 commit comments

Comments
 (0)