[SOLVED] Asterisk Missing Dependencies

This forum is for discussion about general software issues.

[SOLVED] Asterisk Missing Dependencies

Postby calzon65 » Mon Jun 09, 2014 11:43 pm

I'm experimenting with Asterisk 12.3.0 on a BeagleBone Black and downloading from the AUR. I made a new/clean install of Alarm and installed Asterisk with pacman -Sy asterisk, but when I tried to launch asterisk, I got the following error message:

$this->bbcode_second_pass_code('', '
asterisk: error while loading shared libraries: libxslt.so.1: cannot open shared object file: No such file or directory')
Maybe I used the wrong flags to originally download/install Asterisk, if so please let me know, but to clear the error message I simply ran pacman -Sy libxslt. So I wanted to report this to the devs incase this library should have been "packaged" with the Asterisk download.

Edit: As help to others, the following is what I had to load to get Asterisk 12.3.0 to run on my BeagleBone Black with Alarm (3.8.13-25-ARCH). There may be other support libraries/modules necessary, but for now I have a basic configuration working making on-net calls (not to the PSTN)

pacman -Sy asterisk
pacman -Sy libxslt
pacman –Sy pjproject
Last edited by calzon65 on Fri Jul 18, 2014 11:02 pm, edited 3 times in total.
calzon65
 
Posts: 80
Joined: Wed May 25, 2011 9:06 pm

Re: Asterisk Missing Library

Postby WarheadsSE » Tue Jun 10, 2014 11:52 am

Sounds like a dependency missing from the package itself. Asterisk is one of those packages we pre-compile from the AUR, since the 'aur' repo you see is not the whole AUR.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Asterisk Missing Library

Postby calzon65 » Tue Jun 10, 2014 1:41 pm

I went ahead and posted a note to the Asterisk entry in the AUR suggesting that libxslt and pjproject be added. From what I have read on the Asterisk website and other searching, it appears the current Asterisk version (12.X.X) requires these packages to run (e.g., they are mandatory). At the very least, if others here are installing the current version of Asterisk from the ARM AUR, they will know they need to load other packages.
calzon65
 
Posts: 80
Joined: Wed May 25, 2011 9:06 pm

Re: Asterisk Missing Library

Postby WarheadsSE » Tue Jun 10, 2014 3:02 pm

Agreed.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Asterisk Missing Library

Postby calzon65 » Sat Jul 05, 2014 5:55 am

I spent most of the day learning the basics of makepkg, so I'm new to PKGBUILDs and did not know the proper procedure for making changes in the archlinuxarm github for AUR packages, and I did not want to change anything, assuming I even could make changes.

I managed to download the latest package of asterisk from the AUR and successfully created a new asterisk package based on the current version of Asterisk 12.3.2 for my BeagleBone Black. The version of asterisk in the ARM github is 12.3.0

In my asterisk PKGBUILD I solved the problem of the missing libxslt and pjproject mentioned at the beginning of this post and which are required for runtime. Here are the pertinent lines from my PKGBUILD. I was afraid to attempt to make changes to anything in github for fear of screwing something up.

$this->bbcode_second_pass_code('', 'pkgver=12.3.2
pkgrel=2
depends=('alsa-lib' 'speex' 'popt' 'libvorbis' 'curl' 'libxml2' 'jansson' 'libxslt' 'pjproject')')
calzon65
 
Posts: 80
Joined: Wed May 25, 2011 9:06 pm

Re: Asterisk Missing Library

Postby moonman » Sat Jul 05, 2014 10:02 am

You can make changes and then submit a pull request. If something is wrong we will not merge it so you don't have to worry about it. You can't directly modify our repository.
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: Asterisk Missing Library

Postby calzon65 » Sat Jul 05, 2014 6:26 pm

Thanks moonman, I'd like to "give back" a little to the Alarm effort and figure making small improvements like this is one way to contribute. I will work on that today.

Edit: "the README" link on the ArchLinux ARM Developers-Contributing page in the second paragraph of the Requesting Changes to our PKGBUILDs or Submitting New PKGBUILDs section does not work.
calzon65
 
Posts: 80
Joined: Wed May 25, 2011 9:06 pm

Re: Asterisk Missing Library

Postby calzon65 » Fri Jul 18, 2014 10:38 pm

For those who wish to install Asterisk on their ARM system, pacman -Sy asterisk now installs the minimum dependencies to get you up and running. I will continue to make comments/posts about Asterisk-12 in my combined Asterisk-12 / FreePBX-12 post listed in the link below. For now I marked this post [SOLVED].

viewtopic.php?f=57&t=7480
calzon65
 
Posts: 80
Joined: Wed May 25, 2011 9:06 pm


Return to General

Who is online

Users browsing this forum: No registered users and 39 guests