Pagina 1 di 4 1 2 3 ... ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 39
  1. #1
    Utente di HTML.it L'avatar di ghety
    Registrato dal
    Sep 2002
    Messaggi
    115

    [PHP-GTK] esecuzione su linux

    Salve a tutti
    e un grazie a Dark Bard per i suoi ariticoli su php-gtk

    Avrei un problemino.
    Su win lo installo tranquillamente (in fondo è in .exe)
    ma su linux ho scaricato i sorgernti (1.0.0)
    scompattati in una cartella e poi
    ./builconfig ( mi sembra)
    ./configure
    make
    make install
    e poi come avvio le applicazioni php-gtk?

    Grazie
    # 340637

  2. #2
    Utente di HTML.it L'avatar di ghety
    Registrato dal
    Sep 2002
    Messaggi
    115
    uppino
    # 340637

  3. #3
    Utente di HTML.it L'avatar di M4rko
    Registrato dal
    Dec 2000
    Messaggi
    619
    crei il tuo sorgente php e lo lanci da riga di comando (naturalmente devi caricare php_gtk.so con la funzione dl()
    ):

    codice:
    php pippo.php
    se l'interprete php non è nel $PATH devi specificare il percorso completo, es:

    codice:
    /usr/local/bin/php pippo.php
    Tutti hanno bisogno di credere in qualcosa.
    Io credo che mi farò un'altra birra.


  4. #4
    Utente di HTML.it L'avatar di ghety
    Registrato dal
    Sep 2002
    Messaggi
    115
    Perfetto non ho nessun php_gtk.so
    eppure non mi sembra abbia dato nessun errore
    durante l'installazione
    Non so che fare
    idee?
    # 340637

  5. #5
    Utente di HTML.it L'avatar di ghety
    Registrato dal
    Sep 2002
    Messaggi
    115
    Sfogliando la dir dove sono presenti i file per php-gtk
    c'è una sottodir "main" che contiene file
    Makefile.frag
    Makefile.in
    php_gtk.c
    php_gtk.h
    php_gtk_ext.c.in
    php_gtk_ext.w32.c
    php_gtk_module.h
    php_gtk_object.c
    php_gtk_util.c

    non dicono nulla?
    # 340637

  6. #6
    Utente di HTML.it L'avatar di M4rko
    Registrato dal
    Dec 2000
    Messaggi
    619
    quelli sono i sorgenti, il file .so è il corrispondente del file .dll su windows
    hai ricevuto errori quando hai dato i comandi di compilazione?

    prova un

    updatedb && locate php_gtk.so

    comunque i file .so di php dovrebbero trovarsi nella directory indicata nel php.ini alla voce extension_dir (è dove dl() va a cercare le estensioni)
    Tutti hanno bisogno di credere in qualcosa.
    Io credo che mi farò un'altra birra.


  7. #7
    Utente di HTML.it L'avatar di ghety
    Registrato dal
    Sep 2002
    Messaggi
    115
    Originariamente inviato da M4rko

    updatedb && locate php_gtk.so
    warning: updatedb: could not open database: /var/lib/slocate/slocate.db: No such file or directory
    (slack 9.1)

    la dir delle estensioni ha solo
    gettext.so e
    mysql.so


    non mi sembra che abbia tornato errori la compilazione

    l'output della compilazione

    codice:
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking for gcc... gcc
    checking for C compiler default output... 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 whether gcc and cc understand -c and -o together... yes
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    checking for PHP prefix... /usr
    checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM
    checking for PHP extension directory... /usr/lib/php/extensions
    checking how to run the C preprocessor... gcc -E
    checking for egrep... grep -E
    checking for gawk... gawk
    checking for PHP-GTK support... yes, shared
    checking for gawk... (cached) gawk
    checking for PHP executable in /usr/bin... found
    ./configure: line 3631: PHP_GTK_ARG_ENABLE: command not found
    checking for ld used by GCC... /usr/i486-slackware-linux/bin/ld
    checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld... yes
    checking for /usr/i486-slackware-linux/bin/ld option to reload object files... -r
    checking for BSD-compatible nm... /usr/bin/nm -B
    checking for a sed that does not truncate output... /usr/bin/sed
    checking whether ln -s works... yes
    checking how to recognise dependent libraries... pass_all
    checking command to parse /usr/bin/nm -B output... 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 dlfcn.h usability... yes
    checking dlfcn.h presence... yes
    checking for dlfcn.h... yes
    checking for ranlib... ranlib
    checking for strip... strip
    checking for objdir... .libs
    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 if gcc supports -c -o file.lo... yes
    checking if gcc supports -fno-rtti -fno-exceptions... yes
    checking whether the linker (/usr/i486-slackware-linux/bin/ld) supports shared libraries... yes
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... no
    checking whether -lc should be explicitly linked in... no
    creating libtool
    mkdir: too few arguments
    Try `mkdir --help' for more information.
    configure: creating ./config.status
    config.status: creating config.h
    config.status: config.h is unchanged
    # 340637

  8. #8
    Utente di HTML.it L'avatar di M4rko
    Registrato dal
    Dec 2000
    Messaggi
    619
    quello è l'output del configure, la compilazione avviene col make

    updatedb prova a darlo da root

    non saprei, io l'ho compilato al primo colpo senza problemi
    Tutti hanno bisogno di credere in qualcosa.
    Io credo che mi farò un'altra birra.


  9. #9
    Utente di HTML.it L'avatar di ghety
    Registrato dal
    Sep 2002
    Messaggi
    115
    Si scusa
    ecco il make

    bash-2.05b# make

    Build complete.
    (It is safe to ignore warnings about tempnam and tmpnam).


    bash-2.05b# updatedb && locate php_gtk.so

    non mi ritorna risposta
    # 340637

  10. #10
    Utente di HTML.it L'avatar di M4rko
    Registrato dal
    Dec 2000
    Messaggi
    619
    la cosa mi perplime

    se provi ad eseguire il tuo script ti da errori? (se sì, quali)
    Tutti hanno bisogno di credere in qualcosa.
    Io credo che mi farò un'altra birra.


Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.