Avatar billede jorn1 Nybegynder
22. januar 2005 - 15:02 Der er 11 kommentarer og
1 løsning

install af php på suse linux personal 9.1

hvad går der galt her ?????????

linux:/home/jorn/php-4.3.10 # ./configure
--with-apxs2=/usr/local/apache2/bin/ap
xs --with-mysql
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... no
checking for byacc... no
configure: warning: You will need bison if you want to regenerate the PHP
parser                                            s.
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: line 2425: lex: command not
found
configure: error: cannot find output from lex; giving up
linux:/home/jorn/php-4.3.10 #
Avatar billede arne_v Ekspert
22. januar 2005 - 15:06 #1
Den siger at du skal installere flex og bison !
Avatar billede jorn1 Nybegynder
22. januar 2005 - 15:12 #2
er meget ny med hensyn til dette her linux, så man må jo søge hjælp hvor man kan.
har fået apache til at køre.
Avatar billede jorn1 Nybegynder
22. januar 2005 - 15:46 #3
får nu følgende fejl.???

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

linux:/home/jorn/php-4.3.10 # make install
Installing PHP SAPI module:      apache2handler
/usr/local/apache2//build/instdso.sh
SH_LIBTOOL='/usr/local/apache2//build/libtool'
libphp4.la /usr/local/apache2//modules
/usr/local/apache2//build/libtool --mode=install cp
libphp4.la /usr/local/apache2//modules/
cp .libs/libphp4.so /usr/local/apache2//modules/libphp4.so
cp .libs/libphp4.lai /usr/local/apache2//modules/libphp4.la
libtool: install: warning: remember to run `libtool
--finish /home/jorn/php-4.3.10/libs'
/usr/local/apache2//build/instdso.sh: line 53: 29103 Lagersegmentfejl       
$CMD
apxs:Error: Command failed with rc=9109504
.
make: *** [install-sapi] Fejl 1
linux:/home/jorn/php-4.3.10 #
Avatar billede jorn1 Nybegynder
22. januar 2005 - 15:55 #4
prøver nu at instal libtool
Avatar billede jorn1 Nybegynder
22. januar 2005 - 16:12 #5
ok det virker nu instal er fulført, restartet apache men virker ikke med php får bare kilde teksten. ?????
Avatar billede arne_v Ekspert
22. januar 2005 - 16:15 #6
Har du lagt PHP ind i httpd.conf ?
Avatar billede arne_v Ekspert
22. januar 2005 - 16:16 #7
LoadModule php4_module wherever-your-php-module-are
AddType application/x-httpd-php .php
Avatar billede jorn1 Nybegynder
22. januar 2005 - 16:31 #8
ja php er sat in i httpd.conf med index.php og index.php4

kan du lige pensle det sidste lidt ud ???
Avatar billede jorn1 Nybegynder
22. januar 2005 - 16:33 #9
skulle minphp.ini ikke likke i /usr/local/lib
Avatar billede arne_v Ekspert
22. januar 2005 - 17:58 #10
De to sidste linier gør at Apache kører PHP på .php filer.

Det med index.php gør bare at Apache viser index.php hvis en URL slutter med /
Avatar billede arne_v Ekspert
25. februar 2005 - 22:05 #11
Har du fået det til at virke ?
Avatar billede arne_v Ekspert
25. februar 2005 - 22:06 #12
et svar såfremt at ...og
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
IT-kurser om Microsoft 365, sikkerhed, personlig vækst, udvikling, digital markedsføring, grafisk design, SAP og forretningsanalyse.

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester