[CentOS-es] Problemas compilando chpasswd

Rolando Arteaga Lamar roly08042 en cha.jovenclub.cu
Mie Oct 14 15:53:27 UTC 2009



hola a todos los listeros, tengo un poco de dudas a la hora de compilar la
informacion del script chpasswd, autentificacion por web para squid.

estube buscando informacion en internet, respecto al programa.

pues bien el sitio web.
http://www.ecualug.org/2008/12/12/comos/cambiar_contrasena_de_sistema_web

pero empezando a complilar me da un error.
./configure --prefix=/etc/chpasswd --enable-language=Spanish
--enable-cgidir=/usr/lib/cgi-bin make && nake install

configure: WARNING: you should use --build, --host, --target
checking for make-gcc... no
checking for gcc... no
checking for make-cc... no
checking for cc... no
checking for cc... no
checking for make-cl... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH


esto es un error pero en verdad no entiendo nada de nada.

despues hay que cambiar alguna configuracion en el archivo chpasswd.c

pero mucho menos entiendo, lo que hay que hacer.

en el sitio web me dice como config el archivo..y dice que hay que hacer
lo que dice el archivo este.


--- chpasswd.c  2005-05-09 10:05:08.000000000 -0300
+++ new/chpasswd.c      2005-11-29 13:54:50.000000000 -0200
@@ -159,6 +159,27 @@
 }


+static int
+htoi(s)
+        unsigned char   *s;
+{
+        int     value;
+        char    c;
+
+        c = s[0];
+        if (isupper(c))
+                c = tolower(c);
+        value = (c >= '0' && c <= '9' ? c - '0' : c - 'a' + 10) * 16;
+
+        c = s[1];
+        if (isupper(c))
+                c = tolower(c);
+        value += c >= '0' && c <= '9' ? c - '0' : c - 'a' + 10;
+
+        return (value);
+}
+
+
 void
 Herror(char *msg)
 {
@@ -282,27 +303,6 @@
 }


-static int
-htoi(s)
-        unsigned char   *s;
-{
-        int     value;
-        char    c;
-
-        c = s[0];
-        if (isupper(c))
-                c = tolower(c);
-        value = (c >= '0' && c <= '9' ? c - '0' : c - 'a' + 10) * 16;
-
-        c = s[1];
-        if (isupper(c))
-                c = tolower(c);
-        value += c >= '0' && c <= '9' ? c - '0' : c - 'a' + 10;
-
-        return (value);
-}
-
-
 void
 rulefail(char *minchar, char *minnum, char *minspec)
 {



pero bueno no puedo instalar el script.
necesito alguna informacion al respecto.
desde ya gracias



-- 



*********************************
******* Rolando Arteaga *********
*********************************



Más información sobre la lista de distribución CentOS-es