Installation de pear - Apprendre-PHP.com

Rechercher
PHP5 Avancé - Eric Daspet et Cyril Pierre de Geyer - Commander sur Amazon.fr

Installation de pear

Par tiffany -  3 reponses -  Le 19/07/2010 -  Flux RSS - 

bonjour a tous; Je suis entrain de suivre le tutoriel de jobeet pour faire connaissance avec symfony. Je suis à la leçon 13 ou on me demande l'installation de pear.

J'ai cherché sur le net, j'ai trouvé plusieurs méthodes:

http://php.developpez.com/cours/pear/installation/ ou bien:

http://www.developpez.net/forums/d44...ppapachepphp5/ et ca aussi:

http://ig2a.site90.com/pear.php

http://blog.touv.fr/2003/10/comment-...us-window.html

et beaucoup d'autres sites qui parlent d'installation mais en utilisant easyPhp ou WAMP sachant que moi j'ai fait une installation séparé de apache+ php5+mysql (manuellement sans le easyphp ni wamp) et je suis sous Windows XP.

Quel site je doit choisir pour mon installation?? Auriez vous un tuto assez simple parce que je débute dans symfony et je suis nulle en pear.

Merci a vous

 

Réponses apportées à cette discussion

Par Cyrano -  Le 20/07/2010 - 

Salut Tiffany

On va faire plus simple :)

Regarde dans C:\PHP, tu devrais avoir un fichier go-pear.bat : ouvre une invite de commande et mets-toi dans le répertoire de PHP : tapes ensuite go-pear.bat, tu vas voir ceci :

  1. C:\PHP>go-pear.bat
  2.  
  3. Are you installing a system-wide PEAR or a local copy?
  4. (system|local) [system] :

Là, on tedemande si tu veux installeren local ou pour tout le système. Tu peux mettre « local ».

On te demande alors de confirmer en tapant « yes »

Ça va alors t'afficher la liste de ce qui va être installé : il te reste à choisir si tu installes tout ou une partie seulement. Pour tout installer, appuie simplement sur la touche [Entrer] et observe la suite : c'est terminé ;)

  1. Please confirm local copy by typing 'yes' : yes
  2.  
  3. Below is a suggested file layout for your new PEAR installation. To
  4. change individual locations, type the number in front of the
  5. directory. Type 'all' to change all of them or simply press Enter to
  6. accept these locations.
  7.  
  8. 1. Installation base ($prefix) : C:\PHP
  9. 2. Temporary directory for processing : C:\PHP\tmp
  10. 3. Temporary directory for downloads : C:\PHP\tmp
  11. 4. Binaries directory : C:\PHP
  12. 5PHP code directory ($php_dir) : C:\PHP\pear
  13. 6. Documentation directory : C:\PHP\pear\docs
  14. 7. Data directory : C:\PHP\pear\data
  15. 8. Tests directory : C:\PHP\pear\tests
  16. 9. Name of configuration file : C:\PHP\pear.ini
  17. 10. Path to CLI php.exe : C:\PHP\.
  18.  
  19. 1-10, 'all' or Enter to continue:
  20. Beginning install...
  21. Configuration written to C:\PHP\pear.ini...
  22. Initialized registry...
  23. Preparing to install...
  24. installing phar://go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.3.2.tar...
  25. installing phar://go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.2.3.tar...
  26. installing phar://go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.6.1.tar...
  27. installing phar://go-pear.phar/PEAR/go-pear-tarballs/Structures_Graph-1.0.2.tar...
  28. pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)
  29. install ok: channel://pear.php.net/Archive_Tar-1.3.2
  30. install ok: channel://pear.php.net/Console_Getopt-1.2.3
  31. install ok: channel://pear.php.net/Structures_Graph-1.0.2
  32. install ok: channel://pear.php.net/PEAR-1.6.1
  33. PEAR: Optional feature webinstaller available (PEAR's web-based installer)
  34. PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer)
  35. PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer)
  36. PEAR: To install optional features use "pear install pear/PEAR#featurename"
  37.  
  38. ** WARNING! Old version found at C:\PHP, please remove it or be sure to use the new c:\php\pear.bat command
  39.  
  40. The 'pear' command is now at your service at c:\php\pear.bat
  41. Appuyez sur une touche pour continuer...
  42.  
  43. C:\PHP>

Maintenant, tu peux vérifier ce qui est installé en tapant « PEAR list ». Chez moi par exemple, ça donne ceci :

  1. C:\PHP>pear list
  2. INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET:
  3. =========================================
  4. PACKAGE VERSION STATE
  5. Archive_Tar 1.3.2 stable
  6. Auth_SASL 1.0.4 stable
  7. Console_Getopt 1.2.3 stable
  8. HTML_Common 1.2.5 stable
  9. HTML_QuickForm 3.2.11 stable
  10. Mail 1.2.0 stable
  11. Net_SMTP 1.4.2 stable
  12. Net_Socket 1.0.9 stable
  13. PEAR 1.6.1 stable
  14. Structures_Graph 1.0.2 stable
  15. XML_Util 1.2.1 stable
  16.  
  17. C:\PHP>

Si tu as des problèmes, il y a une aide intégrée, tapes « PEAR help » :

  1. C:\PHP>pear help
  2. Commands:
  3. build Build an Extension From C Source
  4. bundle Unpacks a PECL Package
  5. channel-add Add a Channel
  6. channel-alias Specify an alias to a channel name
  7. channel-delete Remove a Channel From the List
  8. channel-discover Initialize a Channel from its server
  9. channel-info Retrieve Information on a Channel
  10. channel-update Update an Existing Channel
  11. clear-cache Clear Web Services Cache
  12. config-create Create a Default configuration file
  13. config-get Show One Setting
  14. config-help Show Information About Setting
  15. config-set Change Setting
  16. config-show Show All Settings
  17. convert Convert a package.xml 1.0 to package.xml 2.0 format
  18. cvsdiff Run a "cvs diff" for all files in a package
  19. cvstag Set CVS Release Tag
  20. download Download Package
  21. download-all Downloads each available package from the default channel
  22. info Display information about a package
  23. install Install Package
  24. list List Installed Packages In The Default Channel
  25. list-all List All Packages
  26. list-channels List Available Channels
  27. list-files List Files In Installed Package
  28. list-upgrades List Available Upgrades
  29. login Connects and authenticates to remote server
  30. logout Logs out from the remote server
  31. makerpm Builds an RPM spec file from a PEAR package
  32. package Build Package
  33. package-dependencies Show package dependencies
  34. package-validate Validate Package Consistency
  35. pickle Build PECL Package
  36. remote-info Information About Remote Packages
  37. remote-list List Remote Packages
  38. run-scripts Run Post-Install Scripts bundled with a package
  39. run-tests Run Regression Tests
  40. search Search remote package database
  41. shell-test Shell Script Test
  42. sign Sign a package distribution file
  43. uninstall Un-install Package
  44. update-channels Update the Channel List
  45. upgrade Upgrade Package
  46. upgrade-all Upgrade All Packages
  47. Usage: PEAR [options] command [command-options] <parameters>
  48. Type "pear help options" to list all options.
  49. Type "pear help shortcuts" to list all command shortcuts.
  50. Type "pear help <command>" to get the help for the specified command.
  51.  
  52. C:\PHP>

C'est pas plus compliqué que ça :)

 

 

 

 
Par tiffany -  Le 20/07/2010 - 

Bonjour cyrano,

merci beaucoup pour votre aide, c'est nettement plus simple....

L'installation s'est parfaitement déroulée.

 

 

 
Par Cyrano -  Le 20/07/2010 - 

:)

 

 

Ajouter une réponse à la discussion

Seuls les membres loggués sont autorisés à poster dans les forums !