Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8026 Posts in 1851 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: Windows path translation error?  (Read 435 times)
0 Members and 1 Guest are viewing this topic.
webhamster
New Member
*

Karma: 0
Offline Offline

Posts: 0

Webmaster


WWW
« on: February 04, 2004, 03:55:00 PM »

Hi

I've successfully installed this on a Linux server before - no problems.

However, this is my first time (for this version) on a windows server.

It's a Windows NT4 SP6a server, runing activestate perl.  It's been running Perl scripts for about three years - never seem to have had any problems with it (unusual I know!).

I'm upgrade a previous version of Calendar Script to the latest, following the usual instructions, but when I try to run calendar.pl the following error is returned: -

Can't locate TimeLocal.inc in @INC (@INC contains: d:\Inetpub\wwwroot\cgi-bin\calendar\/calendarscript/lib D:/Perl/lib D:/Perl/site/lib .) at d:\Inetpub\wwwroot\cgi-bin\calendar\calendar.pl line 32.
BEGIN failed--compilation aborted at d:\Inetpub\wwwroot\cgi-bin\calendar\calendar.pl line 41.

Naturally my next step is the fire the depug.pl up: -

The file does not exist d:\Inetpub\wwwroot\cgi-bin\calendar\/calendarscript/calendars.txt

Many more lines of this, but you can see that that path is skewed as though the script is getting into a mess with it's slashes/backslashes.

If I un-comment the BASE_DIR line and add the 'real' server path (d:\inetput\wwwroot\cgi-bin\calendar\calendarscript\) the following error is returned: -

The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:


Bareword found where operator expected at d:\Inetpub\wwwroot\cgi-bin\calendar\debug.pl line 17, near "print "Set"
   (Do you need to predeclare print?)
Bareword found where operator expected at d:\Inetpub\wwwroot\cgi-bin\calendar\debug.pl line 19, near "print "Content-type: text/html"
 (Might be a runaway multi-line // string starting on line 17)
   (Do you need to predeclare print?)
Backslash found where operator expected at d:\Inetpub\wwwroot\cgi-bin\calendar\debug.pl line 19, near "html\"
Backslash found where operator expected at d:\Inetpub\wwwroot\cgi-bin\calendar\debug.pl line 19, near "n\"
String found where operator expected at d:\Inetpub\wwwroot\cgi-bin\calendar\debug.pl line 20, near "print ""
 (Might be a runaway multi-line "" string starting on line 19)
   (Missing semicolon on previous

Help!

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 221

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: February 04, 2004, 05:54:00 PM »

** If I un-comment the BASE_DIR line and add the 'real' server path (d:\inetput\wwwroot\cgi-bin\calendar\calendarscript\) the following error is returned: - **

If you're going to use a windows path, you either have to escape all the \'s (backslashes), eg.

d:\\inetput\\wwwroot\\cgi-bin\\calendar\\calendarscript\\

or change them to forward slashed (which is the preferred way), eg.

d:/inetput/wwwroot/cgi-bin/calendar/calendarscript/

Dan O.


------------------

Logged
webhamster
New Member
*

Karma: 0
Offline Offline

Posts: 0

Webmaster


WWW
« Reply #2 on: February 05, 2004, 02:23:00 AM »

Yeah I did try double-escaping the backslashes as you'd shown (\\ instead of \) however, when I ran debug again the path was begining to look like this: -

d:\inetput\wwwroot\cgi-bin\calendar\/calendarscript/filename.extension

See what I mean?  Seems like whatever I do, I can't get a 'meaninful' file path to work on a windows server!!!!!

------------------

Logged
guest
Guest
« Reply #3 on: March 02, 2005, 02:17:00 AM »

Me too, same problem.

We're running "ActivePerl 5.8.6.811"

Neither base_dir options worked for me.

Is there and easy way to change all parts that put together a url to chage to back slashing.
I looked through the code and seems there are heaps to change

Cheers guys.

Logged
Pages: [1]   Go Up
Print
Jump to: