diff options
| author | Alexander <alexell@alexell.ru> | 2024-07-15 23:49:30 +0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-15 21:49:30 +0300 |
| commit | 6ba3d865ac78395595ca38592f70cbf35239e60b (patch) | |
| tree | ca4fb4d42a41e1e2e83e297575e4c1d579379cf4 | |
| parent | 9112a6b5359fe5bf71371a43cc1cb08f648ba377 (diff) | |
Build instructions updated (#615)
* Build instructions updated
- Fixed package manager in CentOS
- Added instructions for CentOS 9
- Added instructions for Fedora 37
| -rw-r--r-- | build.html | 32 |
1 files changed, 23 insertions, 9 deletions
@@ -201,8 +201,10 @@ <option>Alpine</option> <option>CentOS 7</option> <option>CentOS 8</option> + <option>CentOS Stream 9</option> <option>Debian 8/9</option> <option>Debian 10+</option> + <option>Fedora 21+</option> <option>Ubuntu 14</option> <option>Ubuntu 16</option> <option>Ubuntu 18</option> @@ -354,7 +356,7 @@ function onOptionsChanged() { document.getElementById('buildCommandsDiv').style.display = 'block'; var use_clang = os_freebsd || os_openbsd; - if (os_linux && linux_distro !== 'Alpine' && !linux_distro.includes('CentOS')) { + if (os_linux && linux_distro !== 'Alpine' && !linux_distro.includes('CentOS') && !linux_distro.includes('Fedora')) { document.getElementById('buildCompilerDiv').style.display = 'block'; use_clang = document.getElementById('buildCompilerRadioClang').checked; } else { @@ -531,19 +533,31 @@ function onOptionsChanged() { commands.push(sudo + 'apk add ' + packages); break; case 'CentOS 7': - case 'CentOS 8': commands.push(sudo + 'yum update -y'); var packages = 'gcc-c++ make git zlib-devel openssl-devel'; - if (linux_distro === 'CentOS 7') { - commands.push(sudo + 'yum install -y centos-release-scl-rh epel-release'); - commands.push(sudo + 'yum install -y devtoolset-9-gcc devtoolset-9-gcc-c++'); - cmake = 'cmake3'; - packages += ' gperf'; - } else { + commands.push(sudo + 'yum install -y centos-release-scl-rh epel-release'); + commands.push(sudo + 'yum install -y devtoolset-9-gcc devtoolset-9-gcc-c++'); + cmake = 'cmake3'; + packages += ' gperf ' + cmake; + commands.push(sudo + 'yum install -y ' + packages); + break; + case 'CentOS 8': + case 'CentOS Stream 9': + commands.push(sudo + 'dnf update -y'); + var packages = 'gcc-c++ make git zlib-devel openssl-devel'; + if (linux_distro === 'CentOS 8') { commands.push(sudo + 'dnf --enablerepo=powertools install gperf'); + } else { + commands.push(sudo + 'dnf --enablerepo=crb install gperf'); } packages += ' ' + cmake; - commands.push(sudo + 'yum install -y ' + packages); + commands.push(sudo + 'dnf install -y ' + packages); + break; + case 'Fedora 21+': + commands.push(sudo + 'dnf update -y'); + var packages = 'gperf gcc-c++ make git zlib-devel openssl-devel'; + packages += ' ' + cmake; + commands.push(sudo + 'dnf install -y ' + packages); break; case 'Debian 8/9': case 'Debian 10+': |
