Como instalar arquivos .tar.gz?

Iniciado por Madrigal, 21 de Março de 2007, 12:17

tópico anterior - próximo tópico

Madrigal


Preciso aprender a instalar programas em .tar.gz, já pesquisei muito na internet, vi os materiais:

Como instalar tudo em Ubuntu na página
http://www.guiaubuntupt.org/wiki/index.php?title=Como_instalar_tudo_em_Ubuntu#Instalar_um_pacote_manualmente_.28.deb.2C_.rpm.2C_.tar.gz.2C_.sh.2C_.bin.2C_.exe.2C_....29
(lá só cita, não dá os passos).
Instalando um .tar.gz a la Debian, na página http://ubuntuff.blogspot.com/2006/07/instalando-um-targz-la-debian.html (parecia que seria a solução, mas não deu certo! ao final de cada install, dá a mensagem:

Citar
make: ** [/etc/selinux/./policy/policy.] Erro 1
dpkg: erro processando selinux-policy-default (--configure):
subprocesso post-installation script retornou código de saída de error 2
Instalando liblua5.1-0 (5.1.1-2) ...

Instalando libreadline5-dev (5.1-7build1) ...

Instalando liblua5.1-0-dev (5.1.1-2) ...
Erros foram encontrados durante processamento de:
selinux-policy-default
E: Sub-process /usr/bin/dpkg returned an error code (1)
Failed [Z - exec shell to fix this situation]

Como então instala?  ???

clcampos

Normalmente tem um READ-ME junto, poderia postar ele pra gente.

Mas arquivos com extensão .tar.gz o processo normal (estando na pasta criada após a descompactação) é:

$ sudo -s            # apenas para não ter problemas com permissão de super usuário
# ./configure
# make
# make install


Então você poderia postar as mensagens de cada um dos comandos também, caso ainda de erro provavelmente pode ser alguma dependência.
Cristiano/Timóteo - MG
.: Como Fazer Perguntas de Forma Inteligente :.                
Com dúvida? pesquise!

RxDx

Só pra completar, para descompactar é: "tar -xvzf arquivo.tar.gz"
Notebook: Dell Vostro 1320 | Core 2 Duo P8600 @ 2.4ghz | 4GB DDR2 | nVidia GeForce 9300m GS.

Madrigal

Citação de: clcampos online 21 de Março de 2007, 12:33
Normalmente tem um READ-ME junto, poderia postar ele pra gente.

Como exemplo, peguei um jogo no superdownloads, o Ultimate Stunts 0.6.1
Para baixar: http://superdownloads.uol.com.br/download/1/ultimate-stunts-linux/

Aqui está o README:

Citar
---------------------------------------------------------------------
                Ultimate Stunts source code
---------------------------------------------------------------------

This package contains the sourcecode of the 3D racing game
"Ultimate Stunts". You can configure it and compile it according
to the instructions in the documentation.

Ultimate Stunts, data files for Ultimate Stunts and the documentation
of Ultimate Stunts are available on its website:
http://ultimatestunts.sourceforge.net

The source code in this package is divided in several directories.
The code in the directories "shared", "filetransfer", "graphics" and
"simulation" is compiled into *.a static libraries. The code in the
directories "stunts3dedit", "stuntsai", "stuntsserver", "trackedit" and
"ultimatestunts" will be linked with those static libraries, generating
a different binary executable in each directory.

The source code can be edited with kdevelop. The kdevprj-file is available
in this directory. Note that this is a "custom"-type project, which means
that kdevelop does not modify Makefile.am and configure.in for you.
Automake, autoconf, configure and make can still be done from the kdevelop
menus.

Valeu.

Madrigal

Tentei fazer os comandos, deu erro, deixo aqui tudo:

