Statistics
| Revision:

svn-gvsig-desktop / tags / v1_0_2_Build_904 / install / launcher / izpack-launcher-1.3_linux / h_gvSIG-install.sh @ 10724

History | View | Annotate | Download (1.32 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
org_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
9
#export LD_LIBRARY_PATH="$PWD:$PWD/lib:$LD_LIBRARY_PATH"
10
./launcher-Linux >launcher_out 2>&1
11
res=$?
12
runOK=true
13
if [ $res -eq 1 -o $res -eq 0 ] 
14
then
15
	runOK=true
16
else
17
	runOK=false
18
	export LD_LIBRARY_PATH="$PWD:$PWD/lib:$LD_LIBRARY_PATH"
19
	./launcher-Linux > launcher_out2  2>&1
20
	res=$?
21
	if [  $res = 1 -o  $res = 0 ]
22
	then
23
		runOK=true
24
	fi
25
	
26
fi
27
LD_LIBRARY_PATH=$org_LD_LIBRARY_PATH
28
if [ $runOK = false ]
29
then
30
	cat launcher_out	
31
	echo
32
	cat launcher_out2
33
	echo
34
	if grep -q 'libstdc++.so.6:' launcher_out ; then
35
		echo You need the libstdc++6 library correctly instaled in your system to use 
36
		echo the installation program.
37
		echo
38
		echo "In a debian-based distribution (if you have root privileges)"
39
		echo you can run the command:
40
		echo '    apt-get install libstdc++6'
41

    
42
	fi
43
	if grep -q 'libc.so.6:' launcher_out ; then
44
		echo You need the libc6 library correctly instaled in your system to use 
45
		echo the installation program.
46
		echo
47
		echo "In a debian-based distribution (if you have root privileges)"
48
		echo you can run the command:
49
		echo '    apt-get install libc6'
50
	fi
51
	echo
52
fi
53

    
54
cd ..
55
rm -r ./tmp_gvSIGInstall 2>&1 >/dev/null
56
exit 0