Prob mit php

Hier können sich alle gegenseitig helfen beim erstellen eines Spiels

Moderator: Agatho

Prob mit php

Beitragvon error » 02.01.2006, 15:00

hi leute,
ich wollte so aus langeweile ma nen ua-clone aufsetzen und hab nen problem.

system is ubuntu, als server hab ich xamp genommen weil da ja alles drin is was man so braucht :)

so mein prob is folgendes, ich kann ua nicht compilieren da er php nicht findet o.o php is aba installiert da auch ein forum über den rechner leuft.

Code: Alles auswählen
root@shell-systems:/opt/lampp/htdocs/uga-agga# ./configure
checking for gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for gawk... no
checking for mawk... mawk
checking for a BSD-compatible install... /usr/bin/install -c
checking for php... no
checking for xsltproc... xsltproc
checking for mysql_config... no
configure: error: installation problem: PHP not found


Code: Alles auswählen
root@shell-systems:/opt/lampp/htdocs/uga-agga/Portal# ./configure
checking for gawk... no
checking for mawk... mawk
checking for a BSD-compatible install... /usr/bin/install -c
checking for php... no
configure: error: installation problem: PHP not found
root@shell-systems:/opt/lampp/htdocs/uga-agga/Portal#       

ich hoffe ihr könnt mir helfen

[/code]
error
Spielball der Götter
Spielball der Götter
 
Beiträge: 36
Registriert: 10.09.2005, 12:07

Beitragvon Forsaker » 02.01.2006, 15:43

Hast du das php-devel installiert ?

Die Fehlermeldung finde ich aber schon etwas verwirrend ... vielleicht ist irgendwo ein Problem mit dem Pfad.
Forsaker
Spielball der Götter
Spielball der Götter
 
Beiträge: 44
Registriert: 26.08.2005, 18:53

Beitragvon freddy » 02.01.2006, 18:24

Dein System findet anscheinend die ausführbare PHP Datei nicht.

Da du LAMPP benutzt sollte dir folgendes helfen:

Tipp

Code: Alles auswählen
export PATH=$PATH:/opt/lampp/bin


in die Konsole ein. dann sollte er PHP finden.
Das wirkt abe4r nur so lange bis du sich ausgeloggt hast.

wenn du das Dauerhaft so haben willst, musst du das ganze in die Datei: .bashrc in deinem Homeverzeichnis eintragen.

Also z.B. in /home/ugaagga/.bashrc , wenn du einen Benutzer mit dem Namen ugaagga verwendest.
Wenn du das ganze als root machst, ist die Datei /root/.bashrc
freddy
Spielball der Götter
Spielball der Götter
 
Beiträge: 25
Registriert: 11.02.2005, 15:30

Beitragvon error » 02.01.2006, 18:48

soo danke freddy =)

hat geklappt

Code: Alles auswählen
root@shell-systems:/opt/lampp/htdocs/uga-agga# export PATH=$PATH:/opt/lampp/bin
root@shell-systems:/opt/lampp/htdocs/uga-agga# ./configure
checking for gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for gawk... no
checking for mawk... mawk
checking for a BSD-compatible install... /usr/bin/install -c
checking for php... php
checking for xsltproc... xsltproc
checking for mysql_config... mysql_config
checking for library containing sqrt... -lm
checking for /etc/httpd/conf/httpd.conf... no
checking for /etc/httpd/httpd.conf... no
checking for /etc/apache/httpd.conf... yes
configure: installing game in /var/www/game
configure: web server user is www-data
configure: creating ./config.status
config.status: creating src/Makefile
config.status: creating src/dbs/db-util
config.status: creating src/ticker/ticker.conf
config.status: creating src/utilities/crontab
config.status: creating src/utilities/db_backup.cron
config.status: creating src/utilities/util.inc.php
config.status: creating src/www/include/config.inc.php
root@shell-systems:/opt/lampp/htdocs/uga-agga#         


ich werds mal eintragen damits dauerhaft bleibt =)
error
Spielball der Götter
Spielball der Götter
 
Beiträge: 36
Registriert: 10.09.2005, 12:07


Zurück zu Bastelstube für die CVS Version

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 0 Gäste