Perl/Windows problem

Posted by kurush on 2007-09-27 13:33

Hello.

Some strange problem:

C:\xxxx>perl -e "print '\"\"' "
Can't open nul: No such file or directory

Thanks

David DelGreco | Fri, 2007-09-28 13:33

I copied and pasted it and it prints the following on my WinXP system.

""

-dd

kurush | Fri, 2007-09-28 13:51

Yes, This problem persist only in one system.
Is there any way to debug/find out what wrong with this system?

thank,
alex

kurush | Fri, 2007-09-28 13:55

Even this doesn't work:

C:\Downloads\AP822_source\AP822_source>perl -e "#"
Can't open nul: No such file or directory

grahams
ActiveState Staff
Fri, 2007-09-28 14:20

What is your operating system/version, and which version of the installer did you use when you set up?

David DelGreco | Fri, 2007-09-28 15:37

It is possible you have a corrupted version of Perl. Could you uninstall/reinstall the installation of Perl? It looks like you're running from the source directory. Have you built your own? Have you tried the MSI or EXE install from activestate.com?

-dd

kurush | Sat, 2007-09-29 11:31

perl -v

This is perl, v5.8.8 built for MSWin32-x86-multi-thread
(with 18 registered patches, see perl -V for more detail)

Copyright 1987-2007, Larry Wall

Binary build 822 [280952] provided by ActiveState http://www.ActiveState.com
Built Jul 31 2007 19:34:48
---------------------------------------------------------------------------
Microsoft Windows XP [Version 5.1.2600]

Yes, I've reinstalled perl few times. I din't built my perl... Just checkin source code...

David DelGreco | Sat, 2007-09-29 15:10

Well, you keep getting the message "Can't open nul". I wonder if it's something going on on that machine, or maybe in that console. Do you have 4NT or something like that on the system? If it's not Perl, then it could be anything, and I don't have a clue.

Dave

kurush | Mon, 2007-10-01 07:17

No, I don't.
There was cygwin, but I uninstall this application.

SO, looks like we have only one way - reinstall OS.

Thank you for all of your help.

kurush | Mon, 2007-10-01 11:57

Fixed. There was no NUL device in this system.
Registry has been edited, added NUL device.
Everything fine now.
Thanks.

David DelGreco | Mon, 2007-10-01 12:24

Interesting. I didn't know you could remove the NUL device (though it makes sense in hindsight). Good going!

Dave