IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

BSD Discussion :

installation de php-gtk2 sous FreeBSD 8


Sujet :

BSD

  1. #1
    Nouveau membre du Club
    Profil pro
    Étudiant
    Inscrit en
    Juin 2009
    Messages
    44
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Juin 2009
    Messages : 44
    Points : 30
    Points
    30
    Par défaut installation de php-gtk2 sous FreeBSD 8
    Bonjour,

    j'essai d'intsaller php-gtk telecharger sur http://gtk.php.net/distributions/php-gtk-2.0.1.tar.gz
    Apres decompression, et apres un ./buildconf ou encore
    ou encore ./buildconf --with-phpize=/usr/local/bin/phpize

    j'ai ce resultat tout bon
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
     
    Configuring for:
    PHP Api Version:         20090626
    Zend Module Api No:      20090626
    Zend Extension Api No:   220090626
    rebuilding aclocal.m4
    rebuilding configure
    rebuilding config.h.in
    jusque là pas de quoi a s'affoler tout roule...
    Je fais un ./configure ou encore ./configure --with-php-config=/usr/local/bin/php-config

    toujours pas de probleme:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
     
    Configuring for:
    PHP Api Version:         20090626
    Zend Module Api No:      20090626
    Zend Extension Api No:   220090626
    rebuilding aclocal.m4
    rebuilding configure
    rebuilding config.h.in
     
    (tantampion@Serial_Programer 344)./configure --with-php-config=/usr/local/bin/php-config
     
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for cc... cc
    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 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... yes
    checking build system type... i386-unknown-freebsd8.0
    checking host system type... i386-unknown-freebsd8.0
    checking target system type... i386-unknown-freebsd8.0
    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-20090626
    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 for PHP-GTK support... yes, shared
    checking for PHP executable in /usr/local/bin... found version 5.3.3-dev
    checking for gawk... (cached) gawk
    checking whether to include debugging symbols... no
    checking for pkg-config... /usr/local/bin/pkg-config
    checking for GLIB - version >= 2.6.0... yes (version 2.22.4)
    checking for pkg-config... (cached) /usr/local/bin/pkg-config
    checking for GTK+ - version >= 2.6.0... yes (version 2.18.5)
    checking for atk >= 1.9.0... yes
    checking ATK_CFLAGS... -I/usr/local/include/atk-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include  
    checking ATK_LIBS... -L/usr/local/lib -latk-1.0 -lgobject-2.0 -lglib-2.0  
    checking for pango >= 1.8.0... yes
    checking PANGO_CFLAGS... -I/usr/local/include/pango-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include  
    checking PANGO_LIBS... -L/usr/local/lib -lpango-1.0 -lm -lgobject-2.0 -lgmodule-2.0 -lglib-2.0  
    checking for gtkextra support... no
    checking for html support... no
    checking for libglade support... yes
    checking for libglade-2.0 >= 2.4.0... yes
    checking LIBGLADE_CFLAGS... -D_THREAD_SAFE -I/usr/local/include/libglade-2.0 -I/usr/local/include/gtk-2.0 -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo -I/usr/local/include/pango-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2  
    checking LIBGLADE_LIBS... -pthread -L/usr/local/lib -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lgio-2.0 -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lpangoft2-1.0 -lXfixes -lcairo -lX11 -lpango-1.0 -lm -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0  
    checking for libsexy support... no
    checking for GtkMozEmbed support... no
    checking for scintilla support... no
    checking for sourceview support... no
    checking for spell support... no
    creating main/php_gtk_ext.c
    checking for ld used by cc... /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/local/bin/nm -B
    checking whether ln -s works... yes
    checking how to recognize 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 the maximum length of command line arguments... 196608
    checking command to parse /usr/local/bin/nm -B output from cc object... ok
    checking for objdir... .libs
    checking for ar... ar
    checking for ranlib... ranlib
    checking for strip... strip
    checking if cc supports -fno-rtti -fno-exceptions... no
    checking for cc option to produce PIC... -fPIC
    checking if cc PIC flag -fPIC works... yes
    checking if cc static flag -static works... yes
    checking if cc supports -c -o file.o... 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... freebsd8.0 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
     
    creating libtool
    appending configuration tag "CXX" to libtool
    configure: creating ./config.status
    config.status: creating config.h
    Donc là il me semble qu'il n'y a pas matière à se faire des cheveux.


    Puis viens le make qui pose problème :
    make : ca compile, ca compile, ca compile.....
    et apres
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
     
     
    ext/gtk+/gen_atk.c:272: error: duplicate 'static'
    ext/gtk+/gen_atk.c:277: error: duplicate 'static'
    ext/gtk+/gen_atk.c:282: error: duplicate 'static'
    ext/gtk+/gen_atk.c:287: error: duplicate 'static'
    ext/gtk+/gen_atk.c:292: error: duplicate 'static'
    ext/gtk+/gen_atk.c:298: error: duplicate 'static'
    ext/gtk+/gen_atk.c:303: error: duplicate 'static'
    ext/gtk+/gen_atk.c:308: error: duplicate 'static'
    ext/gtk+/gen_atk.c:313: error: duplicate 'static'
    ext/gtk+/gen_atk.c:318: error: duplicate 'static'
    ext/gtk+/gen_atk.c:440: error: duplicate 'static'
    ext/gtk+/gen_atk.c:445: error: duplicate 'static'
    ext/gtk+/gen_atk.c:722: error: duplicate 'static'
    ext/gtk+/gen_atk.c:727: error: duplicate 'static'
    ext/gtk+/gen_atk.c:732: error: duplicate 'static'
    ext/gtk+/gen_atk.c:737: error: duplicate 'static'
    ext/gtk+/gen_atk.c:742: error: duplicate 'static'
    ext/gtk+/gen_atk.c:747: error: duplicate 'static'
    ext/gtk+/gen_atk.c:791: error: duplicate 'static'
    ext/gtk+/gen_atk.c:829: error: duplicate 'static'
    ext/gtk+/gen_atk.c:923: error: duplicate 'static'
    ext/gtk+/gen_atk.c:929: error: duplicate 'static'
    ext/gtk+/gen_atk.c:934: error: duplicate 'static'
    ext/gtk+/gen_atk.c:999: error: duplicate 'static'
    ext/gtk+/gen_atk.c:1147: error: duplicate 'static'
    ext/gtk+/gen_atk.c:1152: error: duplicate 'static'
    ext/gtk+/gen_atk.c:1157: error: duplicate 'static'
    ext/gtk+/gen_atk.c:1162: error: duplicate 'static'
    ext/gtk+/gen_atk.c:1167: error: duplicate 'static'
    ext/gtk+/gen_atk.c:1172: error: duplicate 'static'
    ext/gtk+/gen_atk.c:1341: error: duplicate 'static'
    ext/gtk+/gen_atk.c:1346: error: duplicate 'static'
    ext/gtk+/gen_atk.c:1351: error: duplicate 'static'
    ext/gtk+/gen_atk.c:1356: error: duplicate 'static'
    ext/gtk+/gen_atk.c:1361: error: duplicate 'static'
    ext/gtk+/gen_atk.c:1366: error: duplicate 'static'
    *** Error code 1
     
    Stop in /usr/home/tamtampion/Downloads/php-gtk-2.0.1.
    ensuite je check sur un forum ou on donne une solution
    qui n'as pas l'air mal mais qui smeble marche que sur ubuntu
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
    cd /usr/local/share/aclocal
    sudo cp libtool.m4 libtool.m4.bak
    sudo cat lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4 >> libtool.m4
    Alors si vous pouviez m'aider a resoudre ce proleme...
    merci d'avance.

  2. #2
    Membre éclairé
    Inscrit en
    Avril 2007
    Messages
    667
    Détails du profil
    Informations personnelles :
    Âge : 40

    Informations forums :
    Inscription : Avril 2007
    Messages : 667
    Points : 870
    Points
    870

  3. #3
    Nouveau membre du Club
    Profil pro
    Étudiant
    Inscrit en
    Juin 2009
    Messages
    44
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Juin 2009
    Messages : 44
    Points : 30
    Points
    30
    Par défaut
    Citation Envoyé par tonton fred Voir le message
    Merci Fred pour ton lien, mais ca ne répond pas a ma question. déjà le php-gtk2 ne fait pas partie des package qui se trouve dans les ports de freebsd, ensuite c'est pas un problème de comment l'installer c'est plutôt une erreur de compilation résultant d'un fichier.c qui apparemment a un problème avec les fonctions définies en static. regarde bien les erreurs qui sont génères tu verras bien ...
    Mais merci quand meme


    @ALL,
    Sinon personne n'a solution a mon problème ?

  4. #4
    Expert éminent sénior

    Profil pro
    Inscrit en
    Juin 2002
    Messages
    6 152
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2002
    Messages : 6 152
    Points : 17 778
    Points
    17 778
    Par défaut
    +1 pour les ports :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    [julp@freebsd /usr/ports]> make search name=php-gtk2
    Port:   php-gtk2-2.0.1
    Path:   /usr/ports/x11-toolkits/php-gtk2
    Info:   An extension to use gtk2 in PHP-applications
    Maint:  kmoore@freebsd.org
    Sachant que la version actuelle de PHP dans les ports est 5.2.12 et qu'elle devrait prochainement passer à 5.3.2.

  5. #5
    Membre éclairé
    Inscrit en
    Avril 2007
    Messages
    667
    Détails du profil
    Informations personnelles :
    Âge : 40

    Informations forums :
    Inscription : Avril 2007
    Messages : 667
    Points : 870
    Points
    870
    Par défaut
    Citation Envoyé par SeRiALP Voir le message
    Merci Fred pour ton lien, mais ca ne répond pas a ma question. déjà le php-gtk2 ne fait pas partie des package qui se trouve dans les ports de freebsd,
    Si, et julp t'a dit ou il est.

    Citation Envoyé par SeRiALP Voir le message
    ensuite c'est pas un problème de comment l'installer c'est plutôt une erreur de compilation résultant d'un fichier.c qui apparemment a un problème avec les fonctions définies en static. regarde bien les erreurs qui sont génères tu verras bien ...
    J'ai bien vu les erreurs Les ports font (entre autre) des modifications aux sources pour corriger les suppositions erronees des developpeurs sur l'environnement de compilation (FreeBSD n'est pas Linux). En lisant le Makefile du port, on peut voir qu'il patche le script configure, redefini quelques variables d'environnement et les CFLAGS pour permettre la compilation sous FreeBSD. Si tu veux absolument compiler sans passer par les ports, il te faudra faire quelque chose de similaire.

Discussions similaires

  1. installation php-gtk2 sous windows
    Par awsoft dans le forum GTK+ avec PHP
    Réponses: 0
    Dernier message: 18/09/2008, 18h40
  2. installation de VMware tools sous FreeBSD 7.0
    Par dlecteur dans le forum VMware
    Réponses: 2
    Dernier message: 16/09/2008, 12h15
  3. Installation réussie de Firebird+php+Ibmyadmin sous NT5
    Par programmeur90 dans le forum Installation
    Réponses: 3
    Dernier message: 24/08/2006, 12h28
  4. Apache+PHP+MySql sous FreeBSD
    Par soumou dans le forum Apache
    Réponses: 1
    Dernier message: 01/04/2006, 11h56
  5. Installation de PHP sous fedora
    Par suya95 dans le forum Applications et environnements graphiques
    Réponses: 4
    Dernier message: 09/03/2006, 18h08

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo