Reputation: 386
Does anyone know a working solution to install Google Chrome(Chromium) on Amazon Linux 2 with ARM64 architecture (Gravitone c6g.xlarge instance)? I need to run it in headless mode. At the moment I can't find any packages in yum:
No package chromium available.
When I try to install it using the RPM package I get the error:
Error: Package: chromium-87.0.4280.141-1.el8.aarch64 (/chromium-87.0.4280.141-1.el8.aarch64) Requires: libm.so.6(GLIBC_2.27)(64bit)
Error: Package: chromium-87.0.4280.141-1.el8.aarch64 (/chromium-87.0.4280.141-1.el8.aarch64) Requires: libz.so.1(ZLIB_1.2.9)(64bit)
Error: Package: chromium-87.0.4280.141-1.el8.aarch64 (/chromium-87.0.4280.141-1.el8.aarch64) Requires: chromium-common(aarch-64) = 87.0.4280.141-1.el8
Error: Package: chromium-87.0.4280.141-1.el8.aarch64 (/chromium-87.0.4280.141-1.el8.aarch64) Requires: libc.so.6(GLIBC_2.28)(64bit)
When I try to run sudo yum install glibc I get:
glibc-2.26-39.amzn2.aarch64
Looks like Amazon Linux has installed own older version of glibc. Same situation with zlib package, available older version:
zlib-1.2.7-18.amzn2.aarch64
Upvotes: 13
Views: 16978
Reputation: 9489
Installing Chromium on Amazon linux requires installing necessary dependencies and then the Chromium itself.
First you need dependencies like libXComposite
, minizip
, etc...
Then you need to install chromium-common
and then chromium-headless
.
I managed to install Chromium v123 with following commands:
sudo yum install libXcomposite libXdamage libXrandr libgbm libxkbcommon pango alsa-lib atk at-spi2-atk cups-libs libdrm -y
sudo yum install -y /.chrome/production/minizip1.2-1.2.11-24.el8.aarch64.rpm
sudo yum install -y /.chrome/production/chromium-common-123.0.6312.122-1.el8.aarch64.rpm --allowerasing
sudo yum install -y /.chrome/production/chromium-headless-123.0.6312.122-1.el8.aarch64.rpm --allowerasing
Upvotes: 0
Reputation: 9472
To really solve the problem if you are using EC2 instance or any other server where you are running Amazon linux, you should follow the below steps .
Enable and install Extra Packages for Enterprise Linux by running the command
sudo amazon-linux-extras install epel -y
Post installing all the extra packages successfully, Install chromimum as usual
sudo yum install -y chromium
Once you do that Chromium will have all required such as libatk* libgdk* etc ...
You should be able to easily launch Chromium
The missed out packages that you are looking here, are actually not missedout they are kind of default you just have to enable them , this is well documented in AWS documentation .
https://aws.amazon.com/premiumsupport/knowledge-center/ec2-enable-epel/
Upvotes: 7