yum install php-pear* on centos

后端 未结 5 1086
半阙折子戏
半阙折子戏 2020-12-19 08:09

I\'m trying to install pear on my centos.

I\'ve used \"*yum install php-pear**\" to install pear and it seemed to install with success. No errors. I restart my serve

相关标签:
5条回答
  • 2020-12-19 08:30

    Resolved, I have installed the given packages and restarted the server.

    Try this yum install php-pear php-gd php-pear-DB -y service httpd restart.

    it works

    0 讨论(0)
  • 2020-12-19 08:32

    The output of phpinfo() is correct; the binary was built without PEAR. Fortunately what it says there doesn't matter. Look into the sections below to see what is currently available.

    0 讨论(0)
  • 2020-12-19 08:33

    You might still need to configure PEAR, did you check the PEAR site?

    0 讨论(0)
  • 2020-12-19 08:35

    Try something like

    $ pear list
    

    and

    $ pear info PEAR
    

    - now if you get a listing of installed packages in the first case and information on what version of pear is installed in the second you're ready to use it.

    0 讨论(0)
  • 2020-12-19 08:41

    yum does not rebuild anything. It downloads the necessary software modules and installs it on your machine. Your stock centos php does not have pear pre-compiled, but it will still be able to use pear once you've downloaded your modules.

    If you cannot run pear, make sure you have the executable included in your path, or use "locate" to find it.

    0 讨论(0)
提交回复
热议问题