Trying to install phpunit test-helpers ( https://github.com/sebastianbergmann/php-test-helpers )
C:\>pecl install phpunit/test_helpers
downloading test_helpers-1.1.0.tgz ...
Starting to download test_helpers-1.1.0.tgz (10,370 bytes)
.....done: 10,370 bytes
4 source files, building
WARNING: php_bin C:\wamp\bin\php\php5.3.8\php.exe appears to have a suffix \php5.3.8\php.exe, but config variable php_suffix does not match
ERROR: The DSP test_helpers.dsp does not exist.
Using "pecl config-set php_suffix .exe" did not change anything. Unfortunately no recent precompiled DLL's are available to try setting them up manually.
Seems like it's an issue with the test-helpers distribution package.
See the issue and comments: https://github.com/sebastianbergmann/php-test-helpers/issues/6#issuecomment-3654335
If anyone knows how to fix it, it would be great! :)
Note: the Test-Helper extension is superseded by https://github.com/krakjoe/uopz
Related
I've just upgraded to a MacBook with the M1 and when installing php-decimal with pecl install decimal, I receive the following error:
checking for libmpdec custom path... no
checking for libmpdec library in default path... found in /usr/local/lib
checking for libmpdec headers in default path... found in /usr/local/include
checking for mpd_version in -lmpdec... no
configure: error: Please check your version of libmpdec (2.4+)
ERROR: `/private/tmp/pear/temp/decimal/configure --with-php-config=/Applications/MAMP/bin/php/php8.0.8/bin/php-config' failed
I've used homebrew to install libmpdec brew install mpdecimal and I can see the files at usr/local/lib - they are aliases to the homebrew location with these files:
libmpdec++.a
libmpdec++.2.5.1.dylib
libmpdec.a
libmpdec.2.5.1.dylib
libmpdec++.dylib
libmpdec++.3.dylib
libmpdec.dylib
libmpdec.3.dylib
I'm just out of ideas here.
The ancient magic is looking for whether a function named mpd_version to determine if your version of the library has that function.
As you apparently have version 2.5.1 and 3 installed somewhere it should find it. But the error message is one that could result in an older version of the headers being present the directory /usr/local/include.
Can you look at the file mpdecimal.h in /usr/local/include to see if that file is present in there, and contains a definition of the function mpd_version in it.
Though it may also be failing at the linking step. You should be able to dump out which symbols are present in the lib by running nm -gC libmpdec.a or similar.
i am using this command to install memcache (it do not work for other extensions)
C:\php>pecl install memcache
and it is the result :
downloading memcache-2.2.7.tgz ...
Starting to download memcache-2.2.7.tgz (36,459 bytes)
..........done: 36,459 bytes
11 source files, building
WARNING: php_bin C:\php\php.exe appears to have a suffix .exe, but config variable p
fix does not match
ERROR: The DSP memcache.dsp does not exist.
i always get this error
ERROR: The DSP memcache.dsp does not exist.
what should i do?
Do not try to compile it from source on windows but get a pre-compiled .dll file from http://pecl.php.net/package/memcache
You'd need a whole development environment with visual studio to be able to compile the extension from sources. That's probably not what you want.
I am having trouble installing zendopcache. When I am running
pecl install zendopcache-7.0.3
I am getting the following:
downloading zendopcache-7.0.3.tgz ...
Starting to download zendopcache-7.0.3.tgz (Unknown size)
....done: 3,582 bytes
Could not get contents of package "/tmp/pear/download/zendopcache-7.0.3.tgz". Invalid tgz file.
Download of "pecl/zendopcache" succeeded, but it is not a valid package archive
Error: cannot download "pecl/zendopcache"
Download failed
install failed
I have looked around for similar issues and I found some suggestion about adding -Z to the install command. This seems to only change the name of the requested file from zendopcache-7.0.3.tgz to zendopcache-7.0.3.tar but the output remains the same (yes, it still complains that a .tar is not a valid .tgz).
I am running Debian 7 Wheezy with PHP 5.4.4-14+deb7u14
I have seen similar issues reported but none had working answers.
Can someone help?
Thanks!
seems there was a temporary issue with the pecl & pear servers. nevermind
When I tried to install Xdebug using
pecl install xdebug
I'm getting the following error. I'm using the latest xampp bitnami distribution on Windows 7 machine.
downloading xdebug-2.2.5.tgz ... Starting to download xdebug-2.2.5.tgz
(255,840 bytes)
.....................................................done: 255,840
bytes 66 source files, building WARNING: php_bin C:\xampp\php\php.exe
appears to have a suffix \php.exe, but config variable php_suffix
does not match ERROR: The DSP xdebug.dsp does not exist.
Do I need to configure anything on php.ini for this?
I'm running XAMPP on windows and trying to install Oauth into PHP. I already tried running "pecl install oauth" but it gave me error. i don't have a compiler to compile the OAuth 1.10 into .dll, and really don't have the time to learn how to compile it.
the link for the pecl package is here: http://pecl.php.net/package/oauth/1.1.0
EDIT after running 'pecl install oauth' the error i get is this:
WARNING: php_bin C:\XAMPP\xampp\php\php.exe appears to have a suffix \php.exe,
but config variable php_suffix does not match.
ERROR: The DSP oauth.dsp does not exist.
thanks!
This is usually do to incompatibility between the oAuth version and PHP. You can get the latest oAuth library precompiled from the windows.php.net site:
http://windows.php.net/downloads/pecl/releases/oauth/
Also don't forget to add the extension to your php.ini and restart Apache afterwards.
Install APC on Windows:
PECL is used for downloading and
compiling extensions, but Windows
machines generally don't have what is
required to compile these, instead try
looking for and downloading a
pre-compiled .dll.