简体   繁体   English

在 laragon 上为 php 7.2 安装 php-decimal 扩展,找不到指定的模块。 扩展小数点不存在

[英]Installing php-decimal extension on laragon for php 7.2, The specified module could not be found. Extension decimal does not exist

I am trying to install this extension我正在尝试安装此扩展

https://php-decimal.io/#installation https://php-decimal.io/#installation

to my Windows 10 64bit operating system which uses Laragon as Apache,PHP,MySQL到我的 Windows 10 64 位操作系统,它使用 Laragon 作为 Apache、PHP、MySQL

as the installation instruction focus more on Linux由于安装说明更侧重于 Linux

I make a research on internet to found out a way to install on windows and found out the procedure to install it is by我在互联网上进行了研究,以找到一种在 Windows 上安装的方法,并发现安装它的过程是

upon doing this I stumble upon an error after executing 'php --re decimal' to check if the extension have been properly installed这样做时,我在执行“php --re decimal”以检查扩展是否已正确安装后偶然发现了一个错误

Warning: PHP Startup: Unable to load dynamic library 'decimal' (tried: C:/laragon/bin/php/php-7.2.19-Win32-VC15-x64/ext\\decimal (The specified module could not be found.), C:/laragon/bin/php/php-7.2.19-Win32-VC15-x64/ext\\php_decimal.dll (The specified module could not be found.)) in Unknown on line 0 Exception:警告:PHP 启动:无法加载动态库 'decimal'(尝试:C:/laragon/bin/php/php-7.2.19-Win32-VC15-x64/ext\\decimal(找不到指定的模块。) , C:/laragon/bin/php/php-7.2.19-Win32-VC15-x64/ext\\php_decimal.dll (The specified module could not be found.)) in Unknown on line 0 异常:

Extension decimal does not exist扩展小数点不存在

i have tried restarting Laragon and using different version of pecl releases,我尝试重新启动 Laragon 并使用不同版本的 pecl 版本,

when i look at phpinfo() i am unable to see any php-decimal extension installed,当我查看 phpinfo() 时,我看不到安装了任何 php-decimal 扩展,

below is the code of the extension i put into php.ini下面是我放入 php.ini 的扩展代码

code_extension_php_decimal.dll code_extension_php_decimal.dll

and below is the error that appear下面是出现的错误

error_extension_decimal_does_not_exists error_extension_decimal_does_not_exists

my php version我的 php 版本

php_version_7.2.19 php_version_7.2.19

what process am I missing我错过了什么过程

what is the proper way to install this extension in windows在 Windows 中安装此扩展的正确方法是什么

Thank you谢谢

If you are using Laragon with PHP 7.2 VC15-x64 download this pecl release如果你使用 Laragon 和 PHP 7.2 VC15-x64 下载这个 pecl 版本

https://windows.php.net/downloads/pecl/releases/decimal/1.3.0/php_decimal-1.3.0-7.2-ts-vc15-x64.zip https://windows.php.net/downloads/pecl/releases/decimal/1.3.0/php_decimal-1.3.0-7.2-ts-vc15-x64.zip

extract then copy to directory提取然后复制到目录

C:\laragon\bin\php\php-7.2.19-Win32-VC15-x64\ext

(this is the default php extension directory, type 'php -i|findstr extension_dir' to get dir if unsure) (这是默认的 php 扩展目录,如果不确定,请键入 'php -i|findstr extension_dir' 以获取目录)

also copy the libmpdec.dll file to C:\\Windows\\System32还将libmpdec.dll文件复制到C:\\Windows\\System32

restart Laragon and it should work, use this command to check if it have been successfully installed重启 Laragon 就可以了,用这个命令检查是否安装成功

php --re decimal

for different php version use different pecl release, also check on which VC version and x32 or x64 to make sure you get the correct release version.对于不同的 php 版本使用不同的 pecl 版本,还要检查哪个 VC 版本和 x32 或 x64 以确保您获得正确的发行版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 安装PHP 7.2扩展名pdflib,模块错误 - Installing PHP 7.2 extension pdflib, module error PHP 7 C ++扩展。 指定的模块无法找到 - PHP 7 C++ extension. The specified module could not be found MacOS arm64e安装php-decimal无法获取libmpdec - Installing php-decimal in MacOS arm64e and can't get libmpdec PHP / cURL 上 Windows 安装:“找不到指定的模块。” - PHP / cURL on Windows install: "The specified module could not be found." php_pthreads.dll-找不到指定的模块。 - php_pthreads.dll - The specified module could not be found.? 无法加载动态库 'parallel'(尝试:C:\\xampp\\php\\ext\\parallel(找不到指定的模块。) - Unable to load dynamic library 'parallel' (tried: C:\xampp\php\ext\parallel ( The specified module could not be found.) 无法在带有 M1 的 macOS 上安装十进制 PHP 扩展 – “找不到 libmpdec” - Cannot install decimal PHP extension on macOS with M1 – "Could not find libmpdec" PHP:找不到指定的过程。 在第0行的Unknown中 - PHP : The specified procedure could not be found. in Unknown on line 0 无法找到过程入口点 xyz/无法找到指定的过程 PHP ERROR with an extension - The Procedure Entry Point xyz could not be located / The Specified Procedure could not be found PHP ERROR with an extension Apache,PHP,找不到指定的模块 - Apache, PHP, The specified module could not be found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM