Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

parity installation failed on ubuntu 16 #7792

Closed
pavsh opened this issue Feb 2, 2018 · 6 comments
Closed

parity installation failed on ubuntu 16 #7792

pavsh opened this issue Feb 2, 2018 · 6 comments
Labels
F2-bug 🐞 The client fails to follow expected behavior. M2-installer 📲 Installers for MacOS and Windows. P2-asap 🌊 No need to stop dead in your tracks, however issue should be addressed as soon as possible.

Comments

@pavsh
Copy link

pavsh commented Feb 2, 2018

hi,
I'm running this command to install parity on ubuntu 16

bash <(curl https://get.parity.io -Lk) -r stable

and i getting the following error:

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 170 0 170 0 0 231 0 --:--:-- --:--:-- --:--:-- 231
100 5296 100 5296 0 0 1371 0 0:00:03 0:00:03 --:--:-- 3275
Release selected is: stable
Upgrading parity from 0.0.0 to 1.8.9
rpm: RPM should not be used directly install RPM packages, use Alien instead!
rpm: However assuming you know what you are doing...
error: Failed dependencies:
openssl is needed by parity-1:1.8.9-1.x86_64

I do have openssl installed version : 1.0.2g
thank you for your help

@wnz99
Copy link

wnz99 commented Feb 4, 2018

I've a similar issue with Ubuntu 16.04 LTS. libssl1.1 is required as from Parity 1.8.8, apparently.

I had picked Ubuntu 16.04 cause of the LTS, which I think makes sense when running a production server.

What Parity recommends as the preferred LTS or enterprise level distro in order to guarantee long time compatibility with future releases?

@5chdn
Copy link
Contributor

5chdn commented Feb 5, 2018

@ddorgan can you check why the script is pulling the RPM on ubuntu? thanks

@5chdn
Copy link
Contributor

5chdn commented Feb 5, 2018

@wnz99 download the linux *.deb it links ssl 1.0

the debian *.deb links ssl 1.1

@5chdn 5chdn added F2-bug 🐞 The client fails to follow expected behavior. P2-asap 🌊 No need to stop dead in your tracks, however issue should be addressed as soon as possible. M2-installer 📲 Installers for MacOS and Windows. labels Feb 5, 2018
@5chdn 5chdn added this to the 1.10 milestone Feb 5, 2018
@wnz99
Copy link

wnz99 commented Feb 6, 2018

Done, thank you.

@MysticRyuujin
Copy link
Contributor

MysticRyuujin commented Mar 9, 2018

I'm still getting errors on 16.04.3

bash <(curl https://get.parity.io -Lk) -r beta
parity: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

AND

dpkg: dependency problems prevent configuration of parity:
 parity depends on libssl1.1 (>= 1.1.0); however:
  Package libssl1.1 is not installed.

@MysticRyuujin
Copy link
Contributor

MysticRyuujin commented Mar 9, 2018

So I was able to work around it by first installing libssl via this:

wget http://mirrors.kernel.org/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu2_amd64.deb
dpkg -i libssl1.1_1.1.0g-2ubuntu2_amd64.deb

That lead to this error:

/usr/bin/parity: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /usr/bin/parity)

I corrected that via this script on Stack Overflow:

apt-get update && apt-get install sudo && \
sudo apt-get install build-essential software-properties-common -y && \
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
sudo add-apt-repository ppa:george-edison55/cmake-3.x -y && \
sudo apt-get update && \
sudo apt-get install gcc-snapshot -y && \
sudo apt-get update && \
sudo apt-get install gcc-6 g++-6 -y && \
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6 && \
sudo apt-get install gcc-4.8 g++-4.8 -y && \
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8 && \
sudo update-alternatives --config gcc && \
sudo apt-get update && \
sudo apt-get install cmake -y;

Parity started working after that...

I'm not entirely sure which part of that script fixed the issue as it does quite a few things but I'm hoping this will help diagnose or provide others with a workaround.

@5chdn 5chdn closed this as completed Mar 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
F2-bug 🐞 The client fails to follow expected behavior. M2-installer 📲 Installers for MacOS and Windows. P2-asap 🌊 No need to stop dead in your tracks, however issue should be addressed as soon as possible.
Projects
None yet
Development

No branches or pull requests

4 participants