How to troubleshoot the issue of being unable to open W…
If the WPS installed on CentOS 7 fails to open, there are several possible solutions.
- Reinstall WPS: Try downloading WPS again, making sure you download the version that is compatible with CentOS 7. Then follow the installation guide to reinstall it.
- Check dependencies: WPS may require some dependencies to run properly. Use the following command to check and install any missing dependencies:
- Please use the following command to install the required packages:
sudo yum install libpng12.x86_64 libpng12-devel.x86_64 freetype.x86_64 freetype-devel.x86_64 fontconfig.x86_64 fontconfig-devel.x86_64 libjpeg-turbo.x86_64 libjpeg-turbo-devel.x86_64 dbus-glib.x86_64 dbus-glib-devel.x86_64 - Check file permissions: Make sure that the permissions for the WPS installation directory and its files are correctly set. Use the following command to change the owner and permissions of the files:
- Change the ownership of the /opt/kingsoft/wps-office directory to
and grant permissions of 755 to all files and subdirectories within it. - Check system language environment: WPS may need the system language environment to be correctly set in order to run properly. Make sure the system language environment is set to English or Chinese.
- Change the system locale to en_US.utf8 using the localectl command with sudo.
- To view error logs: When attempting to open WPS, you can check the terminal output or the error log file of WPS for more information. The error log file is usually located at /opt/kingsoft/wps-office/office6/et/wps.log. You can use the following command to view the log file:
- View the log file located at /opt/kingsoft/wps-office/office6/et/wps.log
If the above solutions still can’t resolve the issue, please provide more detailed information, such as error messages or any other relevant information, so that we can better assist you in resolving the problem.