<html>
<head>
    <base href="https://wiki.asterisk.org/wiki">
            <link rel="stylesheet" href="/wiki/s/2042/1/7/_/styles/combined.css?spaceKey=AST&amp;forWysiwyg=true" type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+Packages?focusedCommentId=13076119#comment-13076119">Asterisk Packages</a></h2>
        <h4>Page
        <b>comment added</b> by              <a href="https://wiki.asterisk.org/wiki/display/~wilson">Wilson Chu</a>
    </h4>
    <br/>
    <div class="notificationGreySide">
       <p>I installed it to Amazon EC2 with Ubuntu 10.04 LTS server AMI.  Asterisk-1.8 was installed fine, but asterisk-dahdi failed with:<br/>
{{Setting up dahdi-dkms (1:2.2.1+dfsg-1ubuntu2) ...<br/>
Loading new dahdi-2.2.1+dfsg-1ubuntu2 DKMS files...<br/>
First Installation: checking all kernels...<br/>
Building only for 2.6.32-312-ec2<br/>
Building for architecture i686<br/>
Module build for the currently running kernel was skipped since the<br/>
kernel source for this kernel does not seem to be installed.}}</p>

<p>The fix was to get the correct linux-headers for the current kernel first:<br/>
{{sudo apt-get remove asterisk-dahdi<br/>
sudo apt-get remove dahdi-dkms<br/>
sudo apt-get install linux-headers-`uname -r`<br/>
sudo apt-get install dahdi-dkms<br/>
sudo apt-get install asterisk-dahdi}}<br/>
It took a while to build the module.</p>
    </div>

        
    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href="https://wiki.asterisk.org/wiki/users/viewnotifications.action" class="grey">Change Notification Preferences</a>
       </div>
       <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+Packages?focusedCommentId=13076119#comment-13076119">View Online</a>
              |
       <a id="reply-13076119" href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+Packages?replyToComment=13076119#comment-13076119">Reply To This</a>
           </div>

</div>
</div>
</div>
</div>
</body>
</html>