svn-gvsig-desktop / tags / v1_0_2_Build_896 / install / launcher / izpack-launcher-1.3_linux / h_gvSIG-install.sh @ 10391
History | View | Annotate | Download (1.24 KB)
1 |
echo Unpacking... |
---|---|
2 |
export _POSIX2_VERSION=199209 |
3 |
set -e |
4 |
tail +$lcount $0 | tar -xz --no-same-owner |
5 |
echo Launching instalation program.... |
6 |
cd ./tmp_gvSIGInstall |
7 |
set +e |
8 |
#export LD_LIBRARY_PATH="$PWD:$PWD/lib:$LD_LIBRARY_PATH" |
9 |
./launcher-Linux >launcher_out 2>&1 |
10 |
res=$? |
11 |
runOK=true |
12 |
if [ $res -eq 1 -o $res -eq 0 ] |
13 |
then |
14 |
runOK=true |
15 |
else |
16 |
runOK=false |
17 |
export LD_LIBRARY_PATH="$PWD:$PWD/lib:$LD_LIBRARY_PATH" |
18 |
./launcher-Linux > launcher_out2 2>&1 |
19 |
res=$? |
20 |
if [ $res = 1 -o $res = 0 ] |
21 |
then |
22 |
runOK=true |
23 |
fi |
24 |
|
25 |
fi |
26 |
|
27 |
if [ $runOK = false ] |
28 |
then |
29 |
cat launcher_out |
30 |
echo |
31 |
cat launcher_out2 |
32 |
echo |
33 |
if grep -q 'libstdc++.so.6:' launcher_out ; then |
34 |
echo You need the libstdc++6 library correctly instaled in your system to use |
35 |
echo the installation program. |
36 |
echo |
37 |
echo "In a debian-based distribution (if you have root privileges)" |
38 |
echo you can run the command: |
39 |
echo ' apt-get install libstdc++6' |
40 |
|
41 |
fi |
42 |
if grep -q 'libc.so.6:' launcher_out ; then |
43 |
echo You need the libc6 library correctly instaled in your system to use |
44 |
echo the installation program. |
45 |
echo |
46 |
echo "In a debian-based distribution (if you have root privileges)" |
47 |
echo you can run the command: |
48 |
echo ' apt-get install libc6' |
49 |
fi |
50 |
echo |
51 |
fi |
52 |
|
53 |
cd .. |
54 |
rm -r ./tmp_gvSIGInstall 2>&1 >/dev/null |
55 |
exit 0 |