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