|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Senior Member
Iscritto dal: Sep 2003
Città: Milano
Messaggi: 4623
|
[installazione]Postgres+php+apache
devo iniziare a lavorare bene con i dbms in uni.
ho installato una knoppix 3.7 su macchina virtuale (per lavorare e fare prove) ho iniziato a installare i 3 soft di sopra, ma appena lancio ./config di postgres non va, ecco l'output Codice:
root@bedda:/dbms/postgresql-7.4.6# ./configure checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking which template to use... linux checking whether to build with 64-bit integer date/time support... no checking whether NLS is wanted... no checking for default port number... 5432 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 how to turn off strict aliasing in gcc... -fno-strict-aliasing configure: using CFLAGS=-O2 -fno-strict-aliasing checking whether the C compiler still works... yes checking how to run the C preprocessor... gcc -E checking allow thread-safe client libraries... no checking whether to build with Tcl... no checking whether to build with Tk... no checking whether to build Perl modules... no checking whether to build Python modules... no checking whether to build Java/JDBC tools... no checking whether to build with Kerberos 4 support... no checking whether to build with Kerberos 5 support... no checking whether to build with PAM support... no checking whether to build with Rendezvous support... no configure: using CPPFLAGS=-D_GNU_SOURCE configure: using LDFLAGS= checking for gawk... gawk checking for flex... /usr/bin/flex checking whether ln -s works... yes checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for ranlib... ranlib checking for lorder... lorder checking for tar... /bin/tar checking for strip... strip checking whether it is possible to strip libraries... yes checking for bison... bison -y checking for perl... /usr/bin/perl checking for main in -lbsd... no checking for setproctitle in -lutil... no checking for main in -lm... yes checking for main in -ldl... yes checking for main in -lnsl... yes checking for main in -lsocket... no checking for main in -lipc... no checking for main in -lIPC... no checking for main in -llc... no checking for main in -ldld... no checking for main in -lld... no checking for main in -lcompat... no checking for main in -lBSD... no checking for main in -lgen... no checking for main in -lPW... no checking for main in -lresolv... yes checking for library containing getopt_long... none required checking for main in -lunix... no checking for library containing crypt... -lcrypt checking for library containing fdatasync... none required checking for shmget in -lcygipc... no checking for readline... no configure: error: readline library not found If you have readline already installed, see config.log for details on the failure. It is possible the compiler isn't looking in the proper directory. Use --without-readline to disable readline support. root@bedda:/dbms/postgresql-7.4.6# cd .. root@bedda:/dbms# cd .. root@bedda:/# /dbms/postgresql-7.4.6/./configure checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking which template to use... linux checking whether to build with 64-bit integer date/time support... no checking whether NLS is wanted... no checking for default port number... 5432 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 how to turn off strict aliasing in gcc... -fno-strict-aliasing configure: using CFLAGS=-O2 -fno-strict-aliasing checking whether the C compiler still works... yes checking how to run the C preprocessor... gcc -E checking allow thread-safe client libraries... no checking whether to build with Tcl... no checking whether to build with Tk... no checking whether to build Perl modules... no checking whether to build Python modules... no checking whether to build Java/JDBC tools... no checking whether to build with Kerberos 4 support... no checking whether to build with Kerberos 5 support... no checking whether to build with PAM support... no checking whether to build with Rendezvous support... no configure: using CPPFLAGS=-D_GNU_SOURCE configure: using LDFLAGS= checking for gawk... gawk checking for flex... /usr/bin/flex checking whether ln -s works... yes checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for ranlib... ranlib checking for lorder... lorder checking for tar... /bin/tar checking for strip... strip checking whether it is possible to strip libraries... yes checking for bison... bison -y checking for perl... /usr/bin/perl checking for main in -lbsd... no checking for setproctitle in -lutil... no checking for main in -lm... yes checking for main in -ldl... yes checking for main in -lnsl... yes checking for main in -lsocket... no checking for main in -lipc... no checking for main in -lIPC... no checking for main in -llc... no checking for main in -ldld... no checking for main in -lld... no checking for main in -lcompat... no checking for main in -lBSD... no checking for main in -lgen... no checking for main in -lPW... no checking for main in -lresolv... yes checking for library containing getopt_long... none required checking for main in -lunix... no checking for library containing crypt... -lcrypt checking for library containing fdatasync... none required checking for shmget in -lcygipc... no checking for readline... no configure: error: readline library not found If you have readline already installed, see config.log for details on the failure. It is possible the compiler isn't looking in the proper directory. Use --without-readline to disable readline support. root@bedda:/# root@bedda:/#
__________________
Ho trattato con : lahiri, czame, RC, allXXX, dfruggeri, JMM, Paperone, xej, Pappez, iperfly, Red81, Playmake, ryan78, Rob66, XP2200, Peach1200, faberjack, Stewie82, supermario_bros, hft500, Axelscorpio, pipes lee, Piccolospazio, RohanKish, miki66, kabira85 |
![]() |
![]() |
![]() |
#2 |
Senior Member
Iscritto dal: Sep 2003
Città: Milano
Messaggi: 4623
|
non sono un linuxista, come risolvo? ho installato knoppix 3.7 si HD, pensavo avesse tutte le librerie che servivano.
Mi hanno passato anche suse 9.1pro, la domanda è: Non sono pratico con linux che faccio installo suse o metto apposto knoppix? (deve girare su Virtual Machine)
__________________
Ho trattato con : lahiri, czame, RC, allXXX, dfruggeri, JMM, Paperone, xej, Pappez, iperfly, Red81, Playmake, ryan78, Rob66, XP2200, Peach1200, faberjack, Stewie82, supermario_bros, hft500, Axelscorpio, pipes lee, Piccolospazio, RohanKish, miki66, kabira85 |
![]() |
![]() |
![]() |
#3 |
Member
Iscritto dal: Jul 2004
Città: Aosta
Messaggi: 130
|
beh, te lo dice il configure stesso, o installi quelle librerie (http://www.linuxfromscratch.org/blfs.../readline.html) o lanci il configure con l'opzione --without-readline per non usarle...
__________________
"Not all men who drink are poets. Some of us drink because we aren't poets." bionicoz@bionicoz.biz - PGP Key: bionicoz.asc |
![]() |
![]() |
![]() |
#4 |
Senior Member
Iscritto dal: Sep 2003
Città: Milano
Messaggi: 4623
|
di che librerie si tratta? e come si installano?
__________________
Ho trattato con : lahiri, czame, RC, allXXX, dfruggeri, JMM, Paperone, xej, Pappez, iperfly, Red81, Playmake, ryan78, Rob66, XP2200, Peach1200, faberjack, Stewie82, supermario_bros, hft500, Axelscorpio, pipes lee, Piccolospazio, RohanKish, miki66, kabira85 |
![]() |
![]() |
![]() |
#5 |
Senior Member
Iscritto dal: Sep 2003
Città: Milano
Messaggi: 4623
|
ok, ho installato la buona vecchia redHat in virtuale e postgres è stato installato perfettamente.... ora però iniziando la installazione di Apache in contro questo errore
questo è il comando suggerito dal prof di basi di dati Codice:
[root@localhost apache_1.3.33]# ./configure -prefix=/usr/local/apache --enablemodule=rewrite --enable- shared=rewrite --enablemodule=proxy --enable-shared=proxy Codice:
Configuring for Apache, Version 1.3.33 + using installation path layout: Apache (config.layout) configure:Error: invalid option '-prefix=/usr/local/apache' [root@localhost apache_1.3.33]#
__________________
Ho trattato con : lahiri, czame, RC, allXXX, dfruggeri, JMM, Paperone, xej, Pappez, iperfly, Red81, Playmake, ryan78, Rob66, XP2200, Peach1200, faberjack, Stewie82, supermario_bros, hft500, Axelscorpio, pipes lee, Piccolospazio, RohanKish, miki66, kabira85 |
![]() |
![]() |
![]() |
#6 |
Senior Member
Iscritto dal: Sep 2003
Città: Milano
Messaggi: 4623
|
con apache ho risolto!!!! (c'erano errori di sintassi delle opzioni)
ultima cosa, come faccio a risolvere l'installazione di php??? Codice:
[root@localhost php-4.3.10]# ./configure --with-apxs=/usr/bin/apxs --prefix=/usr/local/php-4.3.0 --with-pgsgl -- with-dom --with-dom-xslt --with-dom-exslt --with-configfile- path=/etc/php/ --enable-track-vars --enable-trans-sid --enable- ftp --with-wddx --enable-ctype --with-gd --with-freetype-dir=/usr - -with-zlibdir=/usr/ --enable-gd-native-ttf --with-expathdir=/usr --with-imagemagick --with-recode --with-gettext creating cache ./config.cache checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking whether gcc and cc understand -c and -o together... yes checking how to run the C preprocessor... gcc -E checking for AIX... no checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for re2c... exit 0; checking for ranlib... ranlib checking whether ln -s works... yes checking for mawk... no checking for gawk... gawk checking for bison... bison -y checking bison version... 1.35 (ok) checking for flex... flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for working const... yes checking flex version... 2.5.4 (ok) checking for pthreads_cflags... -pthread checking for pthreads_lib... Configuring SAPI modules checking for AOLserver support... no checking for Apache 1.x module support via DSO through APXS... Sorry, I was not able to successfully run APXS. Possible reasons: 1. Perl is not installed; 2. Apache was not compiled with DSO support (--enable-module=so); 3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs The output of /usr/bin/apxs follows ./configure: line 3169: /usr/bin/apxs: No such file or directory configure: error: Aborting
__________________
Ho trattato con : lahiri, czame, RC, allXXX, dfruggeri, JMM, Paperone, xej, Pappez, iperfly, Red81, Playmake, ryan78, Rob66, XP2200, Peach1200, faberjack, Stewie82, supermario_bros, hft500, Axelscorpio, pipes lee, Piccolospazio, RohanKish, miki66, kabira85 Ultima modifica di TorpedoBlu : 08-02-2005 alle 11:37. |
![]() |
![]() |
![]() |
#7 |
Senior Member
Iscritto dal: Jun 2002
Messaggi: 442
|
controlla il path di apxs (non penso sia in /usr/bin) e controlla se perl e' installato (se hai usato rpm, rpm -aq | grep perl).
comunque per compilare i moduli per Apache (tra cui mod_php) mi pare tu debba abilitare anche il modulo "so". Ciao EDIT: Rileggendo l'errore si vede proprio un not such file or directory, fai un find / -name apxs e se non trova niente, ricompila apache con --enable-module=so
__________________
- |
![]() |
![]() |
![]() |
#8 |
Senior Member
Iscritto dal: Sep 2003
Città: Milano
Messaggi: 4623
|
Non uso Perl, non so che cosa sia apsx
io ho copiato il comando ./configure dai lucidi del prof, non ho idea di cosa facciano tutte quelle opzioni Non conosco bene linux, per miracolo sono riuscito ad installare apache e postgresql mi date una mano?
__________________
Ho trattato con : lahiri, czame, RC, allXXX, dfruggeri, JMM, Paperone, xej, Pappez, iperfly, Red81, Playmake, ryan78, Rob66, XP2200, Peach1200, faberjack, Stewie82, supermario_bros, hft500, Axelscorpio, pipes lee, Piccolospazio, RohanKish, miki66, kabira85 |
![]() |
![]() |
![]() |
#9 |
Senior Member
Iscritto dal: Jun 2002
Messaggi: 442
|
Devi ricompilare apache aggiungendo alla linea del configure --enable-module=so
Ovviamente poi devi ridare il make e il make install. Una volta fatto fai un find / -name apxs e guarda in che path sta, penso sia in /usr/local/apache/bin/apxs, quindi modifica la linea del configure del PHP con --with-apxs=/path/di/apxs e continua con l'installazione. Per quanto riguarda perl, come ho detto precedentemente, scrivi rpm -aq | grep perl da root e posta l'output. Ciao
__________________
- |
![]() |
![]() |
![]() |
#10 |
Senior Member
Iscritto dal: Sep 2003
Città: Milano
Messaggi: 4623
|
ma io non ho bisogno di perl, devo installarlo per forza?
__________________
Ho trattato con : lahiri, czame, RC, allXXX, dfruggeri, JMM, Paperone, xej, Pappez, iperfly, Red81, Playmake, ryan78, Rob66, XP2200, Peach1200, faberjack, Stewie82, supermario_bros, hft500, Axelscorpio, pipes lee, Piccolospazio, RohanKish, miki66, kabira85 |
![]() |
![]() |
![]() |
#11 |
Senior Member
Iscritto dal: Jun 2002
Messaggi: 442
|
direi di sì, di solito comunque con una installazione standard è installato.
__________________
- |
![]() |
![]() |
![]() |
#12 |
Senior Member
Iscritto dal: Sep 2003
Città: Milano
Messaggi: 4623
|
azz nella scelta dei pacchetti l'ho tolto pensando che tanto non mi serviva.... e ora?
cmq ho fatto come hai detto, ricompilato apache e lanciato quel comando: Codice:
[root@localhost apache_1.3.33]# find / -name apxs /usr/local/apache/bin/apxs /basi/apache_1.3.33/src/support/apxs alla fine il ./configure va a buon fine, il make mi da un codice lunghissimo che finisce con: Codice:
gregation.lo ext/standard/sha1.lo ext/tokenizer/tokenizer.lo ext/xml/xml.lo ext/xml/expat/xmlparse.lo ext/xml/expat/xmlrole.lo ext/xml/expat/xmltok.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo TSRM/tsrm_virtual_cwd.lo main/main.lo main/snprintf.lo main/spprintf.lo main/php_sprintf.lo main/safe_mode.lo main/fopen_wrappers.lo main/alloca.lo main/php_scandir.lo main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_content_types.lo main/strlcpy.lo main/strlcat.lo main/mergesort.lo main/reentrancy.lo main/php_variables.lo main/php_ticks.lo main/streams.lo main/network.lo main/php_open_temporary_file.lo main/php_logos.lo main/output.lo main/memory_streams.lo main/user_streams.lo Zend/zend_language_parser.lo Zend/zend_language_scanner.lo Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_strtod.lo Zend/zend_execute.lo sapi/cli/php_cli.lo sapi/cli/getopt.lo main/internal_functions_cli.lo -lcrypt -lcrypt -lresolv -lm -ldl -lnsl - lcrypt -lcrypt -o sapi/cli/php ext/mysql/libmysql/my_tempnam.o: In function `my_tempnam': /basi/php-4.3.10/ext/mysql/libmysql/my_tempnam.c:115: the use of `tempnam' is dangerous, better use `mkstemp' Build complete. (It is safe to ignore warnings about tempnam and tmpnam). Codice:
Installing PHP SAPI module: cgi Installing PHP CGI into: /usr/local/bin/ Installing PEAR environment: /usr/local/lib/php/ [PEAR] Archive_Tar - installed: 1.1 [PEAR] Console_Getopt - installed: 1.2 [PEAR] PEAR - installed: 1.3.2 Wrote PEAR system config file at: /usr/local/etc/pear.conf You may want to add: /usr/local/lib/php to your php.ini include_path [PEAR] DB - installed: 1.6.2 [PEAR] HTTP - installed: 1.2.2 [PEAR] Mail - installed: 1.1.3 [PEAR] Net_SMTP - installed: 1.2.6 [PEAR] Net_Socket - installed: 1.0.1 [PEAR] XML_Parser - installed: 1.0.1 [PEAR] XML_RPC - installed: 1.1.0 Installing build environment: /usr/local/lib/php/build/ Installing header files: /usr/local/include/php/ Installing helper programs: /usr/local/bin/ program: phpize program: php-config program: phpextdist cosa sbaglio ancora?? ![]()
__________________
Ho trattato con : lahiri, czame, RC, allXXX, dfruggeri, JMM, Paperone, xej, Pappez, iperfly, Red81, Playmake, ryan78, Rob66, XP2200, Peach1200, faberjack, Stewie82, supermario_bros, hft500, Axelscorpio, pipes lee, Piccolospazio, RohanKish, miki66, kabira85 Ultima modifica di TorpedoBlu : 08-02-2005 alle 13:31. |
![]() |
![]() |
![]() |
#13 |
Senior Member
Iscritto dal: Jun 2002
Messaggi: 442
|
niente, non c'e' nessun errore.
Codice:
ext/mysql/libmysql/my_tempnam.o: In function `my_tempnam': /basi/php-4.3.10/ext/mysql/libmysql/my_tempnam.c:115: the use of `tempnam' is dangerous, better use `mkstemp' Build complete. (It is safe to ignore warnings about tempnam and tmpnam).
__________________
- |
![]() |
![]() |
![]() |
#14 |
Senior Member
Iscritto dal: Sep 2003
Città: Milano
Messaggi: 4623
|
ora come faccio a far funzionare apache con php? il mio prof scrive sui lucidi
Configurazione di Apache per il supporto al PHP – File httpd.conf • LoadModule php4_module libexec/libphp4.so • AddModule mod_php4.c • AddType application/x-httpd-php .php • DirectoryIndex index.html index.php ma non capisco, poi mette altra roba: Configurazione PHP (php.ini) – La sua posizione puo’ essere decisa in compilazione (–with-config-file-path) – Permette di configurare a runtime il comportamento dell’interprete – Alcuni parametri possono essere modificati a seconda delle esigenze per ogni script con la funzione ini_set() – E’ possibile modificare alcuni parametri anche con direttive Apache. L'ultimo sforzo che ci sono quasi! please!
__________________
Ho trattato con : lahiri, czame, RC, allXXX, dfruggeri, JMM, Paperone, xej, Pappez, iperfly, Red81, Playmake, ryan78, Rob66, XP2200, Peach1200, faberjack, Stewie82, supermario_bros, hft500, Axelscorpio, pipes lee, Piccolospazio, RohanKish, miki66, kabira85 |
![]() |
![]() |
![]() |
#15 |
Senior Member
Iscritto dal: Jun 2002
Messaggi: 442
|
Modifica il file /usr/local/apache/conf/httpd.conf e aggiungi:
Codice:
LoadModule php4_module libexec/libphp4.so AddModule mod_php4.c Poi modifica la DirectoryIndex aggiungendo index.php Per associare i files php al mod_php cerca AddType e aggiungi Codice:
AddType application/x-httpd-php .php
__________________
- Ultima modifica di Maestro : 08-02-2005 alle 14:58. |
![]() |
![]() |
![]() |
#16 | |||
Senior Member
Iscritto dal: Sep 2003
Città: Milano
Messaggi: 4623
|
Quote:
Quote:
Quote:
__________________
Ho trattato con : lahiri, czame, RC, allXXX, dfruggeri, JMM, Paperone, xej, Pappez, iperfly, Red81, Playmake, ryan78, Rob66, XP2200, Peach1200, faberjack, Stewie82, supermario_bros, hft500, Axelscorpio, pipes lee, Piccolospazio, RohanKish, miki66, kabira85 |
|||
![]() |
![]() |
![]() |
#17 |
Senior Member
Iscritto dal: Jun 2002
Messaggi: 442
|
Installa nano o pico e potrai usare CTRL+W e inserire la stringa per effettuarne la ricerca dentro il file, così potrai trovare facilmente il testo.
Codice:
LoadModule php4_module libexec/libphp4.so AddModule mod_php4.c Codice:
# # Dynamic Shared Object (DSO) Support # # To be able to use the functionality of a module which was built as a DSO you # have to place corresponding `LoadModule' lines at this location so the # directives contained in it are actually available _before_ they are used. # Please read the file README.DSO in the Apache 1.3 distribution for more # details about the DSO mechanism and run `apache -l' for the list of already # built-in (statically linked and thus always available) modules in your apache # binary. # Per quanto riguarda DirectoryIndex c'e' sicuramente una voce con index.htm e simili, basta aggiungere alla fine index.php Per AddType application/x-httpd-php .php cerca ad esempio AddType application/x-tar .tgz e aggiungi quanto riguarda PHP in una linea precedente o successiva. Se hai problemi allega httpd.conf che lo modifico e riallego.
__________________
- |
![]() |
![]() |
![]() |
#18 |
Senior Member
Iscritto dal: Sep 2003
Città: Milano
Messaggi: 4623
|
allora ho fatto le modifiche, poi non c'era il file php.ini e l'ho trovato e copiato.
ho lanciato il server ma.... Codice:
[root@localhost root]# /usr/local/apache/bin/apachectl start Syntax error on line 207 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: cannot open shared object file: No such file or directory /usr/local/apache/bin/apachectl start: httpd could not be started in allegato c'è il mio file php.ini compresso in .rar
__________________
Ho trattato con : lahiri, czame, RC, allXXX, dfruggeri, JMM, Paperone, xej, Pappez, iperfly, Red81, Playmake, ryan78, Rob66, XP2200, Peach1200, faberjack, Stewie82, supermario_bros, hft500, Axelscorpio, pipes lee, Piccolospazio, RohanKish, miki66, kabira85 |
![]() |
![]() |
![]() |
#19 |
Senior Member
Iscritto dal: Jun 2002
Messaggi: 442
|
Fai un find / -name libphp4.so e riporta il path che ti indica.
__________________
- |
![]() |
![]() |
![]() |
#20 |
Senior Member
Iscritto dal: Sep 2003
Città: Milano
Messaggi: 4623
|
cerca meno di un secondo e non lo trova....
![]()
__________________
Ho trattato con : lahiri, czame, RC, allXXX, dfruggeri, JMM, Paperone, xej, Pappez, iperfly, Red81, Playmake, ryan78, Rob66, XP2200, Peach1200, faberjack, Stewie82, supermario_bros, hft500, Axelscorpio, pipes lee, Piccolospazio, RohanKish, miki66, kabira85 |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 23:52.