CVS compilieren unter Suse

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

Moderator: Agatho

CVS compilieren unter Suse

mit PHP5.1.2 und PHP4.4.0

Beitragvon danielray » 26.09.2006, 18:22

Suse 10.1 -> php5.1.2 (php bash command not found; MySQL not found)
Suse 9.3 -> php4.4.0 (MySQL not found)

Wenn man Suse 10.1 als Linux Distribution nutzt, dann kommt
beim compilieren folgender Fehler:

in der console wird folgendes stehen:

Code: Alles auswählen
linux-msus:/srv/www/htdocs/uga-agga/ugaagga # ./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... gawk
checking for a BSD-compatible install... /usr/bin/install -c
checking for php... no
checking for php-config... php-config
checking for xsltproc... xsltproc
checking for mysql_config... no
configure: error: installation problem: PHP not found


Die Lösung:

ln -s php5 /usr/bin/php


Info ln

12.2 `ln': Make links between files
===================================

`ln' makes links between files. By default, it makes hard links; with
the `-s' option, it makes symbolic (or "soft") links.


====

Weiteres Problem für Suse Benutzer wird sein:

Code: Alles auswählen
linux-msus:/srv/www/htdocs/uga-agga/ugaagga # ./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... gawk
checking for a BSD-compatible install... /usr/bin/install -c
checking for php... php
checking for xsltproc... xsltproc
checking for mysql_config... no
configure: error: installation problem: MySQL not found


Lösung:

Yast -> software hinzufügen -> mysql suchen -> packet mysql-devel auswählen -> installieren

Voila:

Code: Alles auswählen
linux-msus:/srv/www/htdocs/uga-agga/ugaagga # ./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... gawk
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... no
configure: installing game in /home/www/game
configure: web server user is nobody
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
.
Bild
Benutzeravatar
danielray
Schnellwuchernder Forenleser
Schnellwuchernder Forenleser
 
Beiträge: 655
Registriert: 30.01.2004, 17:04
Wohnort: Wien

Beitragvon Stoan » 26.09.2006, 19:05

ich denk das einzig wichtige ist, dass man php mit cli(command line interface oda so) installiert hat und die mysql.so in der entsprechenden php.ini eingetragen ist.
[17:57] <[CT]danielray> stoan 4 ua admin! die runden werden schneller gestartet ^^
Benutzeravatar
Stoan
Proviantschlepper
Proviantschlepper
 
Beiträge: 99
Registriert: 23.04.2004, 15:43

Beitragvon danielray » 27.09.2006, 11:09

Folgendes Problem werden einige haben, die PHP5 haben:

die php_templates.so ist für PHP4 geschrieben -> was auf dt. heißt: phpize
ABER damits ja nicht einfach wird -.- braucht man eine alte GCC version,
denn die neue macht error wo die alte nur warnings ausgab :/

ich hab halt mal die betroffene datei jmd geschickt, mal schaun ob er die neu
schreiben bzw umschreiben kann, damit auch die neuere GCC Version diese
compilieren kann.... we will C
.
Bild
Benutzeravatar
danielray
Schnellwuchernder Forenleser
Schnellwuchernder Forenleser
 
Beiträge: 655
Registriert: 30.01.2004, 17:04
Wohnort: Wien


Zurück zu Bastelstube für die CVS Version

Wer ist online?

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