-
Notifications
You must be signed in to change notification settings - Fork 1
/
install_software.sh
executable file
·119 lines (104 loc) · 5.3 KB
/
install_software.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
#!/bin/bash
. auto_install_func.sh
function ModifyWxGTK()
{
find wxGTK-2.8.12/ -iname "*.xbm" | xargs -I {} sed -i 's/0x/char(0x/g' {}
find wxGTK-2.8.12/ -iname "*.xbm" | xargs -I {} sed -i 's/,/),/g' {}
find wxGTK-2.8.12/ -iname "*.xbm" | xargs -I {} sed -i 's/}/)}/g' {}
sed -i 's#DEFAULT_wxUSE_STL=no#DEFAULT_wxUSE_STL=yes#g' wxGTK-2.8.12/configure
sed -i 's#DEFAULT_wxUSE_NOTEBOOK=no#DEFAULT_wxUSE_NOTEBOOK=yes#g' wxGTK-2.8.12/configure
}
function GenInputHeader()
{
cd /usr/include/X11/extensions && sudo ln -s XI.h XInput.h
}
function InstallQGisDep()
{
sudo pip install SIP
sudo pip3 install sip
sudo apt install python3-pip
sudo apt-get install libsip-api-java
sudo apt-get install libsipwitch-dev
sudo apt-get install libsipxtapi-dev
sudo pip3 install PyQt
sudo pip install pyqtconfig
sudo pip install sipconfig
sudo apt install pyqt5.qsci-dev
sudo apt install pyqt5-dev
sudo apt install pyqt5-dev-tools
sudo apt-get install QScintilla
sudo apt-get install libqscintilla2-qt5-dev
sudo apt-get install libqtkeychain1
sudo apt-get install qtkeychain-dev
sudo apt-get install libqwt-dev
sudo apt-get install libspatialite-dev
sudo apt-get install libqt5xmlpatterns5-dev
sudo apt-get install pyqt5-dev-tools
sudo apt-get install pyqt5-dev
sudo apt-get install libgsl-dev
sudo apt-get install libspatialindex-dev
sudo apt-get install python3-pyqt5.qsci
sudo apt-get install python3-pyqt5.qsci-dbg
sudo apt install pyqt5-dev-tools
sudo apt install pyqt5-dev
sudo apt install pyqt5.qsci-dev
sudo apt-get install python3-pyqt5.qtsql
sudo apt-get install libpq-dev
sudo apt-get install libpqxx-dev
sudo apt-get install libpqxx-doc
}
GenFileNameVar "$(ls *.tar.* *.zip)"
GenEnvVar
#TarXFFile "glib-2.56.0.tar.xz" ~/opt ""
#TarXFFile "atk-1.29.92.tar.gz" ~/opt ""
#TarXFFile "tiff-4.0.9.tar.gz" ~/opt " --shared "
#TarXFFile "libjpeg-turbo-1.5.3.tar.gz" ~/opt ""
#TarXFFile "gdk-pixbuf-2.30.8.tar.xz" ~/opt ""
#TarXFFile "gtk+-2.24.32.tar.xz" ~/opt ""
#TarXFFile "wxGTK-2.8.12.tar.gz" ~/opt " --enable-unicode --enable-stl --enable-gui --enable-shared --enable-msgdlg "
#TarXFFile "libupnp-1.6.21.tar.bz2" ~/opt ""
#"cryptopp565.zip"
#make install PREFIX=${HOME}/opt/cryptopp565
#TarXFFile "zlib-1.2.11.tar.gz" ~/opt ""
TarXFFile "aMule-2.3.2.tar.xz" ~/opt " --enable-amule-daemon --enable-amulecmd --enable-webserver --enable-amule-gui --enable-alc --enable-alcc --enable-fileview --enable-plasmamule "
#TarXFFile "xcb-proto-1.13.tar.bz2" ~/opt ""
#TarXFFile "libxcb-1.13.tar.bz2" ~/opt ""
#TarXFFile "glib-2.57.1.tar.xz" ~/opt ""
#TarXFFile "gobject-introspection-1.56.1.tar.bz2" ~/opt ""
#TarXFFile "gperf-3.1.tar.gz" ~/opt ""
#TarXFFile "udev-181.tar.gz" ~/opt " --disable-keymap "
#TarXFFile "libusb-1.0.22.tar.bz2" ~/opt ""
#TarXFFile "usbutils-007.tar.gz" ~/opt ""
#TarXFFile "graphviz.tar.gz" ~/opt ""
#TarXFFile "doxygen-1.8.14.src.tar.gz" ~/opt ""
#X11/extensions/XInput.h: No such file or directory #GenInputHeader
#TarXFFile "freeglut-3.0.0.tar.gz" ~/opt ""
#TarXFFile "gdal-2.3.0.tar.gz" ~/opt ""
#TarXFFile "proj-4.9.1.tar.gz" ~/opt ""
#TarXFFile "geos-3.5.1.tar.bz2" ~/opt " CFLAGS=-fPIC CXXFLAGS=-fPIC --shared "
#TarXFFile "spatialite-2.2.tar.gz" ~/opt ""
#TarXFFile "freexl-1.0.5.tar.gz" ~/opt ""
#TarXFFile "libspatialite-4.2.0.tar.gz" ~/opt ""
#TarXFFile "libspatialite-4.3.0.tar.gz" ~/opt ""
#TarXFFile "readosm-1.1.0.tar.gz" ~/opt ""
#TarXFFile "spatialite-tools-4.2.0.tar.gz" ~/opt " "
#TarXFFile "fftw-3.3.8.tar.gz" ~/opt ""
# configure
#TarXFFile "freetype-2.9.tar.bz2" ~/opt " CFLAGS=-fPIC CXXFLAGS=-fPIC --shared "
#TarXFFile "cairo-1.14.12.tar.xz" ~/opt ""
#TarXFFile "grass-7.4.0.tar.gz" ~/opt " --with-freetype-includes=/home/du/opt/freetype-2_9/include/freetype2 "
#TarXFFile "spatialindex-src-1.8.5.tar.bz2" ~/opt ""
#TarXFFile "QScintilla_gpl-2.10.4.tar.gz" ~/opt ""
##TarXFFile "qwt-5.2.3.tar.bz2" ~/opt ""
#TarXFFile "qgis-latest.tar.bz2" ~/opt " -DGDAL_INCLUDE_DIR=/opt/gdal-2_3_0/include -DGDAL_LIBRARY=/home/durongze/opt/gdal-2_3_0/lib/ -DPROJ_INCLUDE_DIR=/home/durongze/opt/proj-4_9_1/include/ -DPROJ_LIBRARY=/home/durongze/opt/proj-4_9_1/lib -DQSCINTILLA_INCLUDE_DIR=/usr/lib/x86_64-linux-gnu/ -DQSCINTILLA_INCLUDE_DIR=/usr/lib/x86_64-linux-gnu/ -DQSCINTILLA_LIBRARY=/usr/lib/libqscintilla2_qt5.so -DQt5Positioning_DIR=/usr/lib/x86_64-linux-gnu "
TarXFFile "qgis-latest.tar.bz2" ~/opt " -DGDAL_INCLUDE_DIR=/opt/gdal-2_3_0/include -DGDAL_LIBRARY=/home/durongze/opt/gdal-2_3_0/lib/libgdal.so -DPROJ_INCLUDE_DIR=/home/durongze/opt/proj-4_9_1/include/ -DPROJ_LIBRARY=/home/durongze/opt/proj-4_9_1/lib/libproj.so -DQt5Positioning_DIR=/usr/lib/x86_64-linux-gnu -DQSCINTILLA_VERSION_STR=/usr/lib/python3/dist-packages/PyQt5/Qsci.cpython-36m-x86_64-linux-gnu.so"
#TarXFFile "zlib-1.2.11.tar.xz" ~/opt " --shared "
#TarXFFile "libffi-3.2.1.tar.gz" ~/opt ""
#TarXFFile "util-linux-2.32.tar.xz" ~/opt ""
#TarXFFile "pcre-8.42.tar.bz2" ~/opt " --enable-utf8 --enable-unicode-properties "
#TarXFFile "glib-2.57.1.tar.gz" ~/opt ""
#TarXFFile "readline-7.0.tar.gz" ~/opt ""
#TarXFFile "sdcv-0.4.2.tar.bz2" ~/opt ""
#TarXFFile "qt-everywhere-opensource-src-5.6.3.tar.xz" ~/opt " -confirm-license -opensource -no-opengl -no-opengles3 -nomake examples"
#TarXFFile "libxml2-2.9.8.tar.gz" ~/opt ""
#TarXFFile "php-5.6.38.tar.gz" ~/opt " --with-libxml-dir=/usr/local/libxml2-2_9_8/ --with-apxs2=/usr/bin/apxs "