elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado:


  Mostrar Temas
Páginas: [1]
1  Sistemas Operativos / GNU/Linux / Problema BackTrack 4 en: 21 Mayo 2012, 20:16 pm
Hola, Instale BackTrack 4 en mi ordenador, y comenzaron los problemas cuando quiero instalar  el geany me sale el siguiente error>

Código:


root@bt:~/geany-0.21# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
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 whether ln -s works... yes
checking whether NLS is requested... yes
checking for intltool-update... no
checking for intltool-merge... no
checking for intltool-extract... no
configure: error: The intltool scripts were not found. Please install intltool.
root@bt:~/geany-0.21# make
make: *** No targets specified and no makefile found.  Stop.
root@bt:~/geany-0.21# sudo make install geany
make: *** No rule to make target `install'.  Stop.
root@bt:~/geany-0.21#


O si intento colocar el sudo apt-get install geany me sale este error y no solo con geany con todo lo que trato de instalar algo estoy haciendo mal??

Código:
root@bt:~# sudo apt-get install geany
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  doc-base
The following NEW packages will be installed:
  geany
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 2097kB of archives.
After this operation, 6210kB of additional disk space will be used.
Err http://archive.offensive-security.com pwnsauce/universe geany 0.14-1ubuntu1
  Could not resolve 'archive.offensive-security.com'
Failed to fetch http://archive.offensive-security.com/pool/universe/g/geany/geany_0.14-1ubuntu1_i386.deb  Could not resolve 'archive.offensive-security.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@bt:~#


PD> no me digan que la solucion es el BackTrack 5 que lo tuve que desinstalar por que se reiniciaba solo, me dejaba en una pantalla negra donde no funcionaba ni startx ni nada. XD ayuda plz.
2  Programación / Java / Alguien me corrige este programa en java? no tengo idea como hacerlo uu en: 21 Mayo 2012, 04:05 am
Hola a todos, Vine al  foro para ver si alguien me podia ayudar con este ejercicio en java, recien comienzo a practicar y me tope con este ejercicio me quede estancado  :-\ :-\ Alguien me puede ayudar?
Grax de antemano

El enunciado del problema es este:
1.Desarrollar un programa que registre los votos que se realizan en un colegio
 para la junta directiva. El programa debe registrar el candidato elegido, el sexo y edad del votante.
El programa debe reportar el candidato ganador, y dos reportes de verificación:
•Reporte total de votos por sexo
•Reporte total por edad: Joven, adulto y adulto mayor
•El candidato menos votado
Para estas elecciones se han presentado tres candidatos
Considerar:
•Joven: 18 – 25
•Adulto: 25-40
•Adulto mayor: >40


Código:
package trabajounidad1;

import javax.swing.*;
public class TrabajoUnidad1 {   
    public static void main(String[] args) {     
      int edad,ch=0,cm=0,joven=0,adulto=0,adultom=0,voto,max=0,min=999999999;     
      char genero;
     
     do{
     edad=Integer.parseInt(JOptionPane.showInputDialog("Ingrese Edad del Votante"));         
        switch(edad){
                 
          case 1:
              if(edad>18 && edad<=25){           
                 genero=JOptionPane.showInputDialog("Ingrese Genero del Votante").charAt(0);
         
                    if(genero=='M'||genero=='m'){
                         ch++;
              voto=Integer.parseInt(JOptionPane.showInputDialog("Ingrese Candidato preferido\n[1]Candidato 1\n[2]Candidato 2\n[3]Candidato 3 "));
               while(voto>max){
                       max=voto;
                       
              }       
               while(voto<min){
                   min=voto;
               }
             }
                   
                    else{
                  cm++;
                voto=Integer.parseInt(JOptionPane.showInputDialog("Ingrese Candidato preferido\n[1]Candidato 1\n[2]Candidato 2\n[3]Candidato 3 "));
               while(voto>max){
                       max=voto;
               }
                while(voto<min){
                   min=voto;
               }
              } 
             
         
       
                    joven++;
      } break;
     
        case 2:
              if(edad>25 && edad<=40){
           
             genero=JOptionPane.showInputDialog("Ingrese Genero del Votante").charAt(0);
         
              if(genero=='M'||genero=='m'){
                  ch++;
              voto=Integer.parseInt(JOptionPane.showInputDialog("Ingrese Candidato preferido\n[1]Candidato 1\n[2]Candidato 2\n[3]Candidato 3 "));
               while(voto>max){
                       max=voto;
              }
               while(voto<min){
                   min=voto;
               }
                                         
             }else{
                  cm++;
                voto=Integer.parseInt(JOptionPane.showInputDialog("Ingrese Candidato preferido\n[1]Candidato 1\n[2]Candidato 2\n[3]Candidato 3 "));
               while(voto>max){
                       max=voto;
               }
                while(voto<min){
                   min=voto;
               }
              } 
             
         
     
                       
     }     
      adulto++;       
        break;
      case 3:
              if(edad>40){
           
             genero=JOptionPane.showInputDialog("Ingrese Genero del Votante").charAt(0);
         
              if(genero=='M'||genero=='m'){
                  ch++;
              voto=Integer.parseInt(JOptionPane.showInputDialog("Ingrese Candidato preferido\n[1]Candidato 1\n[2]Candidato 2\n[3]Candidato 3 "));
               while(voto>max){
                       max=voto;
              }
               while(voto<min){
                   min=voto;
               }
                                         
             }else{
                  cm++;
                voto=Integer.parseInt(JOptionPane.showInputDialog("Ingrese Candidato preferido\n[1]Candidato 1\n[2]Candidato 2\n[3]Candidato 3 "));
               while(voto>max){
                       max=voto;                       
               }
                while(voto<min){
                   min=voto;
               }
              } 
             
         
     }     
                    adultom++;
    break;
       }
        }while(edad!=0);
     
     }
}





XD  ;D ;D

Páginas: [1]
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines