when trying to install igbinary to xampp v3.2.2
downloaded dll from this link https://pecl.php.net/package/igbinary/2.0.1/windows
getting this below error, surprisingly php_igbinary.dll exist in 'C:\xampp\php\ext\' then why this error? any help?
Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\igbinary.dll' - The specified module could not be found.
in Unknown on line 0
Under Windows and XAMP you have to use the Thread Safe version (TS) the other one aren't working. And you have to be patient, that it is only available to PHP 7.1. Here is another explanation:
https://github.com/igbinary/igbinary/issues/246
Right DLL file was not placed for PHP version 7.4.0 once i placed the right version for igbinary DLL file in to PHP/ext folder, issue got fixed.
Related
[26-Nov-2021 21:49:17 Asia/Shanghai] PHP Warning: PHP Startup: Unable to load dynamic library '/Applications/MAMP/bin/php/php5.6.40/lib/php/extensions/no-debug-non-zts-20131226/yaf.so' - dlopen(/Applications/MAMP/bin/php/php5.6.40/lib/php/extensions/no-debug-non-zts-20131226/yaf.so, 0x0009): tried: '/Applications/MAMP/bin/php/php5.6.40/lib/php/extensions/no-debug-non-zts-20131226/yaf.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/lib/yaf.so' (no such file) in Unknown on line 0
You are loading the incorrect version for your PHP Version.
if this is Yet Another Framework
You can only use this on the version of PHP is created for.
for example if your PHP Version is 5.3
You would need a yaf.so to match PHP 5.3
Looking on there GIT this is a 5.2 build, so your PHP Version needs to match this.
Personally i would ditch the 5.3 you are running and install 7.0.
5.3 is very dated, pointless developing anything based on this.
When you have the right version, Place this inside your ext folder in PHP.
Edit your PHP.ini file
add in:
extension=yaf.so
Ensure your extension_dir is configured correctly too:
extension_dir = "ext"
your yaf should be in the same folder as the extension dir, just ensure extension is built for the PHP version you are using, they are not cross compatible
I want to install phalcon, so followed this step:
I download the phalcon_x64_vc15_php7.4_nts.zip.zip, from here(https://github.com/phalcon/cphalcon/releases/tag/v5.0.0-alpha.2)
I go to this pages(https://pecl.php.net/package/psr/1.1.0/windows) to download 7.3 Non Thread Safe (NTS) x64
put php_phalcon.dll、php_psr.dll、php_psr.pdb inside php\ext
and then I modify the php.ini with this
extension=php_psr.dll
extension=php_phalcon.dll
Phalcon is not install successfully, the error shows PHP Warning: PHP Startup: Unable to load dynamic library 'php_psr.dll'、Warning: PHP Startup: Unable to load dynamic library 'php_phalcon.dll'
This is my PHP version.
Can someone help me to solve it? Thanks.
You are trying to download phalcon v5.0.0-alpha.2 which is compatible with php version 7.4 (minimum). Try either upgrading to PHP 7.4 or try downgrading your phalcon version.
https://github.com/phalcon/cphalcon/releases/tag/v4.1.2
Here you can download and use V4.1.2 which supports PHP version 7.3 and 7.4
I installed the recent versions of xampp for windows and yaml on my PC with windows 8.1 64bit.
The versions were
xampp-win32-7.0.9-1-VC14-installer.exe
php_yaml-2.0.0rc8-7.0-ts-vc14-x86.zip
I put the line of extension=php_yaml.dll to the end of php.ini file.
I copied php_yaml.dll to C:/xampp/php/ext folder.
I copied yaml.dll to C:/xampp/apache/bin folder.
phpinfo(); command displayed that yaml was enabled.
But bad warning still appeared on command prompt when typing php command:
$ php
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_yaml.dll' - The spec
ified module could not be found.
in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_yaml.dll' - The specified
module could not be found.
in Unknown on line 0
See it on screenshots:
How to fix it?
Add ;C:\xampp\apache\bin to PATH Windows environment variable.
I fixed mine by downloading the correct version of yaml. The yaml Version has to match the installed PHP version. Make sure that you match the thread-safe and non-thread-safe option with your PHP aswell.
How to check if your PHP is thread-safe
I'm trying to get this extension to run on my PHP 5.4 installation. https://github.com/iliaal/php_excel
I've copied both libxl.dll and php_excel.dll into my ext folder. I'm running a IIS server on server2k8.
I however get these errors when starting my PHP engine.
[06-Feb-2015 18:51:18 Asia/Kuwait] PHP Warning: PHP Startup: Invalid
library (maybe not a PHP library) 'libxl.dll' in Unknown on line 0
[06-Feb-2015 18:51:18 Asia/Kuwait] PHP Warning: PHP Startup: Unable
to load dynamic library 'C:/PHP/ext/php_excel.dll' - The specified
module could not be found.
in Unknown on line 0
I've made sure that i've downloaded the correct file from the precompiled ftp site. http://windows.php.net/downloads/pecl/snaps/excel/20140606/
Does anyone have any tips, on what I might do wrong here?
This could be caused by the "thread safe (ts)" and "none thread safe (nts)" versions of the php binaries.
Maybe you have downloaded the nts version of php_excel.dll and are trying to use it with a ts version of php.
If you do that the error "The specified module could not be found." is thrown.
I'm using php 5.4.12 which installed extension php_redis and php_igbinary that was downloaded at https://github.com/nicolasff/phpredis/downloads.
There are 2 version: thread version and non thread version. First i try with the first one. Copy 2 file php_redis and php_igbinary to ext folder of php, edit php.ini config for load extension and seem to successful
After that, i run myfile.php that has command: $redis = new Redis(); -> it got fatal error: CLASS REDIS IS NOT FOULD.
I have tried with others version (non thread) but i got similar.
Anybody know about this
Tks in advance
UPDATE:
I look at apache error log. Got this:
PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.4.12/ext/php_igbinary.dll' - %1 is not a valid Win32 application.\r\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.4.12/ext/php_redis.dll' - %1 is not a valid Win32 application.\r\n in Unknown on line 0
This is a version mismatch. You're using the 64-bit php_redis.dll instead of the 32-bit. Download and paste the 32-bit version for php 5.3-5.6 from here into your php/ext folder and add the following line to your php.ini:
extension=php_redis.dll
Versions for php 7.0-7.1 can be found at: https://pecl.php.net/package/redis/3.1.0/windows
I downloaded the .dll here. It only worked when choosing the thread-safe (TS) one.
It is important to pay attention to the correct version of PHP.