SSH Fehler bei MySQL installation

>Yoshi<

Registered User
Hi!

Ich habe hier, dieses gute Tutorial gefunden. Ich habe alles so gemacht, wie es sich gehört (sorry, ist mein erstes mal mit suse). Ich habe lediglich die MySQL-Download Version verändert, was aber glaube ich nichts zu sagen hat. Und wenn ich den Befehl:
make install
eingebe, so kommt folgendes.
`''
-bash: command substitution: line 7: syntax error: unexpected end of file
-bash: bad substitution: no closing "`" in `/root/mysql-4.1.21/zlib'
-meinhost-:~/mysql-4.1.21 # Making install in cmd-line-utils
-bash: Making: command not found
-meinhost-:~/mysql-4.1.21 # make[2]: Entering directory `/root/mysql-4.1.21/cmd-line-utils'
> Making install in libedit
> make[3]: Entering directory `/root/mysql-4.1.21/cmd-line-utils/libedit'
> make[4]: Entering directory `/root/mysql-4.1.21/cmd-line-utils/libedit'
> make[4]: Nothing to be done for `install-exec-am'.
-bash: command substitution: line 1: unexpected EOF while looking for matching `''
-bash: command substitution: line 4: syntax error: unexpected end of file
-bash: bad substitution: no closing "`" in `install-exec-am'.
-meinhost-:~/mysql-4.1.21 # test -z "/usr/local/mysql/include/mysql" || mkdir -p -- "/usr/local/mysql/include/mysql"
-meinhost-:~/mysql-4.1.21 # /usr/bin/install -c -m 644 'readline/readline.h' '/usr/local/mysql/include/mysql/readline.h'
/usr/bin/install: cannot stat `readline/readline.h': No such file or directory
-meinhost-:~/mysql-4.1.21 # make[4]: Leaving directory `/root/mysql-4.1.21/cmd-line-utils/libedit'
> make[3]: Leaving directory `/root/mysql-4.1.21/cmd-line-utils/libedit'
> make[3]: Entering directory `/root/mysql-4.1.21/cmd-line-utils'
> make[4]: Entering directory `/root/mysql-4.1.21/cmd-line-utils'
-bash: command substitution: line 1: unexpected EOF while looking for matching `''
-bash: command substitution: line 3: syntax error: unexpected end of file
-bash: bad substitution: no closing "`" in `/root/mysql-4.1.21/cmd-line-utils'
-meinhost-:~/mysql-4.1.21 # make[4]: Nothing to be done for `install-exec-am'.
> make[4]: Nothing to be done for `install-data-am'.
> make[4]: Leaving directory `/root/mysql-4.1.21/cmd-line-utils'
> make[3]: Leaving directory `/root/mysql-4.1.21/cmd-line-utils'
-bash: command substitution: line 1: unexpected EOF while looking for matching `''
-bash: command substitution: line 3: syntax error: unexpected end of file
-bash: bad substitution: no closing "`" in `/root/mysql-4.1.21/cmd-line-utils'
-meinhost-:~/mysql-4.1.21 # make[2]: Leaving directory `/root/mysql-4.1.21/cmd-line-utils'
> Making install in sql-common
> make[2]: Entering directory `/root/mysql-4.1.21/sql-common'
> make[3]: Entering directory `/root/mysql-4.1.21/sql-common'
> make[3]: Nothing to be done for `install-exec-am'.
-bash: command substitution: line 1: unexpected EOF while looking for matching `''
-bash: command substitution: line 4: syntax error: unexpected end of file
-bash: bad substitution: no closing "`" in `install-exec-am'.
-meinhost-:~/mysql-4.1.21 # make[3]: Nothing to be done for `install-data-am'.
> make[3]: Leaving directory `/root/mysql-4.1.21/sql-common'
> make[2]: Leaving directory `/root/mysql-4.1.21/sql-common'
> Making install in pstack
> make[2]: Entering directory `/root/mysql-4.1.21/pstack'
-bash: command substitution: line 1: unexpected EOF while looking for matching `''
-bash: command substitution: line 3: syntax error: unexpected end of file
-bash: bad substitution: no closing "`" in `/root/mysql-4.1.21/pstack'
-meinhost-:~/mysql-4.1.21 # Making install in aout
-bash: Making: command not found
-meinhost-:~/mysql-4.1.21 # make[3]: Entering directory `/root/mysql-4.1.21/pstack/aout'
> make[4]: Entering directory `/root/mysql-4.1.21/pstack/aout'
> make[4]: Nothing to be done for `install-exec-am'.
> make[4]: Nothing to be done for `install-data-am'.
-bash: command substitution: line 1: unexpected EOF while looking for matching `''
-bash: command substitution: line 3: syntax error: unexpected end of file
-bash: bad substitution: no closing "`" in `install-data-am'.
-meinhost-:~/mysql-4.1.21 # make[4]: Leaving directory `/root/mysql-4.1.21/pstack/aout'
> make[3]: Leaving directory `/root/mysql-4.1.21/pstack/aout'
> make[3]: Entering directory `/root/mysql-4.1.21/pstack'
> make[4]: Entering directory `/root/mysql-4.1.21/pstack'
-bash: command substitution: line 1: unexpected EOF while looking for matching `''
-bash: command substitution: line 3: syntax error: unexpected end of file
-bash: bad substitution: no closing "`" in `/root/mysql-4.1.21/pstack'
-meinhost-:~/mysql-4.1.21 # test -z "/usr/local/mysql/lib/mysql" || mkdir -p -- "/usr/local/mysql/lib/mysql"
-meinhost-:~/mysql-4.1.21 # make[4]: Nothing to be done for `install-data-am'.
> make[4]: Leaving directory `/root/mysql-4.1.21/pstack'
> make[3]: Leaving directory `/root/mysql-4.1.21/pstack'
> make[2]: Leaving directory `/root/mysql-4.1.21/pstack'
-bash: command substitution: line 1: unexpected EOF while looking for matching `''
-bash: command substitution: line 3: syntax error: unexpected end of file
-bash: bad substitution: no closing "`" in `/root/mysql-4.1.21/pstack'
-meinhost-:~/mysql-4.1.21 # Making install in strings
-bash: Making: command not found
-meinhost-:~/mysql-4.1.21 # make[2]: Entering directory `/root/mysql-4.1.21/strings'
> make[3]: Entering directory `/root/mysql-4.1.21/strings'
> test -z "/usr/local/mysql/lib/mysql" || mkdir -p -- "/usr/local/mysql/lib/mysql"
> /usr/bin/install -c -m 644 'libmystrings.a' '/usr/local/mysql/lib/mysql/libmystrings.a'
> ranlib '/usr/local/mysql/lib/mysql/libmystrings.a'
> make[3]: Nothing to be done for `install-data-am'.
> make[3]: Leaving directory `/root/mysql-4.1.21/strings'
-bash: command substitution: line 1: unexpected EOF while looking for matching `''
-bash: command substitution: line 3: syntax error: unexpected end of file
-bash: bad substitution: no closing "`" in `/root/mysql-4.1.21/strings'
-meinhost-:~/mysql-4.1.21 # make[2]: Leaving directory `/root/mysql-4.1.21/strings'
> Making install in dbug
> make[2]: Entering directory `/root/mysql-4.1.21/dbug'
> make[3]: Entering directory `/root/mysql-4.1.21/dbug'
> test -z "/usr/local/mysql/lib/mysql" || mkdir -p -- "/usr/local/mysql/lib/mysql"
> /usr/bin/install -c -m 644 'libdbug.a' '/usr/local/mysql/lib/mysql/libdbug.a'
> ranlib '/usr/local/mysql/lib/mysql/libdbug.a'
> make[3]: Nothing to be done for `install-data-am'.
-bash: command substitution: line 1: unexpected EOF while looking for matching `''
-bash: command substitution: line 4: syntax error: unexpected end of file
-bash: bad substitution: no closing "`" in `install-data-am'.
-meinhost-:~/mysql-4.1.21 # make[3]: Leaving directory `/root/mysql-4.1.21/dbug'
> make[2]: Leaving directory `/root/mysql-4.1.21/dbug'
> Making install in mysys
> make[2]: Entering directory `/root/mysql-4.1.21/mysys'
> source='my_new.cc' object='my_new.o' libtool=no \
> DEPDIR=.deps depmode=none /bin/sh ../depcomp \
> g++ -DDEFAULT_BASEDIR=\"/usr/local/mysql\" -DDATADIR="\"/usr/local/mysql/var\"" -DDEFAULT_CHARSET_HOME="\"/usr/local/mysql\"" -DSHAREDIR="\"/usr/local/mysql/share/mysql\"" -DHAVE_CONFIG_H -I. -I. -I.. -I../zlib -I../include -I../include -I. -O -DDBUG_OFF -c -o my_new.o my_new.cc
> ../depcomp: line 512: exec: g++: not found
> make[2]: *** [my_new.o] Error 127
> make[2]: Leaving directory `/root/mysql-4.1.21/mysys'
-bash: command substitution: line 1: unexpected EOF while looking for matching `''
-bash: command substitution: line 3: syntax error: unexpected end of file
-bash: bad substitution: no closing "`" in `/root/mysql-4.1.21/mysys'
-meinhost-:~/mysql-4.1.21 # make[1]: *** [install-recursive] Error 1
-bash: make[1]:: command not found
-meinhost-:~/mysql-4.1.21 # make[1]: Leaving directory `/root/mysql-4.1.21'
> make: *** [install] Error 2
> -meinhost-:~/mysql-4.1.21 #

