AsteriskThailand
May 23, 2012, 07:06:49 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: ใคร ลอง Asterisk กับ CentOS 5 บ้างแล้วคับ  (Read 1331 times)
tonhor
Newbie
*
Posts: 7


View Profile Email
« on: November 01, 2007, 11:48:45 PM »


  มีใคร ลอง Asterisk กับ CentOS 5 บ้างแล้วคับ

  ผมลองแล้วติดปัญหาเรื่อง ของkernal อ่ะ

Code:
[root@localhost zaptel-1.4.2]# make
grep: /lib/modules/2.6.18-8.el5/build/include/linux/autoconf.h: No such file or directory
grep: /lib/modules/2.6.18-8.el5/build/include/linux/autoconf.h: No such file or directory
make[1]: Entering directory `/usr/local/src/asterisk/zaptel-1.4.2'
You do not appear to have the sources for the 2.6.18-8.el5 kernel installed.
make[1]: *** [modules] Error 1
make[1]: Leaving directory `/usr/local/src/asterisk/zaptel-1.4.2'
make: *** [all] Error 2

 
  kernal version ของผมคือ

[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-8.el5 #1 SMP Thu Mar 15 19:57:35 EDT 2007 i686 i686 i386 GNU/Linux

  ผมลองแก้ file zaptel-1.4/xpp/xbus-core.c ตามที่ comment มันบอกแล้วนะ

/*
 * As part of the "inode diet" the private data member of struct inode
 * has changed in 2.6.19. However, Fedore Core 6 adopted this change
 * a bit earlier (2.6.18). If you use such a kernel, Change the
 * following test from 2,6,19 to 2,6,18.
 */
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)        <<<< บรรทัดนี้อะคับ แก้เป็น #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
#define   I_PRIVATE(inode)   ((inode)->u.generic_ip)
#else
#define   I_PRIVATE(inode)   ((inode)->i_private)
#endif

 แต่ก็ยังไม่ได้เหมือนเดิม
 ผมต้องทำไงต่อดี ขอบคุณครับ  Grin

Logged
stp
Newbie
*
Posts: 32


View Profile
« Reply #1 on: November 02, 2007, 04:06:49 PM »

จาก error ดูเหมือนว่าไม่ได้ติดตั้ง kernel source ทำให้ compile ไม่ได้
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.12 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
SEM | Asterisk | สถานที่ท่องเที่ยว | สัมมนา SEM