PlugPBX Forums
May 19, 2012, 02:03:20 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: How to compile DAHDI in the SheevaPlug?  (Read 1567 times)
ramses
Newbie
*
Posts: 1


« on: August 10, 2010, 05:34:44 AM »

Hi everybody, this is my first post,

I have installed Asterisk+FreePBX in the SheevaPlug and it works well.

I have tried to compile DAHDI but it report me that the sources haven't installed:

------------------
debian:/usr/src/dahdi-linux/2.1.0.4# make
echo "You do not appear to have the sources for the 2.6.35 kernel installed."
You do not appear to have the sources for the 2.6.35 kernel installed.
exit 1
make: *** [modules] Error 1
debian:/usr/src/dahdi-linux/2.1.0.4#
------------------

I have installed the kernel 2.6.35 from the this page (http://sheeva.with-linux.com/sheeva/2.6.35/).

I have downloaded the sources from this page (http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.35.tar.bz2) and I have untarred it in the directory (/usr/src/linux-2.6.35).

I have downloaded the headers from this paga (http://sheeva.with-linux.com/sheeva/2.6.35/sheeva-2.6.35-KernelHeaders.tar.gz) and I have untarred in the directory (/usr/src/linux-headers-2.6.35) and only contains the usr directory.

I have executed the make to compile a software (dahdi) and it reports me that the sources haven't installed.

Does anybody can tell me what I am doing bad and what can I do to solve that?

How and where I need install the sources and the headers to compile this software or anyother?


Best regards,

Ramses
Logged
klingon
Newbie
*
Posts: 41


« Reply #1 on: August 10, 2010, 07:10:45 AM »

Try this :

The following are symlinks.  If they exist and has a red arrow (if you're using WinSCP) or its a dead link, delete them.
>> rm /lib/modules/`uname -r`/build
>> rm /lib/modules/`uname -r`/source

Now relink them to your new kernel.
>> ln -s /usr/src/linux-2.6.35 /lib/modules/`uname -r`/build
>> ln -s /usr/src/linux-2.6.35 /lib/modules/`uname -r`/source

>> make modules_prepare
« Last Edit: August 11, 2010, 10:30:49 AM by klingon » Logged
real goose
Newbie
*
Posts: 7


« Reply #2 on: September 08, 2010, 02:34:40 PM »

When I first compiled DAHDI, I got the error about kernel source required even though I did have source installed as klingon suggests.  The way I found to keep the compiler happy was:
apt-get install linux-headers-`uname -r`
Then when ever the kernel is upgraded via an apt-get upgrade, Debian will keep the source synced. 
Logged
PlugPBX Admin
Administrator
Sr. Member
*****
Posts: 426



« Reply #3 on: September 08, 2010, 05:30:25 PM »

Debian, it kicks total A$$
Logged

-Greg
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Install SimpleMachinesForum web hosting Valid XHTML 1.0! Valid CSS!