-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
prepare.sh
executable file
·55 lines (51 loc) · 1.39 KB
/
prepare.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/sh
# Get pcre2
if [ ! -d pcre2 ]; then
# wget -c ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre2-10.22.tar.gz -O pcre2.tar.gz
wget -c ftp://ftp.pcre.org/pub/pcre/pcre2-10.22.tar.gz -O pcre2.tar.gz
mkdir -p pcre2
tar -xf pcre2.tar.gz -C pcre2 --strip-components=1 && rm pcre2.tar.gz
cd pcre2
autoreconf -f -i
./configure --prefix=/usr
make
sudo make install
cd -
rm -rf pcre2
else
echo "pcre2 exists"
fi
# Get jpcre2
if [ ! -d jpcre2 ]; then
wget -c https://github.com/jpcre2/jpcre2/archive/release.tar.gz -O jpcre2.tar.gz
mkdir -p jpcre2
tar -xf jpcre2.tar.gz -C jpcre2 --strip-components=1 && rm jpcre2.tar.gz
cd jpcre2
autoreconf -f -i
./configure --prefix=/usr
make
sudo make install
cd -
rm -rf jpcre2
else
echo "jpcre2 exists"
fi
# Get gmplib
if [ ! -d gmpxx ]; then
mkdir -p gmpxx
#The following requires lzip package
#wget -c https://gmplib.org/download/gmp/gmp-6.1.2.tar.lz -O gmpxx.tar.lz
#tar --lzip -xf gmpxx.tar.lz -C gmpxx --strip-components=1 && rm gmpxx.tar.lz
#The following uses my github mirror repo
wget -c https://github.com/Amerge/gmpxx/archive/release.tar.gz -O gmpxx.tar.gz
tar -xf gmpxx.tar.gz -C gmpxx --strip-components=1 && rm gmpxx.tar.gz
cd gmpxx
autoreconf -f -i
./configure --prefix=/usr --enable-cxx
make
sudo make install
cd -
rm -rf gmpxx
else
echo "gmpxx exists"
fi