Skip to main content

OxOOL v5 community edition compiling on Rocky Linux 8 HOWTO

Please install Rocky Linux 8 first, and then execute the following commands to update the system and install the necessary software packages (note that this is based on logging in as a regular user, and it is not recommended to use the root account during compilation).

sudo dnf config-manager --set-enabled powertools
sudo dnf upgrade -y
sudo dnf install vim net-tools unzip wget -y
sudo wget -P /etc/yum.repos.d http://www.oxoffice.com.tw/rpm/el/oxool-community-v5-el8.repo
sudo dnf install epel-release -y
sudo dnf upgrade -y
sudo dnf install make git yum-utils libpcap libcap-devel libgit2-devel libzstd-devel poco-devel ccache python3-devel python3-polib python3-lxml -y
sudo dnf install libtool gcc-c++ fontconfig-devel cppunit-devel pam-devel rpm-build -y
sudo dnf install oxoffice* poco* gumbo* -y

Disable SELinux

vim /etc/selinux/config # vim 可代換成任何您慣用的文字編輯器
# 尋找 SELinux=enforcing 此行並將 enforcing 改為 disabled 或 permissive 並存檔離開

Install node.js

sudo dnf module enable nodejs:18 -y
sudo dnf install nodejs -y

Clone source code of OxOffice Online v5 Community

git clone https://github.com/OSSII/oxool-community.git
cd oxool-community
git switch v5

Compile and package OxOffice Online v5 Community Edition

./autogen.sh
make dist
rpmbuild -tb oxool-x.x.x.tar.gz

The compiled RPM software package will be placed in the following path

~/rpmbuild/RPMS/x86_64

The RPM software package here can be used for installation.