This repository was archived by the owner on Oct 23, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +44
-7
lines changed Expand file tree Collapse file tree 5 files changed +44
-7
lines changed Original file line number Diff line number Diff line change 2
2
#
3
3
# http://eh.meklu.org/script/meksysinfo
4
4
5
- lsb_release > /dev/null 2> /dev/null
6
- if [ $? = 0 ]
5
+ lsb_release_ret=0
6
+ lsb_release > /dev/null 2> /dev/null || lsb_release_ret=$?
7
+ if [ $lsb_release_ret = 0 ]
7
8
then
8
9
lsb_release -ds | sed ' s/^\"//g;s/\"$//g'
9
10
# a bunch of fallbacks if no lsb_release is available
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ installYumDeps(){
39
39
${SUDO} yum install centos-release-scl -y
40
40
${SUDO} yum install devtoolset-7-gcc* -y
41
41
${SUDO} yum install docbook2X -y
42
+ ${SUDO} yum install libffi-devel -y
42
43
}
43
44
44
45
installRepo (){
@@ -65,12 +66,26 @@ install_mediadeps(){
65
66
66
67
install_glibc (){
67
68
cd $LIB_DIR
68
- wget -c http://gnu.mirrors.pair.com /gnu/libc /glibc-2.14 .tar.xz
69
- tar xvf glibc-2.14 .tar.xz
70
- cd glibc-2.14
69
+ wget http://ftp. gnu.org /gnu/glibc /glibc-2.18 .tar.gz
70
+ tar zxf glibc-2.18 .tar.gz
71
+ cd glibc-2.18
71
72
mkdir -p build && cd build/
72
- ../configure --prefix=$PREFIX_DIR
73
- make -j4 -s && make install
73
+ ../configure --prefix=/usr
74
+ make -j4 && make install
75
+ }
76
+
77
+ install_python3 (){
78
+ if [ -f /usr/bin/python3 ]; then
79
+ echo " python3 already installed." && return 0
80
+ fi
81
+ cd $LIB_DIR
82
+ wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz
83
+ tar xvf Python-3.7.0.tar.xz
84
+ cd Python-3.7.0
85
+ ./configure prefix=/usr/local/python3
86
+ make && make install
87
+ ln -s /usr/local/python3/bin/python3 /usr/bin/python3
88
+ cd ../ && rm -r Python-3.7*
74
89
}
75
90
76
91
cleanup (){
Original file line number Diff line number Diff line change @@ -513,6 +513,11 @@ install_svt_hevc(){
513
513
pushd SVT-HEVC > /dev/null
514
514
git checkout v1.3.0
515
515
516
+ if [[ " $OS " =~ .* centos.* ]]
517
+ then
518
+ source scl_source enable devtoolset-7
519
+ fi
520
+
516
521
mkdir -p build
517
522
pushd build > /dev/null
518
523
cmake -DCMAKE_C_FLAGS=" -std=gnu99" -DCMAKE_INSTALL_PREFIX=${PREFIX_DIR} ..
Original file line number Diff line number Diff line change 79
79
[Yy]* ) install_boost;;
80
80
* ) install_boost;;
81
81
esac
82
+
83
+ read -p " Installing glibc-2.18 [Yes/no]" yn
84
+ case $yn in
85
+ [Nn]* ) ;;
86
+ [Yy]* ) install_glibc;;
87
+ * ) install_glibc;;
88
+ esac
89
+
90
+ read -p " Installing python3 [Yes/no]" yn
91
+ case $yn in
92
+ [Nn]* ) ;;
93
+ [Yy]* ) install_python3;;
94
+ * ) install_python3;;
95
+ esac
82
96
elif [[ " $OS " =~ .* ubuntu.* ]]
83
97
then
84
98
. installUbuntuDeps.sh
Original file line number Diff line number Diff line change 65
65
installRepo
66
66
installYumDeps
67
67
install_boost
68
+ install_glibc
69
+ install_python3
68
70
fi
69
71
elif [[ " $OS " =~ .* ubuntu.* ]]
70
72
then
You can’t perform that action at this time.
0 commit comments