Hello, I'm trying to compile DAHDI on DEBIAN but i have the following error: root at Sangoma-Testing:/usr/src/dahdi-linux-2.1.0.4# make echo "You do not appear to have the sources for the 2.6.26-2-amd64 kernel installed." You do not appear to have the sources for the 2.6.26-2-amd64 kernel installed. exit 1 make: *** [modules] Error 1 What should i do? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100927/b3a84797/attachment.htm
Source files aren't automatically installed on every install. This link should help: http://www.cyberciti.biz/faq/howto-install-kernel-headers-package/ Dean Hoover Milwaukee, Wisconsin On 9/27/2010 11:09 AM, Danny Dias wrote:> Hello, > > I'm trying to compile DAHDI on DEBIAN but i have the following error: > > root at Sangoma-Testing:/usr/src/dahdi-linux-2.1.0.4# make > echo "You do not appear to have the sources for the 2.6.26-2-amd64 > kernel installed." > You do not appear to have the sources for the 2.6.26-2-amd64 kernel > installed. > exit 1 > make: *** [modules] Error 1 > > What should i do? > > Thanks! >
On Mon, Sep 27, 2010 at 06:09:15PM +0200, Danny Dias wrote:> root at Sangoma-Testing:/usr/src/dahdi-linux-2.1.0.4# make > echo "You do not appear to have the sources for the 2.6.26-2-amd64 kernel > installed." > You do not appear to have the sources for the 2.6.26-2-amd64 kernel > installed. > exit 1 > make: *** [modules] Error 1 > > What should i do?The easiest way would be to use module-assistant # aptitude install module-assistant # module-assistant prepare This checks which kernel you are running and install the right packages, eg: module-assistant prepare Getting source for kernel version: 2.6.26-2-vserver-amd64 apt-get install linux-headers-2.6.26-2-vserver-amd64 Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: linux-headers-2.6.26-2-common-vserver linux-kbuild-2.6.26 The following NEW packages will be installed: linux-headers-2.6.26-2-common-vserver linux-headers-2.6.26-2-vserver-amd64 linux-kbuild-2.6.26 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 4366kB of archives. After this operation, 35.8MB of additional disk space will be used. Do you want to continue [Y/n]? -- Daniel Tryba
Roger Burton West
2010-Sep-27 16:26 UTC
[asterisk-users] Problems compiling Asterisk on Debian
On Mon, Sep 27, 2010 at 06:09:15PM +0200, Danny Dias wrote:>What should i do?aptitude install module-assistant m-a a-i dahdi
Done my friend: root at Sangoma-Testing:/lib/modules/2.6.26-2-amd64/kernel/drivers# module-assistant prepare Getting source for kernel version: 2.6.26-2-amd64 apt-get install linux-headers-2.6.26-2-amd64 Reading package lists... Done Building dependency tree Reading state information... Done linux-headers-2.6.26-2-amd64 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Creating symlink... apt-get install build-essential Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Done! root at Sangoma-Testing:/lib/modules/2.6.26-2-amd64/kernel/drivers# cd /usr/src/dahdi-linux-2.1.0.4/ root at Sangoma-Testing:/usr/src/dahdi-linux-2.1.0.4# make echo "You do not appear to have the sources for the 2.6.26-2-amd64 kernel installed." You do not appear to have the sources for the 2.6.26-2-amd64 kernel installed. exit 1 make: *** [modules] Error 1 The same result :( 2010/9/27 Daniel Tryba <daniel at tryba.nl>> On Mon, Sep 27, 2010 at 06:09:15PM +0200, Danny Dias wrote: > > root at Sangoma-Testing:/usr/src/dahdi-linux-2.1.0.4# make > > echo "You do not appear to have the sources for the 2.6.26-2-amd64 kernel > > installed." > > You do not appear to have the sources for the 2.6.26-2-amd64 kernel > > installed. > > exit 1 > > make: *** [modules] Error 1 > > > > What should i do? > > The easiest way would be to use module-assistant > # aptitude install module-assistant > # module-assistant prepare > > This checks which kernel you are running and install the right packages, > eg: > module-assistant prepare > Getting source for kernel version: 2.6.26-2-vserver-amd64 > apt-get install linux-headers-2.6.26-2-vserver-amd64 > Reading package lists... Done > Building dependency tree > Reading state information... Done > The following extra packages will be installed: > linux-headers-2.6.26-2-common-vserver linux-kbuild-2.6.26 > The following NEW packages will be installed: > linux-headers-2.6.26-2-common-vserver > linux-headers-2.6.26-2-vserver-amd64 > linux-kbuild-2.6.26 > 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. > Need to get 4366kB of archives. > After this operation, 35.8MB of additional disk space will be > used. > Do you want to continue [Y/n]? > > -- > > Daniel Tryba > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100927/2116e10e/attachment.htm
?ahhh? 2010/9/27 Roger Burton West <roger at firedrake.org>> On Mon, Sep 27, 2010 at 06:09:15PM +0200, Danny Dias wrote: > > >What should i do? > > aptitude install module-assistant > m-a a-i dahdi > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100927/afd35e31/attachment.htm
On Mon, Sep 27, 2010 at 06:28:04PM +0200, Danny Dias wrote:> You do not appear to have the sources for the 2.6.26-2-amd64 kernel > installed. > exit 1 > make: *** [modules] Error 1 > > > The same result :(Where did you get the dahdi source? There is no "official" 2.1.0.4 in any debian version. If you are running stable you should either use the backports version: http://packages.debian.org/lenny-backports/dahdi Or make your own package from testing/unstable sources. -- Daniel Tryba
Paul Belanger
2010-Sep-27 16:43 UTC
[asterisk-users] Problems compiling Asterisk on Debian
On Mon, Sep 27, 2010 at 12:09 PM, Danny Dias <ing.diasdanny at gmail.com> wrote:> What should i do? >Try with the lastest DAHDI version, 2.4.0. -- Paul Belanger | dCAP Polybeacon | Consultant Jabber: paul.belanger at polybeacon.com | IRC: pabelanger (Freenode) blog.polybeacon.com
root at Sangoma-Testing:/home# cat /lib/modules/2.6.26-2-amd64/build/.config cat: /lib/modules/2.6.26-2-amd64/build/.config: No such file or directory root at Sangoma-Testing:/home# cat /usr/src/linux/.config cat: /usr/src/linux/.config: No such file or directory root at Sangoma-Testing:/home# uname -a Linux Sangoma-Testing 2.6.26-2-amd64 #1 SMP Thu Sep 16 15:56:38 UTC 2010 x86_64 GNU/Linux root at Sangoma-Testing:/home# uname -r 2.6.26-2-amd64 2010/9/28 Paul Belanger <paul.belanger at polybeacon.com>> On Mon, Sep 27, 2010 at 6:57 PM, Danny Dias <ing.diasdanny at gmail.com> > wrote: > > root at Sangoma-Testing:/home# ls -la /lib/modules/ > > total 12 > > drwxr-xr-x 3 root root 4096 2010-09-24 10:21 . > > drwxr-xr-x 13 root root 4096 2010-09-27 12:57 .. > > drwxr-xr-x 4 root root 4096 2010-09-27 09:06 2.6.26-2-amd64 > > > $ cat /lib/modules/2.6.26-2-amd64/build/.config > > > root at Sangoma-Testing:/home# ls -la /usr/src/linux > > lrwxrwxrwx 1 root src 28 2010-09-27 12:26 /usr/src/linux -> > > > $ cat /usr/src/linux/.config > > -- > Paul Belanger | dCAP > Polybeacon | Consultant > Jabber: paul.belanger at polybeacon.com | IRC: pabelanger (Freenode) > blog.polybeacon.com > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100928/8277d2a8/attachment.htm