Citar
root@apada:~/jr/jogotargz/ultimatestunts-srcdata-0611# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
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 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 style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for glNewList in -lGL... yes
checking for gluLookAt in -lGLU... yes
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.1.0... yes
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for inet_aton in -lresolv... yes
checking for ANSI C header files... (cached) yes
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking for GL/glext.h... yes
checking AL/al.h usability... yes
checking AL/al.h presence... yes
checking for AL/al.h... yes
checking for alGetError in -lopenal... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for strerror in -lcposix... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for off_t... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether we are using the GNU C Library 2.1 or newer... yes
checking whether integer division by zero raises SIGFPE... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unsigned long long... yes
checking for inttypes.h... yes
checking whether the inttypes.h PRIxNN macros are broken... no
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... /bin/bash: ./config.rpath: No such file or directory
done
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for feof_unlocked... yes
checking for fgets_unlocked... yes
checking for getc_unlocked... yes
checking for getcwd... yes
checking for getegid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getuid... yes
checking for mempcpy... yes
checking for munmap... yes
checking for putenv... no
checking for setenv... no
checking for setlocale... yes
checking for stpcpy... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strtoul... no
checking for tsearch... yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for __fsetlocking... yes
checking for iconv... yes
checking for iconv declaration...
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking for bison... bison
checking version of bison... 2.3, ok
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
configure: creating ./config.status
config.status: creating ultimatestunts.conf
config.status: creating Makefile
config.status: creating intl/Makefile
config.status: creating po/Makefile.in
config.status: creating data/Makefile
config.status: creating shared/Makefile
config.status: creating simulation/Makefile
config.status: creating graphics/Makefile
config.status: creating stuntsserver/Makefile
config.status: creating stuntsai/Makefile
config.status: creating stunts3dedit/Makefile
config.status: creating trackedit/Makefile
config.status: creating ultimatestunts/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile

Some important results:
Network libraries: "-lresolv -lnsl "
Sound libraries: "-lopenal "
Graphics libraries: "-lGLU -lGL   -lSM -lICE -lX11 -lXi -lXext -lXmu  -lm"
SDL libraries: "-L/usr/lib -lSDL -lpthread "
Prefix dir: "/usr/local"
usdatadir: "/usr/local/share/ultimatestunts/"

