-
11 Jan 2011 11:06 AM #1
Php - Pear Hell - can't install Logger (Solved)
Php - Pear Hell - can't install Logger (Solved)
I know there are many PHP types out there and I was hoping maybe someone has hit this problem.
Due to a total act of stupidity I lost my development region (wamp - Apache - Tomcat )
So I rebuilt using the Current WAMP running php5.3.5, I needed the pear logger.
Now the fun begins. Looks like the downloader needs package Structures/Graph.php but you can't install Structures_Graph until you have . . . You get the idea.
in the linux space I could fix this via YUM or other methods, but in the windows/wamp area I am a little lost.
anyone have a way to fix this ?
Code:C:\wamp\bin\php\php5.3.5>pear install -a Log-1.12.1 WARNING: "pear/DB" is deprecated in favor of "pear/MDB2" pear/Log can optionally use PHP extension "sqlite" downloading Log-1.12.1.tgz ... Starting to download Log-1.12.1.tgz (44,601 bytes) ............done: 44,601 bytes downloading DB-1.7.13.tgz ... Starting to download DB-1.7.13.tgz (132,246 bytes) ...done: 132,246 bytes downloading MDB2-2.4.1.tgz ... Starting to download MDB2-2.4.1.tgz (119,790 bytes) ...done: 119,790 bytes downloading Mail-1.2.0.tgz ... Starting to download Mail-1.2.0.tgz (23,214 bytes) ...done: 23,214 bytes downloading Net_SMTP-1.4.4.tgz ... Starting to download Net_SMTP-1.4.4.tgz (12,264 bytes) ...done: 12,264 bytes downloading Net_Socket-1.0.10.tgz ... Starting to download Net_Socket-1.0.10.tgz (5,429 bytes) ...done: 5,429 bytes downloading Auth_SASL-1.0.4.tgz ... Starting to download Auth_SASL-1.0.4.tgz (5,795 bytes) ...done: 5,795 bytes Warning: require_once(Structures/Graph.php): failed to open stream: No such file or directory in PEAR\Downloader.php on line 1217 PHP Warning: require_once(Structures/Graph.php): failed to open stream: No such file or directory in C:\wamp\bin\php\php5.3.5\PEAR\PEAR\Downloader.php on line 1217 Warning: require_once(Structures/Graph.php): failed to open stream: No such file or directory in C:\wamp\bin\php\php5.3.5\PEAR\PEAR\Downloader.php on line 1217 PHP Fatal error: require_once(): Failed opening required 'Structures/Graph.php' (include_path='C:\wamp\bin\php\php5.3.5\pear') in C:\wamp\bin\php\php5.3.5\PEAR \PEAR\Downloader.php on line 1217 Fatal error: require_once(): Failed opening required 'Structures/Graph.php' (inc lude_path='C:\wamp\bin\php\php5.3.5\pear') in C:\wamp\bin\php\php5.3.5\PEAR\PEAR \Downloader.php on line 1217 . . . . C:\wamp\bin\php\php5.3.5>pear install Structures_Graph-1.0.3 downloading Structures_Graph-1.0.3.tgz ... Starting to download Structures_Graph-1.0.3.tgz (30,191 bytes) .........done: 30,191 bytes Warning: require_once(Structures/Graph.php): failed to open stream: No such file or directory in PEAR\Downloader.php on line 1217 PHP Warning: require_once(Structures/Graph.php): failed to open stream: No such file or directory in C:\wamp\bin\php\php5.3.5\PEAR\PEAR\Downloader.php on line 1217 Warning: require_once(Structures/Graph.php): failed to open stream: No such file or directory in C:\wamp\bin\php\php5.3.5\PEAR\PEAR\Downloader.php on line 1217 PHP Fatal error: require_once(): Failed opening required 'Structures/Graph.php' (include_path='C:\wamp\bin\php\php5.3.5\pear') in C:\wamp\bin\php\php5.3.5\PEAR \PEAR\Downloader.php on line 1217 Fatal error: require_once(): Failed opening required 'Structures/Graph.php' (inc lude_path='C:\wamp\bin\php\php5.3.5\pear') in C:\wamp\bin\php\php5.3.5\PEAR\PEAR \Downloader.php on line 1217
-
11 Jan 2011 1:22 PM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,170
- Vote Rating
- 32
Moved to open discussion.

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
11 Jan 2011 2:39 PM #3
as you're on windows, why not simply use xampp from apachefriends.org? It's so simple, pear included.
vg Steffen
--------------------------------------
Release Manager of TYPO3 4.5
energlobe.de - german online magazine
-
11 Jan 2011 4:36 PM #4
Looked at the Xampp project, it looks good.
Would be a better starting point then WAMP for me as the tomcat connector is preconfigured.
Only my initial development is in windows, My stage and production are in linux with another product alfresco running under tomcat.
It has all worked well until I rebuilt and found the new pear has some issues. I expect them to be resolved soon.
So I took a backdoor approach.
I went to my linux server packaged up my pear and pecl files, shipped them to my windows platform, reconfigured.
BAM it's all running like a champ now.
A Cheesy answer but one I can live with in my development space for now.
I will come back in the next few weeks and correct the problem in Wamp ( I would expect it to be fixed soon ) or switch to XAMPP
platform if it has not been resolved.
Thanks again and say hi to nils
Michael C
-
2 Feb 2011 12:07 AM #5
Solution on WAMP
Solution on WAMP
Hope this helps. I ran into the same problem tonight, and found this post as one of the more recent occurrences (it's been happening for years in different versions it looks like)
Still, it took a little bit of research, especially since I just started using PEAR.
I read both of these and basically found the solution.
http://stackoverflow.com/questions/4...es-graph-error
http://www.jargonsoft.com/support/kn...php?article=48
However, at first I wasn't entirely clear on what to do. After I figured it out (by examining line 1217 from the Downloads.php script that was listed in my error), I made a step-through for future fresh installs of my WAMP/PEAR:
[solution]
1. Download and uncompress Structures_Graph from the pear.php.net website.
Note: ? may want to get a version older than your current install of PEAR, though I had no trouble with the latest version (1.0.4) while running PEAR 1.8.0
2. Move folders/files into place
To find where to move this folder, if you don't know:
cmdline> pear config-show
Find the path for "PEAR directory php_dir", which is your PEAR\lib folder
"Structures" folder -> move into the "PEAR\lib" folder
The rest can be deleted as they'll be created when you actually install Structures_Graph, but for reference:
"LICENSE" -> delete or move it to "PEAR" root, or docs or wherever
"docs" folder -> delete or move into the "PEAR\docs" folder
"tests" folder -> delete of move into the "PEAR\tests" folder
"package.xml" -> delete, and any other package files
3. Install "Structures_Graph", Even though the files are present, Structures_Graph is not really installed yet.
command line> pear -a install Structures_Graph
This will install the latest version from your configured channel (ex. pear.php.net)
The -a argument will install any dependent packages as well
4. Upgrade your PEAR install to current version
cmdline> pear upgrade PEAR
5. Upgrade the package Console_GetOpt. It likely was not installed properly yet
cmdline> pear upgrade Console_Getopt
Good luck! Wouldn't mind hearing back on your opinion of XAMPP over WAMP since you did a quick migrate there
-
10 Feb 2011 3:11 PM #6
For this project I kept Wamp and just pulled the Pear libraries from my linux server.
I did install XAMPP, looks good, looks better them Wamp but not worth migrating at this time.
I resolved the issue and I have larger issues then tweeking my development environment.
-
11 Aug 2011 11:14 AM #7
perfect solution
perfect solution
@BrotherChe: perfect solution. great!!!
Similar Threads
-
How to install extJS on delphi for php ide
By aytaral in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 14 Apr 2008, 5:06 PM -
A Logger singleton
By Animal in forum Ext 2.x: User Extensions and PluginsReplies: 2Last Post: 19 Nov 2007, 7:38 AM -
Similar tool in Ext like YAHOO Logger to debug events?
By Wolfgang in forum Ext 1.x: Help & DiscussionReplies: 2Last Post: 6 Aug 2007, 6:33 AM -
YUI Logger and Basic Dialog
By jbowman in forum Community DiscussionReplies: 12Last Post: 27 Nov 2006, 5:50 PM -
Nice CSS Skin for YUI Logger
By nate in forum Community DiscussionReplies: 2Last Post: 7 Nov 2006, 9:51 AM



Reply With Quote