Page 1 of 1

dateien entpacken/installation

Posted: 16. Feb 2006 20:15
by electrocution
hallo leute! ich besitze noch nicht sehr lange linux, kam bis jetzt aber soweit gut zu recht, habe da nur ein paar probleme mit dateien aus dem inet. bei rpm -dateien ists ja wie gesagt kein problem yast2..... bla usw. aber viele anwendungen habe die endungen tar.gz.sh usw.... habe dazu schon ein paar totur. im inet durchgelesen, kam aber jedes mal nicht mehr weiter.... entweder schaffe ich es nicht die dateien zu installieren oder hab sie dann installiert aber es geht trotzdem nicht weiter. vielleicht könnt ihr mir einwenig helfen, habe dazu 2 beispiele von spielen, die ich mit der konsole entpackt habe, hab den konsolen text dazu kopiert:

:arrow:
kaddi@linux:~> su
Password: xxxxxxxxxxx
linux:/home/kaddi # cd /usr/local/src
linux:/usr/local/src # tar xzvf /home/kaddi/hexen.tar.gz
hexen-0.2.3/
hexen-0.2.3/README
hexen-0.2.3/Makefile.am
hexen-0.2.3/Makefile.in
hexen-0.2.3/acinclude.m4
hexen-0.2.3/aclocal.m4
hexen-0.2.3/configure
hexen-0.2.3/configure.in
hexen-0.2.3/install-sh
hexen-0.2.3/i_ibm.c
hexen-0.2.3/i_svgalib.c
... usw

linux:/usr/local/src # cd hexen-0.2.3
linux:/usr/local/src/hexen-0.2.3 # ./configure

loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... missing
checking whether make sets ${MAKE}... (cached) yes
checking for gcc... (cached) 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... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for a BSD compatible install... /usr/bin/install -c
checking for sdl-config... (cached) /usr/bin/sdl-config
checking for SDL - version >= 1.0.1... yes
creating ./config.status
creating Makefile

linux:/usr/local/src/hexen-0.2.3 # make install

make[1]: Entering directory `/usr/local/src/hexen-0.2.3'
/bin/sh ./mkinstalldirs /usr/local/bin
/usr/bin/install -c hexen /usr/local/bin/hexen
make[1]: Für das Ziel »install-data-am« ist nichts zu tun.
make[1]: Leaving directory `/usr/local/src/hexen-0.2.3'

linux:/usr/local/src/hexen-0.2.3 #exit
:?: so ab hier weiss ich leider nicht mehr weiter, könnt ihr mir sagen was ich nun machen muss?

oder auch:

:arrow:
.....

linux:/usr/local/src # tar xzvf /home/kaddi/abuse_sdl-0.7.0.tar.gz

abuse_sdl-0.7.0/
abuse_sdl-0.7.0/src/
abuse_sdl-0.7.0/src/include/
abuse_sdl-0.7.0/src/include/ability.hpp
abuse_sdl-0.7.0/src/include/ant.hpp
abuse_sdl-0.7.0/src/include/automap.hpp
abuse_sdl-0.7.0/mkinstalldirs
..usw

linux:/usr/local/src # cd abuse_sdl-0.7.0
linux:/usr/local/src/abuse_sdl-0.7.0 # ./configure

checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... missing
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
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 executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for ld used by GCC... /usr/i586-suse-linux/bin/ld
checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
checking for /usr/i586-suse-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking command to parse /usr/bin/nm -B output... ok
checking how to run the C preprocessor... gcc -E
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking whether byte ordering is bigendian... no
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for XShmAttach in -lXext... yes
checking for pow in -lm... yes
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.1.6... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for ANSI C header files... yes
checking for fcntl.h... yes
checking for malloc.h... yes
checking for string.h... yes
checking for sys/ioctl.h... yes
checking for sys/time.h... yes
checking for unistd.h... yes
checking for working memcmp... yes
checking for atexit... yes
checking for on_exit... yes
checking for strstr... yes
checking for gettimeofday... yes
checking for OpenGL support... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating abuse-sdl.6
config.status: creating src/Makefile
config.status: creating src/net/Makefile
config.status: creating src/imlib/Makefile
config.status: creating src/sdlport/Makefile
..usw

es kommt:
------ Configuration for Abuse-SDL 0.7.0 ------
Compiler: gcc (version gcc (GCC) 4.0.2 20050901 (prerelease) (SUSE Linux)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.)
Install prefix: /usr/local
SDL version: 1.2.8
OpenGL support: yes

Now type 'make' to build Abuse-SDL.

linux:/usr/local/src/abuse_sdl-0.7.0 # make

Making all in src
make[1]: Entering directory `/usr/local/src/abuse_sdl-0.7.0/src'
language.o ./sdlport/libsdlport.a ./imlib/libimlib.a ./net/libnet.a -lm -lnsl -L/usr/lib -lSDL -lpthread -L/usr/X11R6/lib -L/usr/lib -lGL -lpthread
...................... usw

make[2]: Leaving directory `/usr/local/src/abuse_sdl-0.7.0/src'
make[1]: Leaving directory `/usr/local/src/abuse_sdl-0.7.0/src'
make[1]: Entering directory `/usr/local/src/abuse_sdl-0.7.0'
make[1]: Für das Ziel »all-am« ist nichts zu tun.
make[1]: Leaving directory `/usr/local/src/abuse_sdl-0.7.0'
linux:/usr/local/src/abuse_sdl-0.7.0 # exit

:?: so was muss ich nun anstellen um die dateien zu öffnen, bitte helft mir weiter!

Posted: 16. Feb 2006 22:11
by klopskuchen
In den meisten Fällen werden *tar.gz-Pakete installiert, indem man drei Befehle absetzt:
./configure
make
make install

Einige Pakete beinhalten Regeln die einige andere Kommandos erfordern. Ist dies der Fall, sind diese Befehle in der Datei README oder INSTALL dokumentiert. Naja, ein ordentlich gepflegtes Paket enthält die zu verwendenden Befehle ohnehin in einer der genannten Dateien.
Zu deinen Beispielen. Im Ersten hast du eingegeben: ./configure und gleich hinterher make install, hast also das "make" ausgelassen. (bei make wird der Quellcode in Binärcode übersetzt <- ohne den geht nix). Im zweiten Beispiel hast du ./configure und make abgesetzt, "make install" aber ausgelassen und mit exit beendet. Also:

./configure; make; make install
(Es sei denn in README oder INSTALL steht etwas anderes.)

MfG, Klopskuchen