PECL extension for Windows

前端 未结 6 1351
刺人心
刺人心 2020-12-23 17:37

I found a few related posts here but didn\'t get my answer. So posting again.
How would I install a PECL extension on windows? Say I want the PECL oAuth extension on Win

6条回答
  •  盖世英雄少女心
    2020-12-23 18:34

    The PECL installer downloads the source code of the extension and tries to compile it with your local C compiler. The problem is that the whole process is designed for Unix systems, where a C compiler is available or can be easily installed. Setting an environment to compile C code under Windows is pretty complicate.

    The ideal solution is getting a DLL file that someone already compiled. That's what the pcle4win site was for. However, there's currently no official repository to download PECL DLLs so you only have two alternatives:

    • Find an unofficial DLL somewhere in Google
    • Compile it yourself (another link) with Microsoft Visual Studio

    It'd be cool that there was a DLL repository out there but I'm unaware of any.

提交回复
热议问题