Installing PECL extensions on XAMPP via command line?

I don’t understand how to install PECL extension on XAMPP via command line.
I’m a Windows 7 user.
I often see ‘sudo’ in the installation instruction.
But, actually when I type the command, it gives me unknown command.
Is it impossible to install via windows command line ?
What executable program should I use in the cmd ?

SUDO is a command used by some flavours of Linux, Ubuntu for example. It gives you elevated administrative permissions. I’ve not looked at XAMPP, so I can’t give you anything regarding your Windows problem though.

http://vagrantup.com + https://puphpet.com/

Installing extensions and other things on windows is a pain. The best way to avoid it is to use a vm. The time you spend trying to figure out how to do this in windows is better served by getting a vm up and running. Inevitably you will run into similar problems for common dev related tools like ruby, node js, etc. So use a vm.

Here is an article that explain how to set-up a vm using the previously mentioned tools.

Once you’re on a Linux vm EVERYTHING will be easier to install including pecl extensions.

2 Likes

It seems a bit difficult to configure… :sweat:
Anyway, thanks for the suggestion

I wonder if the Windows Virtual PC option might be more straightforward, then install a flavour of Linux on that. Might be worth checking out the minimum requirements for Win7 and the h/w it’s running on.

http://www.microsoft.com/en-us/download/details.aspx?id=3702

1 Like

Trust me, installing vagrant on windows is a one time PITA. Installing packages for PHP on windows is an UNENDING PITA. Go through the pain once only.

1 Like

Ruby, Node, etc all a pain not just PHP. Everything!!! Well unless you’re using .NET… but that is another topic.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.