root@apada:~/jr/jogotargz/ultimatestunts-srcdata-0611# make
make  all-recursive
make[1]: Entrando no diretório `/home/apada/jr/jogotargz/ultimatestunts-srcdata-0611'
Making all in intl
make[2]: Entrando no diretório `/home/apada/jr/jogotargz/ultimatestunts-srcdata-0611/intl'
make[2]: Nada a ser feito para `all'.
make[2]: Saindo do diretório `/home/apada/jr/jogotargz/ultimatestunts-srcdata-0611/intl'
Making all in po
make[2]: Entrando no diretório `/home/apada/jr/jogotargz/ultimatestunts-srcdata-0611/po'
make[2]: Nada a ser feito para `all'.
make[2]: Saindo do diretório `/home/apada/jr/jogotargz/ultimatestunts-srcdata-0611/po'
Making all in data
make[2]: Entrando no diretório `/home/apada/jr/jogotargz/ultimatestunts-srcdata-0611/data'
make[2]: Nada a ser feito para `all'.
make[2]: Saindo do diretório `/home/apada/jr/jogotargz/ultimatestunts-srcdata-0611/data'
Making all in shared
make[2]: Entrando no diretório `/home/apada/jr/jogotargz/ultimatestunts-srcdata-0611/shared'
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../intl     -Wall -g -O2  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT binbuffer.o -MD -MP -MF ".deps/binbuffer.Tpo" \
          -c -o binbuffer.o `test -f 'binbuffer.cpp' || echo './'`binbuffer.cpp; \
        then mv -f ".deps/binbuffer.Tpo" ".deps/binbuffer.Po"; \
        else rm -f ".deps/binbuffer.Tpo"; exit 1; \
        fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../intl     -Wall -g -O2  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT bthread.o -MD -MP -MF ".deps/bthread.Tpo" \
          -c -o bthread.o `test -f 'bthread.cpp' || echo './'`bthread.cpp; \
        then mv -f ".deps/bthread.Tpo" ".deps/bthread.Po"; \
        else rm -f ".deps/bthread.Tpo"; exit 1; \
        fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../intl     -Wall -g -O2  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT cfile.o -MD -MP -MF ".deps/cfile.Tpo" \
          -c -o cfile.o `test -f 'cfile.cpp' || echo './'`cfile.cpp; \
        then mv -f ".deps/cfile.Tpo" ".deps/cfile.Po"; \
        else rm -f ".deps/cfile.Tpo"; exit 1; \
        fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../intl     -Wall -g -O2  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT cstring.o -MD -MP -MF ".deps/cstring.Tpo" \
          -c -o cstring.o `test -f 'cstring.cpp' || echo './'`cstring.cpp; \
        then mv -f ".deps/cstring.Tpo" ".deps/cstring.Po"; \
        else rm -f ".deps/cstring.Tpo"; exit 1; \
        fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../intl     -Wall -g -O2  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT datafile.o -MD -MP -MF ".deps/datafile.Tpo" \
          -c -o datafile.o `test -f 'datafile.cpp' || echo './'`datafile.cpp; \
        then mv -f ".deps/datafile.Tpo" ".deps/datafile.Po"; \
        else rm -f ".deps/datafile.Tpo"; exit 1; \
        fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../intl     -Wall -g -O2  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT datamanager.o -MD -MP -MF ".deps/datamanager.Tpo" \
          -c -o datamanager.o `test -f 'datamanager.cpp' || echo './'`datamanager.cpp; \
        then mv -f ".deps/datamanager.Tpo" ".deps/datamanager.Po"; \
        else rm -f ".deps/datamanager.Tpo"; exit 1; \
        fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../intl     -Wall -g -O2  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT dataobject.o -MD -MP -MF ".deps/dataobject.Tpo" \
          -c -o dataobject.o `test -f 'dataobject.cpp' || echo './'`dataobject.cpp; \
        then mv -f ".deps/dataobject.Tpo" ".deps/dataobject.Po"; \
        else rm -f ".deps/dataobject.Tpo"; exit 1; \
        fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../intl     -Wall -g -O2  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT generalmatrix.o -MD -MP -MF ".deps/generalmatrix.Tpo" \
          -c -o generalmatrix.o `test -f 'generalmatrix.cpp' || echo './'`generalmatrix.cpp; \
        then mv -f ".deps/generalmatrix.Tpo" ".deps/generalmatrix.Po"; \
        else rm -f ".deps/generalmatrix.Tpo"; exit 1; \
        fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../intl     -Wall -g -O2  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT generalvector.o -MD -MP -MF ".deps/generalvector.Tpo" \
          -c -o generalvector.o `test -f 'generalvector.cpp' || echo './'`generalvector.cpp; \
        then mv -f ".deps/generalvector.Tpo" ".deps/generalvector.Po"; \
        else rm -f ".deps/generalvector.Tpo"; exit 1; \
        fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../intl     -Wall -g -O2  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT glbfile.o -MD -MP -MF ".deps/glbfile.Tpo" \
          -c -o glbfile.o `test -f 'glbfile.cpp' || echo './'`glbfile.cpp; \
        then mv -f ".deps/glbfile.Tpo" ".deps/glbfile.Po"; \
        else rm -f ".deps/glbfile.Tpo"; exit 1; \
        fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../intl     -Wall -g -O2  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT hello.o -MD -MP -MF ".deps/hello.Tpo" \
          -c -o hello.o `test -f 'hello.cpp' || echo './'`hello.cpp; \
        then mv -f ".deps/hello.Tpo" ".deps/hello.Po"; \
        else rm -f ".deps/hello.Tpo"; exit 1; \
        fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../intl     -Wall -g -O2  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT ipnumber.o -MD -MP -MF ".deps/ipnumber.Tpo" \
          -c -o ipnumber.o `test -f 'ipnumber.cpp' || echo './'`ipnumber.cpp; \
        then mv -f ".deps/ipnumber.Tpo" ".deps/ipnumber.Po"; \
        else rm -f ".deps/ipnumber.Tpo"; exit 1; \
        fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../intl     -Wall -g -O2  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT lconfig.o -MD -MP -MF ".deps/lconfig.Tpo" \
          -c -o lconfig.o `test -f 'lconfig.cpp' || echo './'`lconfig.cpp; \
        then mv -f ".deps/lconfig.Tpo" ".deps/lconfig.Po"; \
        else rm -f ".deps/lconfig.Tpo"; exit 1; \
        fi
lconfig.h:41: error: extra qualification 'CLCData::' on member 'findAllFields'
make[2]: ** [lconfig.o] Erro 1
make[2]: Saindo do diretório `/home/apada/jr/jogotargz/ultimatestunts-srcdata-0611/shared'
make[1]: ** [all-recursive] Erro 1
make[1]: Saindo do diretório `/home/apada/jr/jogotargz/ultimatestunts-srcdata-0611'
make: ** [all] Erro 2
root@apada:~/jr/jogotargz/ultimatestunts-srcdata-0611#



RxDx

Cara.. comigo também sempre da algum erro quando eu tempo compilar as coisas.. é horrivel.. na maioria das vezes é por falta de dependencia.
Notebook: Dell Vostro 1320 | Core 2 Duo P8600 @ 2.4ghz | 4GB DDR2 | nVidia GeForce 9300m GS.

Paulo Demétrio