PDA

View Full Version : problem with perl ??


miranda
01-03-2003, 06:30 AM
I have a client who recently migrated his site from Unix server to Win2k server to utilize ASP and database support (the cost of php4 and mySQL on the host servers was double that of Win2K server with asp support). I have not been able to get any of the CGI scripts written in perl5 to work. We are trying to use the (webBBS)Bulletin Board written in perl, instead of replacing it with the one I have in ASP which uses a database. Now I admit, I don't know perl at all. Is there something in Win2K that doesn't allow this program to work? I am at a loss. BTW Here is the error i get:

Unable to Open Database File!

The script was unable to open the message database file. This is most likely due to a permissions error in the data directory.



I have had the host company set the directory to read/write permissions

Philip M
01-05-2003, 09:09 AM
All I know is that my book warns me that there are a number of important differences between Perl running on Unix and Perl running on Windows, but it does not say what they are. One might guess that these differences relate to file operations.

Sorry I cannot be more helpful.

miranda
01-05-2003, 03:59 PM
the problem was in how windows and unix show the path in the data directory

unix path $dir = "/webs/cyban2/data";

windows path $dir = "d:/webs/cyban2/data";

The funny thing was I had used ASP's Server.MapPath to get the path's, and it had the drive letter in there. But since Unix version didn't use it I thought it was a Perl item not a Windows specific item.

Thanks anyway

miranda
01-05-2003, 04:02 PM
I also had to delete all of the previous database files because of the different Database Module. After that I then was able to incorporate the old files into the newDBM.