1. #1
    Sencha User michaelc's Avatar
    Join Date
    Dec 2007
    Location
    Bay Area - CA
    Posts
    507
    Vote Rating
    0
    michaelc is on a distinguished road

      0  

    Default 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

  2. #2
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,360
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Moved to open discussion.

  3. #3
    Sencha User steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,664
    Vote Rating
    7
    steffenk has a spectacular aura about steffenk has a spectacular aura about steffenk has a spectacular aura about

      0  

    Default


    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

  4. #4
    Sencha User michaelc's Avatar
    Join Date
    Dec 2007
    Location
    Bay Area - CA
    Posts
    507
    Vote Rating
    0
    michaelc is on a distinguished road

      0  

    Default


    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

  5. #5
    Ext User
    Join Date
    Feb 2011
    Posts
    1
    Vote Rating
    0
    BrotherChe is on a distinguished road

      0  

    Default 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

  6. #6
    Sencha User michaelc's Avatar
    Join Date
    Dec 2007
    Location
    Bay Area - CA
    Posts
    507
    Vote Rating
    0
    michaelc is on a distinguished road

      0  

    Default


    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.

  7. #7
    Sencha User
    Join Date
    Aug 2011
    Posts
    1
    Vote Rating
    0
    aminulsumon is on a distinguished road

      0  

    Thumbs up perfect solution

    perfect solution


    @BrotherChe: perfect solution. great!!!

Similar Threads

  1. How to install extJS on delphi for php ide
    By aytaral in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 14 Apr 2008, 5:06 PM
  2. A Logger singleton
    By Animal in forum Ext 2.x: User Extensions and Plugins
    Replies: 2
    Last Post: 19 Nov 2007, 7:38 AM
  3. Similar tool in Ext like YAHOO Logger to debug events?
    By Wolfgang in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 6 Aug 2007, 6:33 AM
  4. YUI Logger and Basic Dialog
    By jbowman in forum Community Discussion
    Replies: 12
    Last Post: 27 Nov 2006, 5:50 PM
  5. Nice CSS Skin for YUI Logger
    By nate in forum Community Discussion
    Replies: 2
    Last Post: 7 Nov 2006, 9:51 AM

Thread Participants: 4