New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Cannot Install/Compile on cPanel #1155

Closed
n4ndo opened this Issue Aug 25, 2013 · 18 comments

Comments

Projects
None yet
4 participants
@n4ndo

n4ndo commented Aug 25, 2013

Hi,

I'm trying to install Phalcon on cPanel but i have the next errors:

Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/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 ISO C89... 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... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/i                                                                                                                                                             nclude/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/ph                                                                                                                                                             p/ext/date/lib
checking for PHP extension directory... /usr/lib/php/extensions/no-debug-non-zts                                                                                                                                                             -20090626
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 framework... yes, shared
checking for ext/igbinary/igbinary.h... no
checking whether HAVE_BUNDLED_PCRE is declared... no
checking whether HAVE_JSON is declared... yes
checking for ext/json/php_json.h... yes
checking whether HAVE_PHP_SESSION is declared... yes
checking for ext/session/php_session.h... yes
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libr                                                                                                                                                             aries... 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 ./config.status
config.status: creating config.h
config.status: executing libtool commands
/bin/sh /root/cphalcon/build/64bits/libtool --mode=compile gcc  -I. -I/root/cpha                                                                                                                                                             lcon/build/64bits -DPHP_ATOM_INC -I/root/cphalcon/build/64bits/include -I/root/c                                                                                                                                                             phalcon/build/64bits/main -I/root/cphalcon/build/64bits -I/usr/include/php -I/us                                                                                                                                                             r/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/includ                                                                                                                                                             e/php/ext -I/usr/include/php/ext/date/lib  -DHAVE_CONFIG_H  -march=native -mtune                                                                                                                                                             =native -O2 -fno-delete-null-pointer-checks -finline-functions -fomit-frame-poin                                                                                                                                                             ter -fno-builtin-memcmp -fvisibility=hidden   -c /root/cphalcon/build/64bits/pha                                                                                                                                                             lcon.c -o phalcon.lo
libtool: compile:  gcc -I. -I/root/cphalcon/build/64bits -DPHP_ATOM_INC -I/root/                                                                                                                                                             cphalcon/build/64bits/include -I/root/cphalcon/build/64bits/main -I/root/cphalco                                                                                                                                                             n/build/64bits -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSR                                                                                                                                                             M -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib                                                                                                                                                              -DHAVE_CONFIG_H -march=native -mtune=native -O2 -fno-delete-null-pointer-checks                                                                                                                                                              -finline-functions -fomit-frame-pointer -fno-builtin-memcmp -fvisibility=hidden                                                                                                                                                              -c /root/cphalcon/build/64bits/phalcon.c  -fPIC -DPIC -o .libs/phalcon.o
/root/cphalcon/build/64bits/phalcon.c:175:36: error: ext/pdo/php_pdo_driver.h: No such file or directory
/root/cphalcon/build/64bits/phalcon.c: In function 'zim_Phalcon_Db_Result_Pdo_dataSeek':
/root/cphalcon/build/64bits/phalcon.c:32595: error: 'pdo_stmt_t' undeclared (first use in this function)
/root/cphalcon/build/64bits/phalcon.c:32595: error: (Each undeclared identifier is reported only once
/root/cphalcon/build/64bits/phalcon.c:32595: error: for each function it appears in.)
/root/cphalcon/build/64bits/phalcon.c:32595: error: 'stmt' undeclared (first use in this function)
/root/cphalcon/build/64bits/phalcon.c:32636: error: expected expression before ')' token
/root/cphalcon/build/64bits/phalcon.c:32646: error: 'PDO_FETCH_ORI_NEXT' undeclared (first use in this function)
make: *** [phalcon.lo] Error 1

Using:

  • Centos 6.4 x64
  • Apache 2.4.6
  • PHP 5.4.18
  • PDO
  • PDO MySQL
  • OpenSSL
  • MCrypt
  • Mbstring

Thanks.

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Aug 25, 2013

Collaborator

