• support@answerspoint.in

How to Install Pear on Windows using WAMP

94
Advertisement

Hi I want to  Install Pear on Windows using WAMP my system cunfigure is windows XP and WAMP  2.6

3Answer


0

It's not installed per default on all setups.

But you can download the plain go-pear script for that: http://pear.php.net/go-pear
Either invoke it with php.exe go-pear or run it through your webserver as regular .php script. (It has a nice installation GUI!)

  • answered 2 months ago
  • Gul Hafiz

0

you could also just go to the pear site, download the zips and unzip them in the correct local folders (wamp/bin/php)

we've just solved a similar problem like this, where a copy of a live site set up on a local machine was hitting errors because PEAR was not installed. The installation process was hitting errors so we just downloaded and unzipped PEAR and the required modules directly into the correct directory.

problem solved.

  • answered 2 months ago
  • G John

0

PEAR क्या है?

PEAR (PHP Extension and Application Repository) PHP की लाइब्रेरी और पैकेज मैनेजमेंट सिस्टम है, जिससे PHP में अतिरिक्त सुविधाएँ जोड़ी जाती हैं।


आवश्यकताएँ (Requirements)

  • Windows OS

  • WAMP Server सही से Install और Running हो

  • PHP Enabled हो

  • Internet Connection


Step 1: PHP Folder ढूँढें (WAMP में)

डिफ़ॉल्ट लोकेशन होती है:


 
 
C:\wamp64\bin\php\phpX.X.X\

उदाहरण:


 
 
C:\wamp64\bin\php\php8.2.0\

Step 2: PEAR Installer डाउनलोड करें

  1. फ़ाइल डाउनलोड करें: go-pear.phar

  2. इसे PHP Folder में कॉपी करें:


 
 
C:\wamp64\bin\php\php8.2.0\go-pear.phar

Step 3: Command Prompt खोलें

  1. Start → cmd

  2. Run as Administrator पर क्लिक करें


Step 4: PHP Directory में जाएँ


 
 
cd C:\wamp64\bin\php\php8.2.0

Step 5: PEAR Install करें


 
 
php go-pear.phar

➡️ Install के दौरान कई विकल्प दिखेंगे
सभी Default Settings के लिए Enter दबाएँ

Install पूरा होने पर PEAR सफलतापूर्वक Install हो जाएगा।


Step 6: PHP को PATH में जोड़ें (बहुत जरूरी)

  1. Control Panel → System → Advanced system settings

  2. Environment Variables पर क्लिक करें

  3. Path को Edit करें

  4. यह Path Add करें:


 
 
C:\wamp64\bin\php\php8.2.0\
  1. OK → Apply


Step 7: WAMP Restart करें

  • WAMP Stop करें

  • फिर Start करें


Step 8: PEAR Install Verify करें

Command Prompt में टाइप करें:


 
 
pear version

✅ अगर PEAR Version दिखे तो Installation सफल है।


सामान्य Errors और समाधान

'pear' is not recognized

✔ PHP का Path सही से Add नहीं हुआ
✔ CMD दोबारा खोलें


❌ OpenSSL / mbstring Error

php.ini में ये Extensions Enable करें:


 
 
extension=openssl extension=mbstring

फिर WAMP Restart करें।


PEAR Package Install करने का उदाहरण


 
 
pear install Mail

संक्षेप में

✔ WAMP Install
✔ go-pear.phar डाउनलोड
✔ PHP से Run
✔ PATH Set
✔ Restart
✔ Verify

  • answered 2 months ago
  • Community  wiki

Your Answer

    Facebook Share        
       
  • publish 2 months ago
  • viewed 94 times
  • active 2 months ago

Best Rated Questions