chan_dahdi.so failing to load - missing libopenr2.so.1

I did a yum update and freepbx module upgrades, and now chan_dahdi.so is failing to load (missing libopenr2.so.1).

FreePPB 1.1009.210.62 i386

ldd /usr/lib/asterisk/modules/chan_dahdi.so

    linux-gate.so.1 =>  (0x007fa000)
    libtonezone.so.2.0 => /usr/lib/libtonezone.so.2.0 (0x0035e000)
    libpri.so.1.4 => /usr/lib/libpri.so.1.4 (0x006aa000)
    libss7.so.1 => /usr/lib/libss7.so.1 (0x007d8000)
    libopenr2.so.1 => not found
    libpthread.so.0 => /lib/libpthread.so.0 (0x00623000)
    libc.so.6 => /lib/libc.so.6 (0x00a85000)
    libm.so.6 => /lib/libm.so.6 (0x00dc3000)
    /lib/ld-linux.so.2 (0x00498000)

It seems that libopenr2 was updated:

ls -la libopenr2.so*

lrwxrwxrwx 1 root root 18 Nov 29 14:22 libopenr2.so -> libopenr2.so.3.1.1
lrwxrwxrwx 1 root root 18 Nov 29 14:22 libopenr2.so.3 -> libopenr2.so.3.1.1
-rwxr-xr-x 1 root root 96468 Oct 31 10:09 libopenr2.so.3.1.1

I ran:

ln -s /usr/lib/libopenr2.so /usr/lib/libopenr2.so.1

to create a symlink, and now the module loads okay and everything seems to be working.

Please upgrade to latest release for that track. See http://www.freepbx.org/forum/freepbx-distro/distro-discussion-help/freepbx-distro-1-10xx-210-62-releases-stable-releases

Is there a single script that I can run that downloads these and does them each in order?

Also, is it then recommended not to upgrade directly via yum and to prefer the script upgrade path?

After running the upgrade scripts, everything works as expected.

hi,
ln -s /usr/lib/libopenr2.so /usr/lib/libopenr2.so.1
fixed the problem for me too!
thanks
IN

@ineagu - Thanks a lot for the suggestion. I was thinking of trying that, but also had other ideas, and may not have come back to it (especially being 12:47am now :slight_smile:

But creating the softlink as you stated did work. This was especially important for me, as I just transformed an Elastix 1.6 box into a more modern box (which I don’t recommend for anybody to try unless you want to easily spend 6-8 hours piecing together a process that was never really intended and for which there isn’t much clear assistance online). But now I’m pulling my centos updates straight from centos, asterisk & dahdi updates straight from digium/asterisk, and freepbx straight from freepbx.

Due to the nature of my crazy approach, using the scripts mentioned above wasn’t an option for me.

Thanks.