This is not a bug, your PHP installation is missing the pdo headers

Collaborator

ghost commented Aug 25, 2013

This is not a bug, your PHP installation is missing the pdo headers

@n4ndo

This comment has been minimized.

Show comment
Hide comment
@n4ndo

n4ndo Aug 26, 2013

I already have installed via EasyApache. :/

n4ndo commented Aug 26, 2013

I already have installed via EasyApache. :/

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Aug 26, 2013

Collaborator

Great

Collaborator

ghost commented Aug 26, 2013

Great

@phalcon phalcon closed this Aug 26, 2013

@n4ndo

This comment has been minimized.

Show comment
Hide comment
@n4ndo

n4ndo Aug 26, 2013

@phalcon you dont understand me, i already have installed via EasyApache the PDO and PDO MySQL modules, but still cannot install phalcon.

n4ndo commented Aug 26, 2013

@phalcon you dont understand me, i already have installed via EasyApache the PDO and PDO MySQL modules, but still cannot install phalcon.

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Aug 26, 2013

Collaborator

It seems there was a problem with the PDO headers installation:

/root/cphalcon/build/64bits/phalcon.c:175:36: error: ext/pdo/php_pdo_driver.h: No such file or directory

It can't find the headers in /usr/include/php, maybe they were installed in a different location?

Collaborator

ghost commented Aug 26, 2013

It seems there was a problem with the PDO headers installation:

/root/cphalcon/build/64bits/phalcon.c:175:36: error: ext/pdo/php_pdo_driver.h: No such file or directory

It can't find the headers in /usr/include/php, maybe they were installed in a different location?

@n4ndo

This comment has been minimized.

Show comment
Hide comment
@n4ndo

n4ndo Aug 26, 2013

after whereis php_pdo_driver.h this is what i find:

/home/cpeasyapache/src/php-5.4.18/ext/pdo/php_pdo_driver.h
/usr/local/cpanel/3rdparty/php/53/include/php/ext/pdo/php_pdo_driver.h
/usr/local/include/php/ext/pdo/php_pdo_driver.h

n4ndo commented Aug 26, 2013

after whereis php_pdo_driver.h this is what i find:

/home/cpeasyapache/src/php-5.4.18/ext/pdo/php_pdo_driver.h
/usr/local/cpanel/3rdparty/php/53/include/php/ext/pdo/php_pdo_driver.h
/usr/local/include/php/ext/pdo/php_pdo_driver.h
@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Aug 26, 2013

Collaborator

Yes, this means, you have two different versions of php installed on your machine:

Can you post the output of:

find /usr -name "*php-config*"
find /home -name "*php-config*"
Collaborator

ghost commented Aug 26, 2013

Yes, this means, you have two different versions of php installed on your machine:

Can you post the output of:

find /usr -name "*php-config*"
find /home -name "*php-config*"
@n4ndo

This comment has been minimized.

Show comment
Hide comment
@n4ndo

n4ndo Aug 26, 2013

find /usr -name "php-config"

/usr/bin/php-config
/usr/local/bin/php-config
/usr/local/cpanel/scripts/php_sandbox/php-config
/usr/local/cpanel/3rdparty/bin/php-config
/usr/local/cpanel/3rdparty/php/53/bin/php-config
/usr/local/cpanel/3rdparty/php/53/share/man/man1/php-config.1
/usr/local/man/man1/php-config.1
/usr/local/php/man/man1/php-config.1
/usr/man/man1/php-config.1

find /home -name "php-config"

/home/cpeasyapache/src/php-5.4.18/scripts/php-config
/home/cpeasyapache/src/php-5.4.18/scripts/man1/php-config.1.in
/home/cpeasyapache/src/php-5.4.18/scripts/man1/php-config.1
/home/cpeasyapache/src/php-5.4.18/scripts/php-config.in

n4ndo commented Aug 26, 2013

find /usr -name "php-config"

