简体   繁体   中英

RPM installation Trino throws python dependency

I'm trying to install Trino using RPM on Red Hat Enterprise Linux distribution. I install the Trino dependencies using the following commands:

$ sudo yum update -y
$ sudo yum install -y java-11-openjdk.x86_64 python3
$ sudo alternatives --set python /usr/bin/python3

Then I try to install Trino from archive in single-node mode. This however gives a dependency error:

$ sudo rpm -i trino-server-rpm-368.rpm
error: Failed dependencies:
    python >= 2.4 is needed by trino-server-rpm-0:368-1.noarch

This error doesn't make sense to me given that this dependency is actually satisfied when checking my python version:

$ python -V
Python 3.6.8

An answers has been provided by @hashhar on this Github Issue if you actually have the correct dependencies installed:

$ sudo rpm -i --nodeps trino-server-rpm-368.rpm

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM