No releases available for package “pecl.php.net/intl”

后端 未结 2 648
抹茶落季
抹茶落季 2021-01-24 06:39

I\'m trying to install intl for php. When I\'m running sudo pecl install intl it gives me an error No releases available for package \"pecl.php.net/intl\"

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-24 06:48

    To get it off the unanswered list:


    Well, problem solved!

    If you can't install intl by pecl you can just download from pecl.php.net the package which you need (in my case it was intl-3.0.0.tgz).

    Then install it by pear like that:

    $ sudo pear install intl-3.0.0.tgz
    

    After you have to add extension="intl.so" inside php.ini and then restart apache.

    If you want to check whether intl has installed or not you can use this command:

    $ php -m | grep intl
    

    If result is intl then you did it! =)

提交回复
热议问题