influxdata / build-scripts

Scripts and configurations files for building influx, influxd, and their distribution packages
2 stars 1 forks source link

aarch64,can't install successful #2

Open tonsalhuang opened 4 years ago

tonsalhuang commented 4 years ago

when i installed it in centOS7.6 ARM64 machine:

yum localinstall influxdb-1.7.4.arm64.rpm

Loaded plugins: fastestmirror Examining influxdb-1.7.4.arm64.rpm: influxdb-1.7.4-1.arm64 Cannot add package influxdb-1.7.4.arm64.rpm to transaction. Not a compatible architecture: arm64 Nothing to do

please help me!

my rpm link is https://dl.influxdata.com/influxdb/releases/influxdb-1.7.4.arm64.rpm

carrio110 commented 3 years ago

Hi folks, I'm getting the same error when running yum install against a downloaded copy of https://repos.influxdata.com/centos/7/arm64/stable/influxdb-1.8.4.arm64.rpm when building a docker image based on centos7:

docker build .
Step 1/26 : FROM centos:7
 ---> e5df02c43685
...
Step 7/26 : ADD https://repos.influxdata.com/centos/7/arm64/stable/influxdb-1.8.4.arm64.rpm influxdb-1.8.4.arm64.rpm
Downloading [==================================================>]  59.74MB/59.74MB

 ---> 92915447f807
Step 8/26 : RUN yum -y install influxdb-1.8.4.arm64.rpm
 ---> Running in d3f6eef3a815
Loaded plugins: fastestmirror, ovl
Examining influxdb-1.8.4.arm64.rpm: influxdb-1.8.4-1.arm64
**Cannot add package influxdb-1.8.4.arm64.rpm to transaction. Not a compatible architecture: arm64**

This is on a raspberry pi 4 running 64-bit Ubuntu OS (arm64 arch)

Is this something to do with the centos7 container OS image technically being architecture type 'aarch64'? Although it's the same thing, some architecture tag in the rpms in the influxdb arm64 repo might be tripping yum up?

I inserted an extra line to see what packages were available from the arm64 repo and this is what I got:

Step 11/24 : RUN yum list available | grep influx
 ---> Running in 6dcbc23d8ca9
influxdb2.aarch64                                    2.0.4-1                         influxdb
pcp-export-pcp2influxdb.aarch64          4.3.2-13.el7_9               updates
telegraf.aarch64                                      1.18.1-1                        influxdb
linuxgemini commented 3 years ago

IDK Why, but it seems like InfluxDB uses arm64 as the build arch for RHEL where RHEL actually uses aarch64, which breaks installing InfluxDB 1.8.

The same behavior also happens on repos.influxdata.com which also uses arm64 under /RHEL/8/arm64

linuxgemini commented 3 years ago

related #6