We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Install on Mac OS (MacPorts) stuck at Building pkgconfig

Hello

I'm trying to install Phalcon on my Mac OS 10.9. I executed sudo port install php54-phalcon and the process is apparently stucked at the "Building pkgconfig" step (for 4 hours now...) I am not used to compiling programs (with or without MacPorts) but it looks like something is not really okay. However there's no error message in the terminal, so I don't know how I could identify what. Can anybody think of something that could help me?

Just in case it could help:

...
The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
iMacMarc:~ marc$ php -v
PHP 5.4.24 (cli) (built: Jan 19 2014 21:32:15) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
iMacMarc:~ marc$ sudo port install php54-phalcon
Password:
--->  Computing dependencies for php54-phalcon
--->  Dependencies to be installed: php54
--->  Fetching archive for php54
--->  Attempting to fetch php54-5.4.27_0+libedit.darwin_13.x86_64.tbz2 from https://mse.uk.packages.macports.org/sites/packages.macports.org/php54
--->  Attempting to fetch php54-5.4.27_0+libedit.darwin_13.x86_64.tbz2 from https://lil.fr.packages.macports.org/php54
--->  Attempting to fetch php54-5.4.27_0+libedit.darwin_13.x86_64.tbz2.rmd160 from https://lil.fr.packages.macports.org/php54
--->  Installing php54 @5.4.27_0+libedit
--->  Activating php54 @5.4.27_0+libedit

To customize php54, copy /opt/local/etc/php54/php.ini-development (if this is a
development server) or /opt/local/etc/php54/php.ini-production (if this is a
production server) to /opt/local/etc/php54/php.ini and then make changes.

--->  Cleaning php54
--->  Fetching archive for php54-phalcon
--->  Attempting to fetch php54-phalcon-1.2.6_0.darwin_13.x86_64.tbz2 from https://mse.uk.packages.macports.org/sites/packages.macports.org/php54-phalcon
--->  Attempting to fetch php54-phalcon-1.2.6_0.darwin_13.x86_64.tbz2.rmd160 from https://mse.uk.packages.macports.org/sites/packages.macports.org/php54-phalcon
--->  Installing php54-phalcon @1.2.6_0
--->  Activating php54-phalcon @1.2.6_0
--->  Cleaning php54-phalcon
--->  Updating database of binaries: 100.0%
--->  Scanning binaries for linking errors: 100.0%
--->  Found 2 broken file(s), matching files to ports
--->  Found 1 broken port(s), determining rebuild order
--->  Rebuilding in order
     php54 @5.4.27 +libedit
--->  Computing dependencies for php54
--->  Cleaning php54
--->  Scanning binaries for linking errors: 100.0%
--->  Found 2 broken file(s), matching files to ports
--->  Found 1 broken port(s), determining rebuild order
--->  Rebuilding in order
     php54 @5.4.27 +libedit
--->  Computing dependencies for php54
--->  Dependencies to be installed: pkgconfig
--->  Fetching distfiles for pkgconfig
--->  Attempting to fetch pkg-config-0.28.tar.gz from https://lil.fr.distfiles.macports.org/pkgconfig
--->  Verifying checksums for pkgconfig
--->  Extracting pkgconfig
--->  Applying patches to pkgconfig
--->  Configuring pkgconfig
--->  Building pkgconfig


31.3k

Hi ! I'm on mac and I don't use port to install phalcon, I had some trouble when I tried before. When I go with the hand install it goes well and it's a strait foward process. I used to have a problem with PCRE. To solve the problem, just copy the pcre.h from /opt/local/include/pcre.h to the directory specify in the error message.

Good luck !