/usr/bin/php-config
/usr/local/bin/php-config
/usr/local/cpanel/scripts/php_sandbox/php-config
/usr/local/cpanel/3rdparty/bin/php-config
/usr/local/cpanel/3rdparty/php/53/bin/php-config
/usr/local/cpanel/3rdparty/php/53/share/man/man1/php-config.1
/usr/local/man/man1/php-config.1
/usr/local/php/man/man1/php-config.1
/usr/man/man1/php-config.1

find /home -name "php-config"

/home/cpeasyapache/src/php-5.4.18/scripts/php-config
/home/cpeasyapache/src/php-5.4.18/scripts/man1/php-config.1.in
/home/cpeasyapache/src/php-5.4.18/scripts/man1/php-config.1
/home/cpeasyapache/src/php-5.4.18/scripts/php-config.in
@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Aug 26, 2013

Collaborator

You have several php-config installed:

/usr/bin/php-config
/usr/local/bin/php-config
/usr/local/cpanel/scripts/php_sandbox/php-config
/usr/local/cpanel/3rdparty/bin/php-config
/usr/local/cpanel/3rdparty/php/53/bin/php-config
/home/cpeasyapache/src/php-5.4.18/scripts/php-config

The one that Phalcon is using is related to PHP 5.3:

Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
  1. What you can do is try to remove old versions of php that aren't in use
  2. Alias the php-config to the right one before installing
alias php-config=/home/cpeasyapache/src/php-5.4.18/scripts/php-config
Collaborator

ghost commented Aug 26, 2013

You have several php-config installed:

/usr/bin/php-config
/usr/local/bin/php-config
/usr/local/cpanel/scripts/php_sandbox/php-config
/usr/local/cpanel/3rdparty/bin/php-config
/usr/local/cpanel/3rdparty/php/53/bin/php-config
/home/cpeasyapache/src/php-5.4.18/scripts/php-config

The one that Phalcon is using is related to PHP 5.3:

Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
  1. What you can do is try to remove old versions of php that aren't in use
  2. Alias the php-config to the right one before installing
alias php-config=/home/cpeasyapache/src/php-5.4.18/scripts/php-config
@n4ndo

This comment has been minimized.

Show comment
Hide comment
@n4ndo

n4ndo Aug 26, 2013

Ok, i go to try to fix it, but please note that this is a clean cPanel + OS installation with any modifications, so this may happen to someone else.

n4ndo commented Aug 26, 2013

Ok, i go to try to fix it, but please note that this is a clean cPanel + OS installation with any modifications, so this may happen to someone else.

@n4ndo

This comment has been minimized.

Show comment
Hide comment
@n4ndo

n4ndo Aug 26, 2013

@phalcon now i have the next result:

