Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8040375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:52:31+00:00 2026-06-05T03:52:31+00:00

c:\>perl -de 1 Loading DB routines from perl5db.pl version 1.32 Editor support available. Enter

  • 0
c:\>perl -de 1

Loading DB routines from perl5db.pl version 1.32
Editor support available.

Enter h or `h h' for help, or `man perldebug' for more help.

main::(-e:1):   1
  DB<1> require XML::Parser::Expat
Can't load '/usr/lib/perl5/vendor_perl/5.10/i686-cygwin/auto/XML/Parser/Expat/Expat.dll' for module XML::Parser::Expat: No such file or directory at /usr/lib
/perl5/5.10/i686-cygwin/DynaLoader.pm line 200.
 at (eval 5)[/usr/lib/perl5/5.10/perl5db.pl:638] line 2
Compilation failed in require at (eval 5)[/usr/lib/perl5/5.10/perl5db.pl:638] line 2.

  DB<2> q

c:\>

Anyone encountered this before? How to fix it? My cygwin is located in C:\cygwin

there is no directory C:\cygwin\usr\lib but there is C:\cygwin\lib. when I open up bash and try to cd /usr/lib it succeeds(surprisingly) and after a ls it seems the contents are the same as of the directory C:\cygwin\lib.

That said, the directory C:\cygwin\lib\perl5\vendor_perl\5.10\i686-cygwin\auto\XML\Parser\Expat contains a file named Expat.dll.

It seems that cygwin says it can’t find this file but then how can it find /usr/lib/perl5/5.10/i686-cygwin/DynaLoader.pm?

I tried doing chmod +x but that doesn’t fix it.

Any Help?

doing perl -MXML::Parser::Expat -e1 on the command line returns:

c:\dev\trunk\src>perl -MXML::Parser::Expat -e1
Can't load '/usr/lib/perl5/vendor_perl/5.10/i686-cygwin/auto/XML/Parser/Expat/Expat.dll' for module XML::Parser::Expat: No such file or directory at /usr/lib
/perl5/5.10/i686-cygwin/DynaLoader.pm line 200.
 at -e line 0
Compilation failed in require.
BEGIN failed--compilation aborted.

EDIT:
Also, when I do the same in cygwin bash environment(not in cmd directly), there is no error!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T03:52:34+00:00Added an answer on June 5, 2026 at 3:52 am

    Going into cygwin bash shell first and then doing whatever I want does not give this error.
    So I’d suggest move all your perl commands of your bat script to a shell script and invoke that with bash.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using a Perl module called from a CGI scipt in IIS 6
How can I implement lazy module loading in Perl? I've seen similar things in
I want to run R (the statistical package) from Perl in RedHat Linux. I
Repost from Perlmonks for a coworker: I wrote a perl script to separate long
O.K., I'm coming from Perl to Python and I don't have much experience in
Perl is really good for writing the kind of string/file parsing programs that I
Perl allows ... $a = fee; $result = 1 + f($a) ; # invokes
Perl has quite a few special variables such as @F , $! , %!
Perl script needs to receive ajax request, send a success message back to browser,
Using Perl, how do I check if a particular Windows process is running or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.