Instalando Java no Arch Linux 64 Bits
Arquivado Sobre(Sem categoria) por Cleuby em 15-09-2007
Bom, como eu precisei instalar aqui o Java no Arch Linux 64 Bits, eu tive que correr atrás da solução, e a encontrei, a instalação aqui, ficou 100%, sendo assim, vou compartilhar essa informação com todos, através desse tutorial simples.
Para este procedimentos utilizamos a versão do Java da Blackdown
*Atenção!! Todos os procedimentos a seguir devem ser executados com o usuário root.
- Baixe o Tarball da página do AUR do Arch Linux, clique aqui para ir a página de download do blackdown-jre 1.4.2-2.
- Descompacte o Tarball.
[root@SnowDOG AUR]# tar -xvzf blackdown-jre.tar.gz
blackdown-jre/
blackdown-jre/PKGBUILD
blackdown-jre/blackdown-jre.profile - Rode o comando makepkg -i
[root@SnowDOG blackdown-jre]# makepkg -i
==> Making package: blackdown-jre 1.4.2-2 (Sáb Set 15 09:33:35 PDT 2007)
==> Checking Runtime Dependencies…
==> Missing Dependencies:
-> unixodbc
==> Checking Buildtime Dependencies…
==> ERROR: could not resolve all dependencies. - Resolva as dependências. No meu caso unixodbc.
[root@SnowDOG blackdown-jre]# pacman -S unixodbc
resolvendo dependências… concluÃdo.
procurando por conflitos internos… concluÃdo.
Pacotes: unixodbc-2.2.12-1
Tamanho total dos pacotes a serem baixados: 0,74 MB
Continuar a instalação? [S/n] s
:: Obtendo pacotes do repositório current…
–09:33:49– ftp://archlinux.c3sl.ufpr.br/archlinux/current/os/x86_64/unixodbc-2.2.12-1.pkg.tar.gz
=> `/var/cache/pacman/pkg/unixodbc-2.2.12-1.pkg.tar.gz.part’
Resolvendo archlinux.c3sl.ufpr.br… 200.17.202.1
Connecting to archlinux.c3sl.ufpr.br|200.17.202.1|:21… conectado!
Logando como anonymous … Logado!
==> SYST … feito. ==> PWD … feito.
==> TYPE I … feito. ==> CWD /archlinux/current/os/x86_64 … feito.
==> PASV … feito. ==> RETR unixodbc-2.2.12-1.pkg.tar.gz … feito.
Tamanho: 773,541 (755K) (sem autoridade)
100%[====================================>] 773,541 159.84K/s ETA 00:00
09:33:54 (162.32 KB/s) - `/var/cache/pacman/pkg/unixodbc-2.2.12-1.pkg.tar.gz.part’ saved [773541]
verificando a integridade do pacote… concluÃdo.
finalizando…concluÃdo.
(1/1) verificando conflitos de arquivo [#####################] 100%
(1/1) instalando unixodbc [#####################] 100% - Pronto, rode o makepkg-i novamente.
[root@SnowDOG blackdown-jre]# makepkg -i
==> Making package: blackdown-jre 1.4.2-2 (Sáb Set 15 09:33:56 PDT 2007)
==> Checking Runtime Dependencies…
==> Checking Buildtime Dependencies…
==> Retrieving Sources…
-> Downloading j2re-1.4.2-03-linux-amd64.bin
–09:33:56– ftp://ftp.gwdg.de/pub/languages/java/linux/JDK-1.4.2/amd64/03/j2re-1.4.2-03-linux-amd64.bin
=> `j2re-1.4.2-03-linux-amd64.bin’
Resolvendo ftp.gwdg.de… 134.76.12.3
Connecting to ftp.gwdg.de|134.76.12.3|:21… conectado!
Logando como anonymous … Logado!
==> SYST … feito. ==> PWD … feito.
==> TYPE I … feito. ==> CWD /pub/languages/java/linux/JDK-1.4.2/amd64/03 … feito.
==> PASV … feito. ==> RETR j2re-1.4.2-03-linux-amd64.bin … feito.
Tamanho: 13,198,020 (13M) (sem autoridade)100%[====================================>] 13,198,020 82.35K/s ETA 00:0009:38:01 (53.20 KB/s) - `j2re-1.4.2-03-linux-amd64.bin’ saved [13198020]
-> Found blackdown-jre.profile in build dir
==> Validating source files with md5sums
j2re-1.4.2-03-linux-amd64.bin … Passed
blackdown-jre.profile … Passed
==> Extracting Sources…
==> Starting build()…
Sun Microsystems, Inc.
Binary Code License Agreement
for the
JAVATM 2 RUNTIME ENVIRONMENT (J2RE), STANDARD EDITION,
VERSION 1.4.2_XSUN MICROSYSTEMS, INC. (”SUN”) IS WILLING TO LICENSE THE
SOFTWARE IDENTIFIED BELOW TO YOU ONLY UPON THE CONDITION
THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS BINARY
CODE LICENSE AGREEMENT AND SUPPLEMENTAL LICENSE TERMS
(COLLECTIVELY “AGREEMENT”). PLEASE READ THE AGREEMENT
CAREFULLY. BY DOWNLOADING OR INSTALLING THIS SOFTWARE, YOU
ACCEPT THE TERMS OF THE AGREEMENT. INDICATE ACCEPTANCE BY
SELECTING THE “ACCEPT” BUTTON AT THE BOTTOM OF THE
AGREEMENT. IF YOU ARE NOT WILLING TO BE BOUND BY ALL THE
TERMS, SELECT THE “DECLINE” BUTTON AT THE BOTTOM OF THE
AGREEMENT AND THE DOWNLOAD OR INSTALL PROCESS WILL NOT
CONTINUE.
[root@SnowDOG blackdown-jre]# makepkg -i
==> Making package: blackdown-jre 1.4.2-2 (Sáb Set 15 09:33:56 PDT 2007)
==> Checking Runtime Dependencies…
==> Checking Buildtime Dependencies…
==> Retrieving Sources…
-> Downloading j2re-1.4.2-03-linux-amd64.bin
–09:33:56– ftp://ftp.gwdg.de/pub/languages/java/linux/JDK-1.4.2/amd64/03/j2re-1.4.2-03-linux-amd64.bin
=> `j2re-1.4.2-03-linux-amd64.bin’
Resolvendo ftp.gwdg.de… 134.76.12.3
Connecting to ftp.gwdg.de|134.76.12.3|:21… conectado!
Logando como anonymous … Logado!
==> SYST … feito. ==> PWD … feito.
==> TYPE I … feito. ==> CWD /pub/languages/java/linux/JDK-1.4.2/amd64/03 … feito.
==> PASV … feito. ==> RETR j2re-1.4.2-03-linux-amd64.bin … feito.
Tamanho: 13,198,020 (13M) (sem autoridade)100%[====================================>] 13,198,020 82.35K/s ETA 00:00
09:38:01 (53.20 KB/s) - `j2re-1.4.2-03-linux-amd64.bin’ saved [13198020]
-> Found blackdown-jre.profile in build dir
==> Validating source files with md5sums
j2re-1.4.2-03-linux-amd64.bin … Passed
blackdown-jre.profile … Passed
==> Extracting Sources…
==> Starting build()…
Sun Microsystems, Inc.
Binary Code License Agreement
for the
JAVATM 2 RUNTIME ENVIRONMENT (J2RE), STANDARD EDITION,
VERSION 1.4.2_XSUN MICROSYSTEMS, INC. (”SUN”) IS WILLING TO LICENSE THE
SOFTWARE IDENTIFIED BELOW TO YOU ONLY UPON THE CONDITION
THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS BINARY
CODE LICENSE AGREEMENT AND SUPPLEMENTAL LICENSE TERMS
(COLLECTIVELY “AGREEMENT”). PLEASE READ THE AGREEMENT
CAREFULLY. BY DOWNLOADING OR INSTALLING THIS SOFTWARE, YOU
ACCEPT THE TERMS OF THE AGREEMENT. INDICATE ACCEPTANCE BY
SELECTING THE “ACCEPT” BUTTON AT THE BOTTOM OF THE
AGREEMENT. IF YOU ARE NOT WILLING TO BE BOUND BY ALL THE
TERMS, SELECT THE “DECLINE” BUTTON AT THE BOTTOM OF THE
AGREEMENT AND THE DOWNLOAD OR INSTALL PROCESS WILL NOT
CONTINUE.
Do you agree to the above license terms? [yes or no]
yes
Verifying archive integrity…OK
Uncompressing Blackdown Java 2 Standard Edition Runtime Environment v1.4.2-03 for Linux/amd64……………………………………………………………………………………………………………
Creating ./j2re1.4.2/lib/rt.jar
Creating ./j2re1.4.2/lib/jsse.jar
Creating ./j2re1.4.2/lib/charsets.jar
Creating ./j2re1.4.2/lib/ext/localedata.jar
Creating ./j2re1.4.2/lib/plugin.jar
Creating ./j2re1.4.2/javaws/javaws.jar
==> Removing info/doc files…
==> Compressing man pages…
==> Stripping debugging symbols from libraries…
==> Stripping symbols from binaries…
==> Generating .FILELIST file…
==> Generating .PKGINFO file…
==> WARNING: Please add a license line to your PKGBUILD!
example for GPL’ed software: license=(’GPL’).
==> Compressing package…
==> Finished making: blackdown-jre (Sat Sep 15 09:39:14 PDT 2007)
==> Installing package with pacman -U…
loading package data… done.
checking dependencies… done.
cleaning up… done.
(1/1) checking for file conflicts [#####################] 100%
(1/1) installing blackdown-jre [#####################] 100% - Depois de Aceitar a licensa ele já estará instalado e funcionando.
Bom, em si é isso, vale lembrar que essa por enquanto é uma solução quebra galho, vou tentar arrumar outra, pois o projeto blackdown foi fechado, e não é mais atualizado.
Abraços!































Cleuby, obrigado pela dica. Fiquei decepcionado com o fato da Sun estar jogando sujo assim para incentivar o uso do Solaris. Temos, então, que usar um Java de 4 ou 5 anos atrás só porque não usamos Solaris no IA64 e sim Linux(e outros *nix).
De qualquer forma obrigado pelo tutorial. Um abraco, Zé