====== OpenLiteSpeed ビルドスクリプトの Fedora 対応🤤 ======
[[https://openlitespeed.org/kb/install-openlitespeed-from-source-with-build-script/|Install OpenLiteSpeed from Source with Build Script for OLS 1.6 and above – OpenLiteSpeed]]\\ \\
$ cd ~/work
$ git clone --depth 1 https://github.com/litespeedtech/openlitespeed.git
Cloning into 'openlitespeed'...
remote: Enumerating objects: 1888, done.
remote: Counting objects: 100% (1888/1888), done.
remote: Compressing objects: 100% (1739/1739), done.
remote: Total 1888 (delta 679), reused 572 (delta 108), pack-reused 0
Receiving objects: 100% (1888/1888), 7.97 MiB | 2.20 MiB/s, done.
Resolving deltas: 100% (679/679), done.
$ cd openlitespeed
$ cat CMakeLists.txt | grep "openlitespeed_.*_VERSION "
set(openlitespeed_MAJOR_VERSION 1)
set(openlitespeed_MINOR_VERSION 7)
set(openlitespeed_PATCH_VERSION 16)
$ sudo dnf update -y
$ sudo ./build.sh
OS is Linux, APP_MGR_CMD is dnf.
メタデータの期限切れの最終確認: 0:22:36 時間前の 2022年09月27日 06時27分22秒 に実施しました。
依存関係が解決しました。
行うべきことはありません。
完了しました!
メタデータの期限切れの最終確認: 0:22:43 時間前の 2022年09月27日 06時27分22秒 に実施しました。
一致した引数がありません: epel-release
エラー: 一致するものが見つかりません: epel-release
This script only works on 7/8/9 for centos family._Static_assert
This script only works on 7/8/9 for centos family._Static_assert
このスクリプトは、centos ファミリの 7/8/9 でのみ機能します。_Static_assert😥
$ cp build.sh build.sh.org
$ nano build.sh
#!/bin/sh
#!/bin/sh -x
$ ll /bin/sh
lrwxrwxrwx. 1 root root 4 1月 20 2022 /bin/sh -> bash
$ sudo ./build.sh
+ VERSION=1.0.1
+ moduledir='modreqparser modinspector uploadprogress '
++ uname
+ OS=Linux
++ arch
+ ARCH=x86_64
+ ISLINUX=no
+ VERSIONNUMBER=
+ '[' Linux = FreeBSD ']'
+ '[' Linux = Linux ']'
+ APP_MGRS='apt apt-get dnf yum zypper apk'
+ APP_MGR_CMD=
+ for APP_MGR in ${APP_MGRS}
++ which apt
+ APP_MGR_CHECK=
+ '[' 1 -eq 0 ']'
+ for APP_MGR in ${APP_MGRS}
++ which apt-get
+ APP_MGR_CHECK=
+ '[' 1 -eq 0 ']'
+ for APP_MGR in ${APP_MGRS}
++ which dnf
+ APP_MGR_CHECK=
+ '[' 0 -eq 0 ']'
+ APP_MGR_CMD=dnf
+ break
+ echo OS is Linux, APP_MGR_CMD is dnf.
OS is Linux, APP_MGR_CMD is dnf.
+ '[' xdnf = x ']'
++ dirname ./build.sh
+ cd .
++ pwd
+ CURDIR=/home/tomoyan/work/openlitespeed
+ '[' Linux = FreeBSD ']'
+ '[' Linux = Linux ']'
+ ISLINUX=yes
+ prepareLinux
+ OSTYPE=unknownlinux
+ '[' -f /etc/redhat-release ']'
+ OSTYPE=CENTOS
+ yum update -y
メタデータの期限切れの最終確認: 0:34:56 時間前の 2022年09月27日 22時02分24秒 に実施しました。
+ yum install -y epel-release
メタデータの期限切れの最終確認: 0:37:46 時間前の 2022年09月27日 22時02分24秒 に実施しました。
一致した引数がありません: epel-release
エラー: 一致するものが見つかりません: epel-release
++ cat /etc/redhat-release
+ output='Fedora release 36 (Thirty Six)'
+ echo Fedora release 36 '(Thirty' 'Six)'
+ grep ' 7.'
+ echo Fedora release 36 '(Thirty' 'Six)'
+ grep ' 8.'
+ echo Fedora release 36 '(Thirty' 'Six)'
+ grep ' 9.'
+ '[' CENTOS = CENTOS7 ']'
+ '[' CENTOS = CENTOS8 ']'
+ '[' CENTOS = CENTOS9 ']'
+ echo This script only works on 7/8/9 for centos family._Static_assert
This script only works on 7/8/9 for centos family._Static_assert
+ exit 1
$ diff build.sh build.sh.org
1c1
< #!/bin/sh -x
---
> #!/bin/sh
162c162
< #yum install -y epel-release
---
> yum install -y epel-release
164,166c164
< if echo $output | grep "Fedora"; then
< OSTYPE=FEDORA
< elif echo $output | grep " 7."; then
---
> if echo $output | grep " 7."; then
174,177d171
< if [ ! "${OSTYPE}" = "FEDORA" ] ; then
< yum install -y epel-release
< fi
<
193,194c187
< #elif [ "${OSTYPE}" = "CENTOS8" ] || [ "${OSTYPE}" = "CENTOS9" ] ; then
< elif [ "${OSTYPE}" = "FEDORA" ] || ["${OSTYPE}" = "CENTOS8" ] || [ "${OSTYPE}" = "CENTOS9" ] ; then
---
> elif [ "${OSTYPE}" = "CENTOS8" ] || [ "${OSTYPE}" = "CENTOS9" ] ; then
-- Checking for module 'libunwind-generic'
-- Package 'libunwind-generic', required by 'virtual:world', not found
libunwind not found. Disabling unwind tests.
CMake Error at CMakeLists.txt:51 (message):
Could not find Go
-- Configuring incomplete, errors occurred!
198c207,208
< yum -y install libtool autoconf autoheader automake wget go clang patch expat-devel
---
> #yum -y install libtool autoconf autoheader automake wget go clang patch expat-devel
> yum -y install libtool autoconf automake wget golang clang patch expat-devel
$ dnf groupinfo "Development Tools"
メタデータの期限切れの最終確認: 0:00:28 時間前の 2022年09月28日 06時04分15秒 に実施しました。 グループ: 開発ツール 説明: These tools include general development tools such as git and CVS. 必須なパッケージ: gettext 標準パッケージ: diffstat doxygen git patch patchutils subversion systemtap オプション パッケージ: buildbot colordiff cvs cvs2cl cvsgraph cvsps darcs dejagnu expect gambas3-ide git-annex git-cola git2cl gitg gtranslator highlight lcov manedit meld monotone myrepos nemiver qgit quilt rapidsvn rcs robodoc scanmem subunit svn2cl tig tkcvs tortoisehg translate-toolkit utrac