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.

wrong symlink in CentOS8 Powershell 7.1.3 package

See original GitHub issue

Environment:

CentOS 8 Powershell 7.1.3 powershell installed by Microsoft repo

Scenario

  • ldd for libmi.so shows:

ldd /opt/microsoft/powershell/7/libmi.so ldd: warning: you do not have execution permission for `/opt/microsoft/powershell/7/libmi.so’ linux-vdso.so.1 (0x00007ffc3ea41000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007ff105ed7000) libdl.so.2 => /lib64/libdl.so.2 (0x00007ff105cd3000) libpam.so.0 => /lib64/libpam.so.0 (0x00007ff105ac3000) libssl.so.1.0.0 => /opt/microsoft/powershell/7/libssl.so.1.0.0 (0x00007ff10582f000)

libcrypto.so.1.0.0 => not found

libc.so.6 => /lib64/libc.so.6 (0x00007ff10546c000) /lib64/ld-linux-x86-64.so.2 (0x00007ff1060f7000) libaudit.so.1 => /lib64/libaudit.so.1 (0x00007ff105242000) libcrypto.so.1.1 => /lib64/libcrypto.so.1.1 (0x00007ff104d5c000) libz.so.1 => /lib64/libz.so.1 (0x00007ff104b45000) libcap-ng.so.0 => /lib64/libcap-ng.so.0 (0x00007ff10493f000)

  • following the missing reference ls -l libcrypto.so.1.0.0 lrwxrwxrwx 1 root root 25 Mar 10 02:14 libcrypto.so.1.0.0 -> /lib64/libcrypto.so.1.1.1

but /lib64/libcrypto.so.1.1.1 is not found on a CentOS 8 system

Resolution cd /lib64 ln -s libcrypto.so.1.1 libcrypto.so.1.1.1

Solution The link must reference to /lib64/libcrypto.so.1.1

Please fix this in the rpm Package.

regards

Ralph

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jborean93commented, Mar 16, 2021

@joeyaiello i think there is still an issue with the package here. The symlinks are pointing to the 1.1.x locations and even one of them does not exist. In reality they should either:

  • Point to the expected 1.0.x locations
  • Point to the correct 1.1.x locations

The first is what strictly should happen but it means OpenSSL 1.0.x must be installed for libmi to load at all. The latter will work for the http situation but will fail if a https endpoint is used, I.e. Exchange Online.

1reaction
megamorfcommented, Jun 6, 2021

https://bugzilla.redhat.com/show_bug.cgi?id=1879707

Fedora is not packaging compat-openssl10 in Fedora 34. At the moment installing to Fedora 34 leaves WSMan broken

1879707 – FTBFS: Remove compat-openssl10 requirement

I’m also affected by this issue - pwsh as snap on Fedora 34:

➜  pwsh                       
PowerShell 7.1.3
Copyright (c) Microsoft Corporation.

https://aka.ms/powershell
Type 'help' to get help.

No usable version of libssl was found
[1]    14902 IOT instruction (core dumped)  pwsh

snap info

➜  snap list powershell 
Name        Version  Rev  Tracking       Publisher              Notes
powershell  7.1.3    160  latest/stable  microsoft-powershell✓  classic
➜  snap info powershell 
name:      powershell
summary:   PowerShell for every system!
publisher: Microsoft PowerShell✓
store-url: https://snapcraft.io/powershell
contact:   https://github.com/powershell/powershell
license:   unset
description: |
  PowerShell is an automation and configuration management platform.
  It consists of a cross-platform (Windows, Linux, and macOS)
  command-line shell and associated scripting language.
  
  See https://docs.microsoft.com/powershell/scripting/powershell-support-lifecycle for support
  details.
commands:
  - powershell
snap-id:      JSNnoJl3EqkMuWoy5Dgq8PMqZ0uNcpie
tracking:     latest/stable
refresh-date: 2021-04-04
channels:
  latest/stable:    7.1.3 2021-03-12 (160) 68MB classic
  latest/candidate: 7.1.3 2021-03-12 (160) 68MB classic
  latest/beta:      7.1.3 2021-03-12 (160) 68MB classic
  latest/edge:      7.1.3 2021-03-12 (160) 68MB classic
  lts/stable:       7.0.6 2021-03-12 (161) 60MB classic
  lts/candidate:    7.0.6 2021-03-12 (161) 60MB classic
  lts/beta:         7.0.6 2021-03-12 (161) 60MB classic
  lts/edge:         7.0.6 2021-03-12 (161) 60MB classic
installed:          7.1.3            (160) 68MB classic
<div>1879707 – FTBFS: Remove compat-openssl10 requirement</div>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Running PowerShell from Linux to Query SMB Shares in ...
On my Centos8.3 box, I ran into this issue: New-PSSession: This parameter set requires WSMan, and no supported WSMan client library was found....
Read more >
Creating SymbolicLink with PowerShell does not work
I'm running my PowerShell as Admin and I try to create a symbolic link to another directory. To do so, I want to...
Read more >
Puppet release notes
Puppet now reports the path to the resource before resolving symlinks in the ... This release removes support for Fedora 32, CentOS 8,...
Read more >
Tanium™ Client Management User Guide
Deploying the Tanium Client using an installer or package file ... Deploy the Tanium Client to Linux endpoints using package files.
Read more >
SafeKit User's Guide
Subject. This document covers all the phases of the SafeKit implementation: architecture, installation, tests, administration & troubleshooting, support, ...
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