Page 1 of 1

Installing any PELC package fail

PostPosted: 30. June 2010 10:39
by masdeeper
Hi,

I'm trying to install PELC package within the XAMPP shell with the command :
Code: Select all
pecl install package name
With all the packages I get the same error :

Code: Select all
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 pecl_http.dsp does not exist.



I need to install pecl_http.


Thanks

Re: Installing any PELC package fail

PostPosted: 30. June 2010 17:10
by JonB
You DO know that this is a WINDOWS environment, right?

So there is no 'shell' as you would think of it in the *nix world. THUS shell commands don't work. (other than some that happen, by accident, to have the same name for the executable)

The Windows concept of a shell is the CMD command line interface, and all you can do there is manipulate things with Windows command line actions. In fact that is the way XAMPP works - everything is run through batch files that starts/stops processes/services. (ditto WAMP). All there is in the Windows world of executables is exe's (executables) and dll's (dynamic link libraries -- extensions for executables).

read this explanation about 'make/build' also:
viewtopic.php?f=16&t=41029

Here's a good explanation of the realtionship between Windows and PHP extensions: (its even dead-on to your issue :shock: )

http://php.net/manual/en/install.pecl.windows.php

Good Luck
:)

Re: Installing any PELC package fail

PostPosted: 01. July 2010 15:30
by masdeeper
I succesfully installed PEAR extensions within the Xampp Windows shell.

So I'm not sure why PELC extensions don't compile.

Maybe we should do a bug report... ?

Instead, I strated coding with cURL


Thanks

Re: Installing any PELC package fail

PostPosted: 01. July 2010 20:21
by JonB
One, err. Three more times -

THERE IS NO COMPILER FOR C BUILT INTO WINDOWS --
THERE IS NO COMPILER FOR C BUILT INTO WINDOWS --
THERE IS NO COMPILER FOR C BUILT INTO WINDOWS --

YOU have to install one and learn it...

Other than that, Good Luck with your projects

:roll:

Re: Installing any PELC package fail

PostPosted: 26. July 2010 21:15
by aalmeidadc
Try "pear config-set php_suffix .exe"