Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 25/03/2015, à 04:18

blackofserverdz

bcompiler marche pas ubunto 12.04 server

Last login: Wed Mar 25 02:51:40 2015 from 192.168.1.5
root@pclinux:~# pecl install bcompiler
downloading bcompiler-1.0.2.tgz ...
Starting to download bcompiler-1.0.2.tgz (57,347 bytes)
..............done: 57,347 bytes
could not extract the package.xml file from "/build/buildd/php5-5.5.9+dfsg/pear-build-download/bcompiler-1.0.2.tgz"
Download of "pecl/bcompiler" succeeded, but it is not a valid package archive
Error: cannot download "pecl/bcompiler"
Download failed
install failed
root@pclinux:~#

Hors ligne

#2 Le 25/03/2015, à 06:08

blackofserverdz

Re : bcompiler marche pas ubunto 12.04 server

jais suiver ca mais jais des eroor


root@linux# wget http://pecl.php.net/get/bcompiler-1.0.2.tgz

root@linux# tar -xvf bcompiler-1.0.2.tgz

root@linux# cd bcompiler-1.0.2

root@linux# phpize

root@linux# ./configure

root@linux# make

root@linux# make install

root@linux# make test
and finally you have to create an ini file , bcompiler.ini inside

/etc/php5/apache2/conf.d
and add this line

extension=bcompiler.so
and finally restart your webserver

will work fine

shareimprove this answer




