@@ -115,10 +115,10 @@ _installCommonDev() {
115
115
116
116
# Check if pcre2 is installed
117
117
if [[ -z $( pcre2-config --version) ]]; then
118
- tarName=" pcre2-${pcreVersion} .tar.gz"
119
- wget https://github.com/PCRE2Project/pcre2/releases/download/pcre2-${pcreVersion} /${tarName}
120
- md5sum -c <( echo " ${pcreChecksum} ${tarName} " ) || exit 1
121
- ./Tools/pcre-build.sh
118
+ tarName=" pcre2-${pcreVersion} .tar.gz"
119
+ wget https://github.com/PCRE2Project/pcre2/releases/download/pcre2-${pcreVersion} /${tarName}
120
+ md5sum -c <( echo " ${pcreChecksum} ${tarName} " ) || exit 1
121
+ ./Tools/pcre-build.sh
122
122
fi
123
123
./autogen.sh
124
124
./configure --prefix=${swigPrefix}
@@ -243,8 +243,8 @@ _installCommonDev() {
243
243
rm -rf " ${baseDir} "
244
244
245
245
if [[ ! -z ${PREFIX} ]]; then
246
- # Emit an environment setup script
247
- cat > ${PREFIX} /env.sh << EOF
246
+ # Emit an environment setup script
247
+ cat > ${PREFIX} /env.sh << EOF
248
248
depRoot="\$ (dirname \$ (readlink -f "\$ {BASH_SOURCE[0]}"))"
249
249
PATH=\$ {depRoot}/bin:\$ {PATH}
250
250
LD_LIBRARY_PATH=\$ {depRoot}/lib64:\$ {depRoot}/lib:\$ {LD_LIBRARY_PATH}
@@ -334,7 +334,7 @@ _installUbuntuPackages() {
334
334
tcllib \
335
335
wget \
336
336
zlib1g-dev \
337
- ccache \
337
+ ccache
338
338
339
339
packages=()
340
340
# Chose Python version
@@ -422,8 +422,8 @@ _installRHELPackages() {
422
422
http://repo.okay.com.mx/centos/8/x86_64/release/bison-3.0.4-10.el8.x86_64.rpm \
423
423
https://forensics.cert.org/centos/cert/7/x86_64/flex-2.6.1-9.el7.x86_64.rpm
424
424
425
- wget https://github.com/jgm/pandoc/releases/download/${version} /pandoc-${version} -linux-${arch} .tar.gz && \
426
- tar xvzf pandoc-${version} -linux-${arch} .tar.gz --strip-components 1 -C /usr/local/ && \
425
+ wget https://github.com/jgm/pandoc/releases/download/${version} /pandoc-${version} -linux-${arch} .tar.gz
426
+ tar xvzf pandoc-${version} -linux-${arch} .tar.gz --strip-components 1 -C /usr/local/
427
427
rm -rf pandoc-${version} -linux-${arch} .tar.gz
428
428
}
429
429
@@ -478,7 +478,7 @@ _installCentosPackages() {
478
478
wget \
479
479
ccache \
480
480
zlib-devel
481
- }
481
+ }
482
482
483
483
_installOpenSuseCleanUp () {
484
484
zypper -n clean --all
@@ -522,6 +522,7 @@ _installOpenSusePackages() {
522
522
tcllib \
523
523
wget \
524
524
zlib-devel
525
+
525
526
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 50
526
527
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 50
527
528
}
@@ -551,18 +552,18 @@ _installHomebrewPackage() {
551
552
552
553
_installDarwin () {
553
554
if ! command -v brew & > /dev/null; then
554
- echo " Homebrew is not found. Please install homebrew before continuing."
555
- exit 1
556
- fi
555
+ echo " Homebrew is not found. Please install homebrew before continuing."
556
+ exit 1
557
+ fi
557
558
if ! xcode-select -p & > /dev/null; then
558
- # xcode-select does not pause execution, so the user must handle it
559
- cat << EOF
559
+ # xcode-select does not pause execution, so the user must handle it
560
+ cat << EOF
560
561
Xcode command line tools not installed.
561
562
Run the following command to install them:
562
563
xcode-select --install
563
564
Then, rerun this script.
564
565
EOF
565
- exit 1
566
+ exit 1
566
567
fi
567
568
brew install bison boost cmake eigen flex fmt groff libomp or-tools pandoc pyqt5 python spdlog tcl-tk zlib
568
569
@@ -619,6 +620,7 @@ _installDebianPackages() {
619
620
apt-get install -y --no-install-recommends \
620
621
libpython3.7 \
621
622
qt5-default
623
+
622
624
else
623
625
apt-get install -y --no-install-recommends \
624
626
libpython3.8 \
@@ -644,6 +646,7 @@ _installCI() {
644
646
install -m 0755 -d /etc/apt/keyrings
645
647
curl -fsSL https://download.docker.com/linux/ubuntu/gpg \
646
648
-o /etc/apt/keyrings/docker.asc
649
+
647
650
chmod a+r /etc/apt/keyrings/docker.asc
648
651
649
652
# Add the repository to Apt sources:
0 commit comments