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

can't install Phalcon on Centos 5

Hi there, I want to install phalcon on centos 5.x 32bit. I follow Instructions on installation page and run sudo ./install, but my installation stop at this step and I wait for about 15 minutes but not happened!


[[email protected] build]# sudo ./install
Configuring for:
PHP Api Version:         20131106
Zend Module Api No:      20131226
Zend Extension Api No:   220131226
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for icc... no
checking for suncc... no
checking whether gcc and cc understand -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
checking target system type... i686-redhat-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib/php/modules
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable phalcon... yes, shared
checking whether HAVE_BUNDLED_PCRE is declared... yes
checking for ext/pcre/php_pcre.h... yes
checking whether HAVE_JSON is declared... no
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
appending configuration tag "F77" to libtool
configure: creating ./config.status
config.status: creating config.h
/bin/sh /root/tmp/cphalcon/build/32bits/libtool --mode=compile gcc  -I. -I/root/tmp/cphalcon/build/32bits -DPHP_ATOM_INC -I/root/tmp/cphalcon/build/32bits/include -I/root/tmp/cphalcon/build/32bits/main -I/root/tmp/cphalcon/build/32bits -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib  -DPHALCON_RELEASE -DHAVE_CONFIG_H  -O2 -fomit-frame-pointer -fvisibility=hidden   -c /root/tmp/cphalcon/build/32bits/phalcon.zep.c -o phalcon.lo
mkdir .libs
 gcc -I. -I/root/tmp/cphalcon/build/32bits -DPHP_ATOM_INC -I/root/tmp/cphalcon/build/32bits/include -I/root/tmp/cphalcon/build/32bits/main -I/root/tmp/cphalcon/build/32bits -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DPHALCON_RELEASE -DHAVE_CONFIG_H -O2 -fomit-frame-pointer -fvisibility=hidden -c /root/tmp/cphalcon/build/32bits/phalcon.zep.c  -fPIC -DPIC -o .libs/phalcon.o
In file included from /root/tmp/cphalcon/build/32bits/phalcon.zep.c:175:
/root/tmp/cphalcon/build/32bits/phalcon.zep.h:18722:7: warning: no newline at end of file

Can you help me about this problem? Thanks



85.5k
edited Sep '15

you use native native php version ?

if you are using native php version ( or if you dont know what I am talking about )

go to :

  $ phalcon/build/64bits/
  $ phpize --clean
  $ make clean
  $ phpize
  $ ./configure
  $ make
  $ make install

going for a lunch. brb 1 hours



3.1k
Accepted
answer
edited Sep '15

I'm install php-fpm version 5.6.13. OS : Centos 5.x 32bit

Your solution not work. I search net again and find following method :

cd cphalcon/ext
phpize
./configure
make 
make install

I test it, and work!

Thanks for your reply.