Couldn't find any package by regex 'php7.0-phalcon'

I'm using Ubuntu 16.04, install php 7.14

sudo apt install -y php

When I install Phalcon 3:

curl -s https://packagecloud.io/install/repositories/phalcon/stable/script.deb.sh | sudo bas sudo apt-get update sudo apt-get install php7.0-phalcon

Terminal show:

E: Unable to locate package php7.0-phalcon E: Couldn't find any package by glob 'php7.0-phalcon' E: Couldn't find any package by regex 'php7.0-phalcon'

Let's me know solution to install Phalcon 3 on Ubuntu 16.04. Thx



30.7k
edited Dec '16

hi,

sudo apt-get install build-essential php7.0-dev libpcre3-dev

git clone git://github.com/phalcon/cphalcon.git

cd cphalcon/build

sudo ./install

sudo nano /etc/php/7.0/apache2/conf.d/30-phalcon.ini

    put in it:  extension=phalcon.so

sudo nano /etc/php/7.0/cli/conf.d/30-phalcon.ini

    put in it:  extension=phalcon.so

sudo service apache2 restart

you're done

PS: made an edit because of the wrong path for 30-phalcon.ini

Same here, clean Ubuntu 16.04 LTS servers install:

$ curl -s https://packagecloud.io/install/repositories/phalcon/stable/script.deb.sh | sudo bash
Detected operating system as Ubuntu/xenial.
Checking for curl...
Detected curl...
Running apt-get update... done.
Installing apt-transport-https... done.
Installing /etc/apt/sources.list.d/phalcon_stable.list...done.
Importing packagecloud gpg key... done.
Running apt-get update... done.

The repository is setup! You can now install packages.

The repository seems to be added correctly:

$ cat /etc/apt/sources.list.d/phalcon_stable.list
# this file was generated by packagecloud.io for
# the repository at https://packagecloud.io/phalcon/stable

deb https://packagecloud.io/phalcon/stable/ubuntu/ xenial main
deb-src https://packagecloud.io/phalcon/stable/ubuntu/ xenial main

But no phalcon packages can be found:

$ apt-cache search phalcon
$
edited Dec '16
$ apt-get install -qq php7.0-cli php7.0-common
$ php -v
PHP 7.0.8-0ubuntu0.16.04.3 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.8-0ubuntu0.16.04.3, Copyright (c) 1999-2016, by Zend Technologies
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.1 LTS
Release:    16.04
Codename:   xenial
$ curl -s https://packagecloud.io/install/repositories/phalcon/stable/script.deb.sh | bash
Detected operating system as Ubuntu/xenial.
Checking for curl...
Detected curl...
Running apt-get update... done.
Installing apt-transport-https... done.
Installing /etc/apt/sources.list.d/phalcon_stable.list...done.
Importing packagecloud gpg key... done.
Running apt-get update... done.

The repository is setup! You can now install packages.
$ apt-cache search php7.0-phalcon
php7.0-phalcon - High performance PHP framework
php7.0-phalcon-dbg - Debug symbols for php7.0-phalcon
$ apt-cache policy php7.0-phalcon
php7.0-phalcon:
  Installed: (none)
  Candidate: 3.0.2-15
  Version table:
     3.0.2-15 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.2-14 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.1-14 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.1-13 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.1-12 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.1-11 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.1-10 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.1-9 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.1-8 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.1-7 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.1-6 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.1-5 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.1-4 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.1-3 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.1-2 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.1-1 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.0-29 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.0-28 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.0-27 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.0-26 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.0-25 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.0-24 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.0-23 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.0-22 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.0-21 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.0-20 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.0-19 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.0-18 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.0-17 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.0-16 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.0-15 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.0-14 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.0-12 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.0-11 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.0-10 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.0-9 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.0-8 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.0-7 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.0-6 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.0-5 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.0-3 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.0-1 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages
     3.0.0-0 500
        500 https://packagecloud.io/phalcon/stable/ubuntu xenial/main amd64 Packages