Revision 8715

View differences:

trunk/install/launcher/izpack-launcher-1.3_linux/h_gvSIG-install.sh
4 4
echo Launching instalation program....
5 5
cd ./tmp_gvSIGInstall
6 6
set +e
7
export LD_LIBRARY_PATH="$PWD:$PWD/lib:$LD_LIBRARY_PATH"
8
./launcher-Linux
7
#export LD_LIBRARY_PATH="$PWD:$PWD/lib:$LD_LIBRARY_PATH"
8
runOK=true
9

  
10
if  !(./launcher-Linux >launcher_out 2>&1 )
11
then
12
	runOK=false	
13
	
14
	export LD_LIBRARY_PATH="$PWD:$PWD/lib:$LD_LIBRARY_PATH"
15
	if (./launcher-Linux > launcher_out2  2>&1 )
16
	then
17
		runOK=true
18
	fi
19
	
20
fi
21

  
22
if !$runOk
23
then
24
	cat launcher_out	
25
	echo
26
	cat launcher_out2
27
	echo
28
	if grep -q 'libstdc++.so.6:' launcher_out ; then
29
		echo You need the libstdc++6 library correctly instaled in your system to use 
30
		echo the installation program.
31
		echo
32
		echo "In a debian-based distribution (if you have root privileges)"
33
		echo you can run the command:
34
		echo '    apt-get install libstdc++6'
35

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

  
9 48
cd ..
10 49
rm -r ./tmp_gvSIGInstall 2>&1 >/dev/null
11 50
exit 0 

Also available in: Unified diff