4 ms·
For Fedora 24 users: So some reason, the rpm that Microsoft provides doesn't list all the dependencies that it actually requires. What is even worse, the compi
by henry_flower 10y ago
For Fedora 24 users:
So some reason, the rpm that Microsoft provides doesn't list all the dependencies that it actually requires. What is even worse, the compiled binaries inside, require quite outdated versions of icu & openssl that are not available in Fedora 24 any more.
What I've come up w/ to force poweshell to run:
# dnf install icu lldb lldb-devel lttng-tools lttng-ust
To view what we're still missing:
$ find /opt/microsoft/powershell -name \*.so -type f | xargs ldd 2>/dev/null | grep not\ found
libcrypto.so.1.0.0 => not found
libicuuc.so.50 => not found
libicui18n.so.50 => not found
(libcypto* is openssl-libs package, libicu* is libicu.)
Now, you need to manually download:
http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/17/Everything/x86_64/os/Packages/o/openssl-1.0.0i-1.fc17.x86_64.rpm http://archives.fedoraproject.org/pub/archive/fedora/linux/r...
(Yes, it's Fedora 17 == 2012 (!), which is ridiculous.)
http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/19/Everything/x86_64/os/Packages/l/libicu-50.1.2-5.fc19.x86_64.rpm http://archives.fedoraproject.org/pub/archive/fedora/linux/r...
and extract usr/lib64/* files from both rpms to, say, /opt/tmp/lib64.
Then finally run:
$ LD_LIBRARY_PATH=/opt/tmp/lib64 powershell
PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.
PS /home/hf> $PSVersionTable
Name Value
---- -----
PSVersion 6.0.0-alpha
PSEdition Core
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 3.0.0.0
GitCommitId v6.0.0-alpha.9
CLRVersion
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
It's a very strange feeling to see "Copyright (C) 2016 Microsoft Corporation" in xterm, if you ask me.
- tux1968 10y agoThank you for taking the time to share all that work you did to get Powershell running. Your instructions work for Fedora 23 as well.
- voltagex_ 10y agoThe build scripts for PowerShell right now require an existing powershell binary to work. If I can untangle this and work out what's required to build from scratch, then that'll probably help you build a proper Fedora RPM. (I'm looking into it for Debian, but the work will help other distros, too).