Page 1 of 1

Installing PEAR Module Spreadsheet_Excel_Writer

PostPosted: 29. November 2011 00:51
by ChristopherMonkey
Hi, I'm very new to PEAR and having trouble installing it..

I've ran the pear.bat file in C:\xampp\php and then discovered it's a sort of command line script of its own...

I'm trying to install Spreadsheet_Excel_Writer with no joy so far; it keeps moaning about unstable BETA versions and channels or package not found. Any help greatly appreciated as I have not got a clue what I'm doing. Tried using pear channel-discover pear.php.net/Spreadsheet_Excel_Writer (the channel it says is missing) with no luck either.

Thanks in advance!
:)

PS. Perhaps a dumb question, but why on earth has no one created an administrator app for PEAR? Something along the lines of phpMyAdmin say. (Or have they?)

Re: Installing PEAR Module Spreadsheet_Excel_Writer

PostPosted: 29. November 2011 02:28
by Sharley
This Spreadsheet_Excel_Writer package is in beta not stable so the command is slightly different - see below.
http://pear.php.net/package/Spreadsheet_Excel_Writer
http://pear.php.net/package/Spreadsheet ... /download/


Try using the xampp-control-3-beta.exe in the xampp folder as it is a much more feature rich Control Panel - Exit the older 2.5 version first.

Latest XCPv3 versions can be found here:
viewtopic.php?f=16&t=48932


Now you can use the XAMPP_Shell button to type your pear commands.
Code: Select all
pear install Spreadsheet_Excel_Writer-0.9.2
Should have you moving forward.
Code: Select all
pear list
to check it is now installed.

So as a general rule, if you receive an indication that the package you are trying to install is not stable but is a beta then go to:
http://php.pear.net/[packagename]
or do a search for the package here:
http://pear.php.net/packages.php
Then try and establish the package version number and then add that number to the install command as outlined in the code snippet above.

Best wishes. :)