root@pclinux:~/bcompiler-1.0.2# phpize
Configuring for:
PHP Api Version:         20121113
Zend Module Api No:      20121212
Zend Extension Api No:   220121212
root@pclinux:~/bcompiler-1.0.2# ./configure
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 cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -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-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
checking for PHP extension directory... /usr/lib/php5/20121212+lfs
checking for PHP installed headers prefix... /usr/include/php5
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 0.13.5 (ok)
checking for gawk... gawk
checking whether to enable bcompiler support... yes, shared
checking whether to include debug code in bcompiler (default: no)... no
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /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 how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
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 dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... (cached) gawk
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
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 cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc 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 ./config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing libtool commands
root@pclinux:~/bcompiler-1.0.2# libtool
libtool: you must specify a MODE
libtool: Try `libtool --help' for more information.
root@pclinux:~/bcompiler-1.0.2# make
/bin/bash /root/bcompiler-1.0.2/libtool --mode=compile cc  -I. -I/root/bcompiler-1.0.2 -DPHP_ATOM_INC -I/root/bcompiler-1.0.2/include -I/root/bcompiler-1.0.2/main -I/root/bcompiler-1.0.2 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -DHAVE_CONFIG_H  -g -O2   -c /root/bcompiler-1.0.2/php_bcompiler.c -o php_bcompiler.lo
libtool: compile:  cc -I. -I/root/bcompiler-1.0.2 -DPHP_ATOM_INC -I/root/bcompiler-1.0.2/include -I/root/bcompiler-1.0.2/main -I/root/bcompiler-1.0.2 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -g -O2 -c /root/bcompiler-1.0.2/php_bcompiler.c  -fPIC -DPIC -o .libs/php_bcompiler.o
/root/bcompiler-1.0.2/php_bcompiler.c: In function '_bcompiler_write_functions_from_file':
/root/bcompiler-1.0.2/php_bcompiler.c:468:6: warning: passing argument 1 of 'apc_serialize_zstring' discards 'const' qualifier from pointer target type [enabled by default]
      apc_serialize_zstring(pos->arKey, pos->nKeyLength TSRMLS_CC);
      ^
In file included from /root/bcompiler-1.0.2/php_bcompiler.c:22:0:
/root/bcompiler-1.0.2/php_bcompiler.h:298:6: note: expected 'char *' but argument is of type 'const char *'
void apc_serialize_zstring(char* string, int len TSRMLS_DC);
      ^
/root/bcompiler-1.0.2/php_bcompiler.c: In function 'zif_bcompiler_write_file':
/root/bcompiler-1.0.2/php_bcompiler.c:574:10: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
          ^
In file included from /usr/include/string.h:635:0,
                 from /usr/include/php5/main/php_config.h:2434,
                 from /usr/include/php5/main/php.h:33,
                 from /root/bcompiler-1.0.2/php_bcompiler.h:31,
                 from /root/bcompiler-1.0.2/php_bcompiler.c:22:
/root/bcompiler-1.0.2/php_bcompiler.c:574:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:574:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:574:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:574:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:574:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:574:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:574:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:574:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:574:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:574:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:574:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:574:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:574:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:574:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:574:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:574:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:574:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:574:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:574:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:574:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:581:5: warning: passing argument 4 of 'apc_serialize_zend_class_entry' discards 'const' qualifier from pointer target type [enabled by default]
     apc_serialize_zend_class_entry(zc, NULL, 0, pos->arKey, pos->nKeyLength TSRMLS_CC);
     ^
In file included from /root/bcompiler-1.0.2/php_bcompiler.c:22:0:
/root/bcompiler-1.0.2/php_bcompiler.h:305:6: note: expected 'char *' but argument is of type 'const char *'
void apc_serialize_zend_class_entry(zend_class_entry* zce , char* force_parent_name, int force_parent_len, char* force_key, int force_key_len TSRMLS_DC);
      ^
/root/bcompiler-1.0.2/php_bcompiler.c:635:10: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
          ^
In file included from /usr/include/string.h:635:0,
                 from /usr/include/php5/main/php_config.h:2434,
                 from /usr/include/php5/main/php.h:33,
                 from /root/bcompiler-1.0.2/php_bcompiler.h:31,
                 from /root/bcompiler-1.0.2/php_bcompiler.c:22:
/root/bcompiler-1.0.2/php_bcompiler.c:635:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:635:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:635:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:635:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:635:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:635:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:635:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:635:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:635:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:635:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:635:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:635:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:635:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:635:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:635:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:635:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:635:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:635:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:635:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
/root/bcompiler-1.0.2/php_bcompiler.c:635:33: error: 'zend_class_entry' has no member named 'filename'
    if (zc->filename && strcmp(zc->filename, real_path) == 0)
                                 ^
make: *** [php_bcompiler.lo] Error 1
root@pclinux:~/bcompiler-1.0.2#

Hors ligne

#3 Le 27/03/2015, à 09:24

blackofserverdz

Re : bcompiler marche pas ubunto 12.04 server

uen reponce svp

Hors ligne

#4 Le 27/03/2015, à 10:02

bruno

Re : bcompiler marche pas ubunto 12.04 server

Bonjour également,

Merci d'essayer d'écrire dans un français correct et de soigner la présentation…
Je vais tout de même te mettre sur la voie :
- une application qui n'a pas évolué depuis presque 5 ans ;
- PHP 5.5.9 ;
- des erreurs de compilation qui portent sur des classes et des arguments de fonctions.

Je te laisse en tirer la conclusion toi-même.

Hors ligne

#5 Le 30/03/2015, à 18:01

blackofserverdz

Re : bcompiler marche pas ubunto 12.04 server

esque tu peut me guider comment installer une version  php qui marche avec bcompiler-1.0.2  soi manuellement au auto  et merci

Hors ligne

#6 Le 02/06/2015, à 16:42

LiNewBiz59

Re : bcompiler marche pas ubunto 12.04 server

La version de bcompiler 1.0.2 n'est pas compatible avec PHP 5.5.9.
En fait, bcompiler fait appel à des classes et fonctions de Zend (le moteur de PHP), comme le montre ton erreur : 'zend_class_entry' has no member named 'filename'.

D'après ce que j'ai pu comprendre dans les différents fichiers de bcompiler, il fait appel à Zend 2.1, ou 2.2, ou 2.3, voire 2.4.
Or, avec la version PHP 5.5.9, c'est la version Zend 2.5 qui est installée. D'où l'incompatibilité.

Il faut d'abord installer une version PHP 5.0 ou 5.1 (jusqu'à 5.3 d'après ce que j'ai pu lire...) pour installer bcompiler sans pb.
Malheureusement, comme le souligne Bruno, bcompiler n'est plus maintenu depuis déjà... pas mal / trop de temps ! smile

Je suis dans le même cas que toi.
Il faut trouver une alternative, ou downgrader sa version PHP.

Hors ligne