there is a quick fix to run the simulator on windows, for those who don't have *nix text utilities installed.
in EQ\dbaccess.pl file, in the first lines, comment out a block and add another, starting line 14 :
Code:
#foreach $var ( "user","host","password","database"){
# print "reading ",$var, "\n";
# #$dbvars{"db".$var}=`cat $dbinifile | egrep $var | sed 's/$var=//'`;
# $dbvars{"db".$var}=`cat $dbinifile | sed 's/#.*//' | egrep $var | sed 's/$var=
# chomp($dbvars{"db".$var});
#}
open(DBINI,$dbinifile);
while(<DBINI>){
chomp;
s/\#.*$//;
if(m/(\w+)=(.+)/){
print "setting $1 to $2\n";
$dbvars{"db".$1}=$2;
}
}
close(DBINI);
It should fix db access for win and still work in *nix.
Also, you need the DBI and DBD modules. install them like this :
Code:
C:>ppm
ppm>install DBI
... downloads and installs
ppm>install DBD::mysql
...This will return 2 results so at the prompt just
type
...install again and it will install the first package
ppm>install
...downloads and installs package 1 DBD-mysql
Thanks StrangeBrew for the help