Configuring for:
PHP Api Version:         20100412
Zend Module Api No:      20100525
Zend Extension Api No:   220100525
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/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 ISO C89... 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... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20100525
checking for PHP installed headers prefix... /usr/local/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 framework... yes, shared
checking for ext/igbinary/igbinary.h... no
checking whether HAVE_BUNDLED_PCRE is declared... no
checking whether HAVE_JSON is declared... yes
checking for ext/json/php_json.h... yes
checking whether HAVE_PHP_SESSION is declared... yes
checking for ext/session/php_session.h... yes
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) 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 ./config.status
config.status: creating config.h
config.status: executing libtool commands
/bin/sh /root/cphalcon/build/64bits/libtool --mode=compile gcc  -I. -I/root/cphalcon/build/64bits -DPHP_ATOM_INC -I/root/cphalcon/build/64bits/include -I/root/cphalcon/build/64bits/main -I/root/cphalcon/build/64bits -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -march=native -mtune=native -O2 -fno-delete-null-pointer-checks -finline-functions -fomit-frame-pointer -fno-builtin-memcmp -fvisibility=hidden   -c /root/cphalcon/build/64bits/phalcon.c -o phalcon.lo
/root/cphalcon/build/64bits/libtool: line 827: X--mode=compile: command not found
/root/cphalcon/build/64bits/libtool: line 994: *** Warning: inferring the mode of operation is deprecated.: command not found
/root/cphalcon/build/64bits/libtool: line 995: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
/root/cphalcon/build/64bits/libtool: line 1138: Xgcc: command not found
/root/cphalcon/build/64bits/libtool: line 1138: X-I.: command not found
/root/cphalcon/build/64bits/libtool: line 1138: X-I/root/cphalcon/build/64bits: No such file or directory
/root/cphalcon/build/64bits/libtool: line 1138: X-DPHP_ATOM_INC: command not found
/root/cphalcon/build/64bits/libtool: line 1138: X-I/root/cphalcon/build/64bits/include: No such file or directory
/root/cphalcon/build/64bits/libtool: line 1138: X-I/root/cphalcon/build/64bits/main: No such file or directory
/root/cphalcon/build/64bits/libtool: line 1138: X-I/root/cphalcon/build/64bits: No such file or directory
/root/cphalcon/build/64bits/libtool: line 1138: X-I/usr/local/include/php: No such file or directory
/root/cphalcon/build/64bits/libtool: line 1138: X-I/usr/local/include/php/main: No such file or directory
/root/cphalcon/build/64bits/libtool: line 1138: X-I/usr/local/include/php/TSRM: No such file or directory
/root/cphalcon/build/64bits/libtool: line 1138: X-I/usr/local/include/php/Zend: No such file or directory
/root/cphalcon/build/64bits/libtool: line 1138: X-I/usr/local/include/php/ext: No such file or directory
/root/cphalcon/build/64bits/libtool: line 1138: X-I/usr/local/include/php/ext/date/lib: No such file or directory
/root/cphalcon/build/64bits/libtool: line 1138: X-DHAVE_CONFIG_H: command not found
/root/cphalcon/build/64bits/libtool: line 1138: X-march=native: command not found
/root/cphalcon/build/64bits/libtool: line 1138: X-mtune=native: command not found
/root/cphalcon/build/64bits/libtool: line 1138: X-O2: command not found
/root/cphalcon/build/64bits/libtool: line 1138: X-fno-delete-null-pointer-checks: command not found
/root/cphalcon/build/64bits/libtool: line 1138: X-finline-functions: command not found
/root/cphalcon/build/64bits/libtool: line 1138: X-fomit-frame-pointer: command not found
/root/cphalcon/build/64bits/libtool: line 1138: X-fno-builtin-memcmp: command not found
/root/cphalcon/build/64bits/libtool: line 1138: X-fvisibility=hidden: command not found
/root/cphalcon/build/64bits/libtool: line 1138: X-c: command not found
/root/cphalcon/build/64bits/libtool: line 1191: Xphalcon.lo: command not found
/root/cphalcon/build/64bits/libtool: line 1196: libtool: compile: cannot determine name of library object from `': command not found

n4ndo commented Aug 26, 2013

@phalcon now i have the next result:

Configuring for:
PHP Api Version:         20100412
Zend Module Api No:      20100525
Zend Extension Api No:   220100525
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/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 ISO C89... 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... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20100525
checking for PHP installed headers prefix... /usr/local/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 framework... yes, shared
checking for ext/igbinary/igbinary.h... no
checking whether HAVE_BUNDLED_PCRE is declared... no
checking whether HAVE_JSON is declared... yes
checking for ext/json/php_json.h... yes
checking whether HAVE_PHP_SESSION is declared... yes
checking for ext/session/php_session.h... yes
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) 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 ./config.status
config.status: creating config.h
config.status: executing libtool commands
/bin/sh /root/cphalcon/build/64bits/libtool --mode=compile gcc  -I. -I/root/cphalcon/build/64bits -DPHP_ATOM_INC -I/root/cphalcon/build/64bits/include -I/root/cphalcon/build/64bits/main -I/root/cphalcon/build/64bits -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -march=native -mtune=native -O2 -fno-delete-null-pointer-checks -finline-functions -fomit-frame-pointer -fno-builtin-memcmp -fvisibility=hidden   -c /root/cphalcon/build/64bits/phalcon.c -o phalcon.lo
/root/cphalcon/build/64bits/libtool: line 827: X--mode=compile: command not found
/root/cphalcon/build/64bits/libtool: line 994: *** Warning: inferring the mode of operation is deprecated.: command not found
/root/cphalcon/build/64bits/libtool: line 995: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
/root/cphalcon/build/64bits/libtool: line 1138: Xgcc: command not found
/root/cphalcon/build/64bits/libtool: line 1138: X-I.: command not found
/root/cphalcon/build/64bits/libtool: line 1138: X-I/root/cphalcon/build/64bits: No such file or directory
/root/cphalcon/build/64bits/libtool: line 1138: X-DPHP_ATOM_INC: command not found
/root/cphalcon/build/64bits/libtool: line 1138: X-I/root/cphalcon/build/64bits/include: No such file or directory
/root/cphalcon/build/64bits/libtool: line 1138: X-I/root/cphalcon/build/64bits/main: No such file or directory
/root/cphalcon/build/64bits/libtool: line 1138: X-I/root/cphalcon/build/64bits: No such file or directory
/root/cphalcon/build/64bits/libtool: line 1138: X-I/usr/local/include/php: No such file or directory
/root/cphalcon/build/64bits/libtool: line 1138: X-I/usr/local/include/php/main: No such file or directory
/root/cphalcon/build/64bits/libtool: line 1138: X-I/usr/local/include/php/TSRM: No such file or directory
/root/cphalcon/build/64bits/libtool: line 1138: X-I/usr/local/include/php/Zend: No such file or directory
/root/cphalcon/build/64bits/libtool: line 1138: X-I/usr/local/include/php/ext: No such file or directory
/root/cphalcon/build/64bits/libtool: line 1138: X-I/usr/local/include/php/ext/date/lib: No such file or directory
/root/cphalcon/build/64bits/libtool: line 1138: X-DHAVE_CONFIG_H: command not found
/root/cphalcon/build/64bits/libtool: line 1138: X-march=native: command not found
/root/cphalcon/build/64bits/libtool: line 1138: X-mtune=native: command not found
/root/cphalcon/build/64bits/libtool: line 1138: X-O2: command not found
/root/cphalcon/build/64bits/libtool: line 1138: X-fno-delete-null-pointer-checks: command not found
/root/cphalcon/build/64bits/libtool: line 1138: X-finline-functions: command not found
/root/cphalcon/build/64bits/libtool: line 1138: X-fomit-frame-pointer: command not found
/root/cphalcon/build/64bits/libtool: line 1138: X-fno-builtin-memcmp: command not found
/root/cphalcon/build/64bits/libtool: line 1138: X-fvisibility=hidden: command not found
/root/cphalcon/build/64bits/libtool: line 1138: X-c: command not found
/root/cphalcon/build/64bits/libtool: line 1191: Xphalcon.lo: command not found
/root/cphalcon/build/64bits/libtool: line 1196: libtool: compile: cannot determine name of library object from `': command not found
@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Aug 26, 2013

