2 # This scripts checks your system to ensure it has the correct rpm's installed
4 # If the correct RPMs are installed ballista will be uncompressed and complied
6 if (system("rpm -h") == -1)
8 print("Your system lacks rpm, please double check ballista requirements\n");
12 @libs = ("'gcc version 3.3.3'","libg++-2.8.1-2","libg++-devel-2.8.1-2","libstdc++5-3.3.1-2mdk","libstdc++5-devel-3.3.1-2mdk","libstdc++5-static-devel-3.3.1-2mdk");
14 system("touch temp_cmd_file.txt ");
15 system("gcc -v 2> temp_cmd_file.txt ");
16 system("rpm -qa | grep g++ >> temp_cmd_file.txt ");
17 system("rpm -qa | grep libstdc >> temp_cmd_file.txt");
26 $grep.="$_ temp_cmd_file.txt";
29 if ((system("$grep")/256) == 1)
33 # push @notfound , $_;
39 system("rm temp_cmd_file.txt");
41 if(-e
"not_found.txt" )
43 system("rm not_found.txt");
48 $outfile="not_found.txt";
49 open OUTFILE
,">$outfile" or die "Cannot open $outfile for write :$!";
52 print "\nThe following dependencie\(s\) are missing: \n\n";
53 print OUTFILE
"\nThe following dependencie\(s\) are missing: \n\n";
59 if($_ eq "'gcc version 3.3.3'")
61 $name="g++-3.3.3-59756cl.i386.rpm for gcc 3.3.3";
63 elsif($nf{$_} < 3 && $nf{$_} > 0)
77 print OUTFILE
"$name \n";
81 print "\nThe rpms can be downloaded at www.rpmfind.net\n";
82 print "Install these rpms and re-run this script\n";
84 print OUTFILE
"\nThe rpms can be downloaded at www.rpmfind.net\n";
85 print OUTFILE
"Install these rpms and re-run this script\n";
93 if(chdir('ballista') == 1)
96 if ((system("./configure")/256) == 0)
98 print "configuration for Ballista done \n";