ArchLinux on RaspberryPi + Asterisk

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

ArchLinux on RaspberryPi + Asterisk

Postby rajjar » Sun Feb 23, 2014 1:41 pm

Hello All,

For the past two days i have been struggling to install Asterisk on Raspberry Pi. I tried to install Asterisk on Ubuntu and it worked. But now instead of using a computer and Ubuntu, i am using a Raspberry Pi and ArchLinux.

I have downloaded the Asterisk files and when i try to build "dahdi", I get the following error.

You do not appear to have the sources for the 3.10.30-2-ARCH kernel installed.

I am sure its an easy fix but i have not been able to find any answers on how to fix it. I am new to Linux and any pointers would be greatly appreciated.

Thanks
rajjar
 
Posts: 2
Joined: Sun Feb 23, 2014 1:31 pm

Re: ArchLinux on RaspberryPi + Asterisk

Postby pepedog » Sun Feb 23, 2014 4:04 pm

pacman -S linux-rasberrypi-headers
Are you saying pacman -S asterisk is no good?
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: ArchLinux on RaspberryPi + Asterisk

Postby sdjf » Sun Feb 23, 2014 6:56 pm

You say you are new to Linux, it sounds like you do not realize that Pacman is our package manager, and the first thing to do any time you want to install a package, is ask pacman to install it.

If you want to see if a package is already built for ArchLinux on the Pi in the official repositories, then use the following command:

pacman -Ss KEYWORD(S)

You can search for a package by name, or use keywords to get a list of packages that have specific keywords in their descriptions or in package names.
sdjf
 
Posts: 178
Joined: Wed May 08, 2013 1:55 pm

Re: ArchLinux on RaspberryPi + Asterisk

Postby rajjar » Mon Feb 24, 2014 1:11 am

the standard pacman -S asterisk is based on asterisk 12.x and its not a long term support release package. I am trying to use 11.x asterisk version which is supported till 2017 whereas 12.x is supported only till 2015.

That's the reason why i am trying to build it manually. If I can figure it out i will release a package based on 11.x so that others can use.

So now the question is how can i build a package from scratch? Right now I am getting this compile error:

You do not appear to have the sources for the 3.10.30-2-ARCH kernel installed.

How do i solve it ? I tried pacman -S linux-headers which in turn executed pacman -S linux-rasberrypi-headers but still it didnt fix the problem.
rajjar
 
Posts: 2
Joined: Sun Feb 23, 2014 1:31 pm

Re: ArchLinux on RaspberryPi + Asterisk

Postby moonman » Mon Feb 24, 2014 1:42 am

Did you reboot after kernel update? there must be asterisk lts in aur.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: ArchLinux on RaspberryPi + Asterisk

Postby Zarquon » Wed Feb 26, 2014 5:05 am

Ran into a similar problem:
after my last update (pacman -Syu) my wifi didn't work so did a reinstall of the dkms-8188eu kernel module (pacman -Sy dkms-8188eu)

This triggered a recompile of the module and I received a error saying /usr/lib/modules/3.10.30-2-ARCH/build/ did not exists. However /usr/lib/modules/3.10.32-1-ARCH/build/ did I duplicated the directory using the expected path and tried again and that solved my problem.
Zarquon
 
Posts: 1
Joined: Wed Feb 26, 2014 4:48 am

Re: ArchLinux on RaspberryPi + Asterisk

Postby moonman » Wed Feb 26, 2014 7:00 am

You did update but you didn't reboot to bootup with the new kernel. I am gonna start counting how many times i've said this :lol:
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 49 guests