Collaborator

Try the following:

cd /root/cphalcon/build/64bits/
sudo make clean
phpize --clean
phpize
make
sudo make install
Collaborator

ghost commented Aug 26, 2013

Try the following:

cd /root/cphalcon/build/64bits/
sudo make clean
phpize --clean
phpize
make
sudo make install
@n4ndo

This comment has been minimized.

Show comment
Hide comment
@n4ndo

n4ndo Aug 26, 2013

make: *** No targets specified and no makefile found.  Stop.

n4ndo commented Aug 26, 2013

make: *** No targets specified and no makefile found.  Stop.
@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Aug 26, 2013

Collaborator

I missed a step:

cd /root/cphalcon/build/64bits/
sudo make clean
phpize --clean
phpize
./configure --enable-phalcon
make
sudo make install
Collaborator

ghost commented Aug 26, 2013

I missed a step:

cd /root/cphalcon/build/64bits/
sudo make clean
phpize --clean
phpize
./configure --enable-phalcon
make
sudo make install
@n4ndo

This comment has been minimized.

Show comment
Hide comment
@n4ndo

n4ndo Aug 26, 2013

Ok @phalcon .. Finally... thanks! Hope this may help in future if somebody have a problem like this.

My site is runing perfect with almost 80k accounts! ;) i was using the 1.0 version until now!