>

Man beachte den fetten Teil unten.

Könnt ihr mir vielleicht weiterhelfen.

Grüßle
>Yoshi<
 
Irgendwie scheint das Makefile korrupt zu sein, da sind die Ausgaben von vorherigen Aufrufen von make drin -- das kann nicht sein.... Lösche nochmal das ganze Verzeichnis und packe das tar-File nochmal frisch aus.

Ansonsten stellt sich die Frage, warum Du unbedingt alles neu kompilieren willst... wenn Du am Paketverwaltungssystem vorbei arbeitest, bekommst Du nur Probleme wenn bestimmte Programme auf Grund von Sicherheitsprobleme aktualisiert werden müssen. Die meisten Pakete sind in geeigneten Versionen bereits in der Distribution vorhanden und sollten auch verwendet werden. Natürlich stimmen dann die Pfade in der Anleitung nicht mehr genau überein, aber mit etwas Suchen findest Du die jeweiligen Dateien auch so. Tipp: Einmal 'updatedb' laufen lassen und dann die jeweilige Datei mit 'locate' suchen. Falls es dabei mehrere Treffer gibt, kannst Du mit 'rpm -qf' rausfinden, zu welchem Paket die Datei gehört und so leicht sehen, ob Du die richtige erwischt hast.

Die einzigen beiden Sachen, die Du selber kompilieren musst, sind das Greylisiting-Programm und Postfix, wobei beim Postfix auch nur ein kleiner Teil ersetzt werden muss -- dazu verwendest Du aber am besten das original Postfix-Paket von SuSE. Und zwar installierst Du das .srpm (oder auch ...src.rpm) und rufst
Code:
rpmbuild -bb /usr/src/packages/SPECS/postfix.spec
auf. Anschließend findest Du die übersetzten Pakete im Verzeichnis /usr/src/packages/RPMS/i586/. Es reicht, das Paket posfix-mysql.... mit 'rpm -i' zu installieren. Zumindest in OpenSuSE 10.2 sind die richtigen Optionen beim Kompilieren gesetzt, aber das postfix-mysql-Paket fehlt aus irgendwelchen Gründen in der Distribution (zumindest habe ich es nicht auf den CDs gefunden -- falls es bei Dir schon dabei ist, um so besser, dann kannst Du es direkt installieren).

Viele Grüße,
LinuxAdmin
 
Back
Top