`
hcw1314520
  • 浏览: 7415 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
最近访客 更多访客>>
社区版块
存档分类
最新评论

Getting and installing the PEAR package manager

阅读更多
个人技术博客:http://www.cooli.cc/

Windows
After you have downloaded and installed PHP, you have to manually execute the batch file located in e.g. c:\php\go-pear.bat. The setup will ask you some questions and afterwards the PEAR Package Manager will be installed in the path, which you have specified during installation.

Finally you have to add that installation path to your PATH environment. Either do this manually (Start > Control Panel > System > Environment) or run (double-click) the newly generated PEAR_ENV.reg that's now found in the PHP source directory.

After that you can access the PEAR Package Manager by running the command pear in a Windows Command Prompt.

To update your PEAR installation, request http://pear.php.net/go-pear.phar in your browser and save the output to a local file go-pear.phar. You can then run

     
php go-pear.phar

     
     in a Windows Command Prompt to start the update process.

After changing php.ini , you need to restart your web server.
Now check that PEAR works.

Unix/Linux/BSD
When using PHP, the PEAR Package Manager is already installed unless one has used the ./configure option --without-pear.

If one uses a version of PHP that is supplied by Unix/Linux/BSD distributors it may be necessary to manually install PEAR. Users should consult the documentation for the respective distribution in this case.

If you want to re-install the Package Manager, you can use the following provisional way:

     
$ wget http://pear.php.net/go-pear.phar
$ php go-pear.phar

     
    
Some Linux distributions (e.g. Redhat) seem to be using links instead of lynx as the name for their command line browser. If this is the case for you, you need to change the above line correspondingly.
Now check that PEAR works.

Mac OS X
On Mac OS 10.4 and earlier, the PEAR Package Manager is already installed in /usr/bin/pear.

If you are using Mac OS 10.5 (Leopard), would like to install a new copy, or re-install the PEAR Package Manager use the following command:

     
$ wget http://pear.php.net/go-pear.phar
$ php -d detect_unicode=0 go-pear.phar

     
    
For a system-wide installation, you will need to execute the go-pear script with increased permissions. This is only recommended for advanced users.

      
$ wget http://pear.php.net/go-pear.phar
$ sudo php -d detect_unicode=0 go-pear.phar

      
     
Now check that PEAR works.

PEAR in hosting environments
If you are running your site at a web hosting provider with no direct access to the server (via local logins, Telnet or SSH), you can use the PEAR Installer using the Web Frontend or (S)FTP.

Go to go-pear and save as go-pear.php. Copy go-pear.php to your server and open the corresponding URL in your browser, for example http://example.com/pear/go-pear.php.

Do not forget to protect the pear directory if you did not do already before the installation: Make it unreadable and not executable from external (i.e. put it outside public_html).
Now check that PEAR works.

src:http://pear.php.net/manual/en/installation.getting.php
分享到:
评论

相关推荐

    Getting Started with Grunt: The JavaScript Task Runner

    You will learn how to install Node.js, the Node.js package manager (npm), and Grunt. Then, you will understand how to set up and configure a personalized Grunt environment. Next, you will look at the...

    驱动 Intel

    3. Contents of the Distribution Package 4. List of Available Command Line Flag Options 5. Contents of the Extracted Files 6. Installing the Software in Interactive Mode 7. Installing the Software in ...

    R Deep Learning Essentials [2016]

    After installing the H2O package, you will learn about prediction algorithms. Moving ahead, concepts such as overfitting data, anomalous data, and deep prediction models are explained. Finally, the ...

    Installing the Avaya S8800 Server for Avaya Aura™ Communication Manager

    Installing Avaya S8800 Server

    Exam Ref 70-410: Installing and Configuring Windows Server 2012 R2

    Designed for experienced IT professionals ready to advance their status, Exam Ref focuses on the critical thinking and decision making acumen needed for success at the MCSA level. Focus on the ...

    Getting MEAN with Mongo, Express, Angular, and Node(Manning,2015)

    Getting MEAN with Mongo, Express, Angular, and Node teaches readers how to develop web applications end-to-end using the MEAN stack. You'll systematically discover each technology in the MEAN stack as...

    R语音 R Deep Learning Essentials

    After installing the H2O package, you will learn about prediction algorithms. Moving ahead, concepts such as overfitting data, anomalous data, and deep prediction models are explained. Finally, the ...

    Microlog Cabinet Manager 2003

    The Cabinet Manager allows you to create self-extracting, self-installing packages for the Internet. It can also be used to check the authenticity and integrity of the files using Authenticode. It ...

    R.Deep.Learning.Essentials.1785280589

    After installing the H2O package, you will learn about prediction algorithms. Moving ahead, concepts such as overfitting data, anomalous data, and deep prediction models are explained. Finally, the ...

    Elasticsearch for Hadoop

    Getting the examples and building the job JAR file Importing the test file to HDFS Running our first job Exploring data in Head and Marvel Viewing data in Head Using the Marvel dashboard ...

    Ubuntu The Complete Reference

    - **Configuring the Display Manager**: Configuration of the display manager (GDM), including user interface customization and security settings. #### Part III - Desktops **Chapter 8 - GNOME** - **...

    Getting-Started-with-Julia-Programming

    Chapter 1, Installing the Julia Platform, guides you with the installation of all the necessary components required for a Julia environment. It teaches you how to work with Julia’s console (the REPL)...

    Installing the Zend Debugger PDF

    标题中的“Installing the Zend Debugger PDF”实际上指的是一个关于如何安装Zend Debugger的PDF文档的安装指南。Zend Debugger是一款功能强大的PHP扩展,它主要用于在开发过程中进行代码调试,通过将服务器端的调试...

    delphi条码控件带demo

    Before installing the components package, please close all Delphi and C++ Builder IDEs. Note, for each IDE, if it's a clean installation, please run it at least once before installing the components ...

    OpenVMS System Manager's Manual_vol 1

    The OpenVMS System Manager’s Manual, Volume 1: Essentials consists of the ...• Chapter 13, Managing the Queue Manager and Queue Database • Chapter 14, Setting Up and Maintaining Queues

    a project model for the FreeBSD Project.7z

    The vision is “To produce the best UNIX-like operating system package possible, with due respect to the original software tools ideology as well as usability, performance and stability.” The ...

    两天成为Oracle_DBA(PDF版)

    Chapter 2, "Installing Oracle and Building the Database" This chapter discusses how to install the Oracle software and database. It also describes how to configure additional databases, and how to ...

Global site tag (gtag.js) - Google Analytics