n4ndo commented Aug 26, 2013

Ok @phalcon .. Finally... thanks! Hope this may help in future if somebody have a problem like this.

My site is runing perfect with almost 80k accounts! ;) i was using the 1.0 version until now!

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Aug 26, 2013

Collaborator

good to hear that :)

Collaborator

ghost commented Aug 26, 2013

good to hear that :)

@CheckMater

This comment has been minimized.

Show comment
Hide comment
@CheckMater

CheckMater Apr 10, 2014

I also had a very similar problem with my new VPS that I got from goDaddy, I solved it recompiling Apache and PHP using the EasyApache and enabling the PDO extension + the MySQL PDO (Instructions here: https://forums.cpanel.net/f5/enable-pdo-78853.html#post365177)

I also had to edit my INSTALL file adding the correct paths to the phpize and the php-config files which you can find using the command: whereis phpize, the php-config file is in the same dir

So I finally added like this:

#Clean current compilation
if [ -f Makefile ]; then
    make clean
    path/to/the/phpize --clean
fi

#Perform the compilation
path/to/the/phpize && ./configure --enable-phalcon --with-php-config=path/to/php-config && make && make install && echo -e "\nThanks for compiling Phalcon!\nBuild succeed: Please restart your web server to complete the installation"

Don't forget to replace the paths!

Greetings!

CheckMater commented Apr 10, 2014

I also had a very similar problem with my new VPS that I got from goDaddy, I solved it recompiling Apache and PHP using the EasyApache and enabling the PDO extension + the MySQL PDO (Instructions here: https://forums.cpanel.net/f5/enable-pdo-78853.html#post365177)

I also had to edit my INSTALL file adding the correct paths to the phpize and the php-config files which you can find using the command: whereis phpize, the php-config file is in the same dir

So I finally added like this:

#Clean current compilation
if [ -f Makefile ]; then
    make clean
    path/to/the/phpize --clean
fi

#Perform the compilation
path/to/the/phpize && ./configure --enable-phalcon --with-php-config=path/to/php-config && make && make install && echo -e "\nThanks for compiling Phalcon!\nBuild succeed: Please restart your web server to complete the installation"

Don't forget to replace the paths!

Greetings!

@demonCount

This comment has been minimized.

Show comment
Hide comment
@demonCount

demonCount Jan 15, 2015

I have a similar problem, I'm sure that only one versions of php installed.
the phpinfo() about the pdo as fallows:
PDO
PDO support enabled
PDO drivers mysql, sqlite

pdo_mysql

PDO Driver for MySQL enabled
Client API version 5.1.50

Directive Local Value Master Value
pdo_mysql.default_socket /tmp/mysql.sock /tmp/mysql.sock

pdo_sqlite
PDO Driver for SQLite 3.x enabled
SQLite Library 3.3.6

who can help me ?

demonCount commented Jan 15, 2015

I have a similar problem, I'm sure that only one versions of php installed.
the phpinfo() about the pdo as fallows:
PDO
PDO support enabled
PDO drivers mysql, sqlite

pdo_mysql

PDO Driver for MySQL enabled
Client API version 5.1.50

Directive Local Value Master Value
pdo_mysql.default_socket /tmp/mysql.sock /tmp/mysql.sock

pdo_sqlite
PDO Driver for SQLite 3.x enabled
SQLite Library 3.3.6

who can help me ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment