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 8973511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:27:49+00:00 2026-06-15T18:27:49+00:00

I have successfully compiled PHP 5.4.9 on Cygwin, but now I am unable to

  • 0

I have successfully compiled PHP 5.4.9 on Cygwin, but now I am unable to dynamically load MongoDB extension. That’s the PHP CLI output:

$ php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/mongo.dll' - No such file or directory in Unknown on line 0

However, it is definitely there:

$ ls -l /usr/local/lib/php/extensions/no-debug-non-zts-20100525/mongo.dll
-rwxr-xr-x 1 Linker None 204288 Dec 12 02:12 /usr/local/lib/php/extensions/no-debug-non-zts-20100525/mongo.dll

The DLL file has been downloaded from official MongoDB GitHub repo. It is actually renamed php_mongo-1.3.1-5.4-vc9-nts.dll.
The curious moment: when I try to substitute it with x86_64 version (which my OS version) – it says that DLL has wrong exec format.

  • 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-15T18:27:50+00:00Added an answer on June 15, 2026 at 6:27 pm

    If you downlaoded the extension it is built to be run as native windows dll with PHP compiled using Visual Studio. A PHP compiled using cyhwin-gcc can’t use it.

    Either compile the extension yourself into an cygwin .so or use a PHP compiled using visual studio (the later is prefered)

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

Sidebar

Related Questions

I have successfully compiled node.js using cygwin on windows. The problem is that my
I have successfully compiled lua in my mac. It works. It runs. Now, I
I have successfully compiled my code, but it says this: Note: You can also
I have successfully compiled a SystemC application that I use in order to simulate
I've created a ruby C extension TestExt , successfully compiled it, but when I
I have successfully compiled the FFMPEG library to android using NDK. I want to
I'm trying to create a NuGet package from a .csproj. I have successfully compiled
I have successfully upgraded an MFC application which was compiled with an old version
I have my program written in C++ and it is can be successfully compiled
I have compiled a simple win32 app successfully with bc++ (2 lines excerpt only):

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.