Errores en instalación de Asterisk

Estimados, tengo algunos problemas en la instalación de Asterisk, desde que hice el curso en esta pagina que no volvia a trabajar en el , hace un par de dias estoy tratando de instalarlo pero al llegar a la parte del Dahdi me tira el siguiente error.

2.4.1.1+2.4.1/linux/drivers/dahdi/xpp/xdefs.h:152: error: conflicting types for ‘bool’
include/linux/types.h:36: error: previous declaration of ‘bool’ was here
In file included from /usr/src/dahdi-linux-complete-2.4.1.1+2.4.1/linux/drivers/dahdi/xpp/xpd.h:31,
from /usr/src/dahdi-linux-complete-2.4.1.1+2.4.1/linux/drivers/dahdi/xpp/card_bri.c:29:
include/linux/device.h:407: error: expected identifier or ‘(’ before ‘const’
make[4]: *** [/usr/src/dahdi-linux-complete-2.4.1.1+2.4.1/linux/drivers/dahdi/xpp/card_bri.o] Error 1
make[3]: *** [/usr/src/dahdi-linux-complete-2.4.1.1+2.4.1/linux/drivers/dahdi/xpp] Error 2
make[2]: *** [_module_/usr/src/dahdi-linux-complete-2.4.1.1+2.4.1/linux/drivers/dahdi] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.18-348.1.1.el5-i686'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/dahdi-linux-complete-2.4.1.1+2.4.1/linux'
make: *** [all] Error 2

Mi instalación es la siguiente:

[root@localhost ~]# cat /etc/redhat-release
CentOS release 5.9 (Final)

[root@localhost ~]# uname -r
2.6.18-348.1.1.el5

[root@localhost ~]# rpm -qa | grep kernel
kernel-xen-devel-2.6.18-348.1.1.el5
kernel-2.6.18-308.el5
kernel-2.6.18-348.1.1.el5
kernel-devel-2.6.18-348.1.1.el5
kernel-headers-2.6.18-348.1.1.el5

libpri-1.4.11.tar.gz
dahdi-linux-complete-2.4.1.1+2.4.1

Leí en otro foro que el Centos 5.9 tiene una incompatibilidad con el dahdi.

Luego hice otra instalación del Centos 5.7 y al instalar el dahdi me dio este otro error.

[root@localhost dahdi-linux-complete-2.6.0-rc1+2.6.0-rc1]# make
make -C linux all
make[1]: Entering directory `/usr/src/dahdi-linux-complete-2.6.0-rc1+2.6.0-rc1/linux'
make -C drivers/dahdi/firmware firmware-loaders
make[2]: Entering directory `/usr/src/dahdi-linux-complete-2.6.0-rc1+2.6.0-rc1/linux/drivers/dahdi/firmware'
make[2]: Leaving directory `/usr/src/dahdi-linux-complete-2.6.0-rc1+2.6.0-rc1/linux/drivers/dahdi/firmware'
You do not appear to have the sources for the 2.6.18-274.el5 kernel installed.
make[1]: *** [modules] Error 1
make[1]: Leaving directory `/usr/src/dahdi-linux-complete-2.6.0-rc1+2.6.0-rc1/linux'
make: *** [all] Error 2

la instalacion que tengo aca es:

[root@localhost ~]# cat /etc/redhat-release
CentOS release 5.7 (Final)

[root@localhost ~]# uname -r
2.6.18-274.el5

[root@localhost ~]# rpm -qa | grep kernel
kernel-xen-devel-2.6.18-348.1.1.el5
kernel-headers-2.6.18-348.1.1.el5
kernel-2.6.18-274.el5
kernel-devel-2.6.18-348.1.1.el5

instalo el libpri-1.4.12.tar.gz

Eso es todo, bueno, espero que puedan ayudarme. Gracias de antemano.

Etiquetas: 

VozToVoice: 

Suscribirse a Comentarios de "Errores en instalación de Asterisk" Suscribirse a VozToVoice - Todos los comentarios