Error Launching Chromium on Oracle Linux 8.9
If you're trying to launch Chromium on Oracle Linux 8.9 and encounter the following error:
root/.cache/puppeteer/chrome/linux-121.0.6167.85/chrome-linux64/chrome: error while loading shared libraries: libXcomposite.so.1: cannot open shared object file: No such file or directory
You're not alone. This error is caused by a missing library that Chromium needs to run. In this article, we'll explain the root cause of this error and provide a solution to fix it.
Understanding the Error
The error message indicates that Chromium is unable to find the libXcomposite.so.1 library. This library is used by Chromium to composite graphics, and it is a required dependency for Chromium to run.
This error can occur for several reasons, including:
- The library is not installed on the system.
- The library is installed, but Chromium can't find it.
- The library is installed, but it's the wrong version.
Installing the Missing Library
To fix this error, you need to install the missing library. On Oracle Linux 8.9, you can install the library using the following command:
sudo yum install libXcomposite
This command will install the libXcomposite library and its dependencies. Once the installation is complete, you should be able to launch Chromium without encountering the error.
Verifying the Library Version
After installing the library, it's a good idea to verify that you have the correct version. You can do this by running the following command:
strings /usr/lib64/libXcomposite.so.1 | grep LIBC
This command will display the version of the library. Make sure that the version number matches the version required by Chromium.
Configuring Chromium to Find the Library
If Chromium is still unable to find the library after installing it, you may need to configure Chromium to look in the correct location. You can do this by creating a symbolic link to the library in the Chromium cache directory.
First, navigate to the Chromium cache directory:
cd ~/.cache/puppeteer/chrome/linux-121.0.6167.85/chrome-linux64
Then, create a symbolic link to the library:
sudo ln -s /usr/lib64/libXcomposite.so.1 libXcomposite.so.1
This will create a symbolic link to the library in the Chromium cache directory, allowing Chromium to find it when it launches.
In this article, we explained the root cause of the error "root/.cache/puppeteer/chrome/linux-121.0.6167.85/chrome-linux64/chrome: error while loading shared libraries: libXcomposite.so.1: cannot open shared object file: No such file or directory" when launching Chromium on Oracle Linux 8.9.
We provided a solution to fix the error by installing the missing library, verifying the library version, and configuring Chromium to find the library.