Hello all and mtia.
I decided to test out a few new items within Asterisk 1.4.18 (Swift,Flite). So I set up a test box, pretty much a vanilla CentOS 5.1(a few various updates). Asterisk also is pretty much vanilla except tha addons package.
After installing Swift and Flite I needed to update /etc/ld.so.conf, I did
Code:
$ cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
include /usr/local/lib
include /opt/swift/lib
I ran ldconfig. I try and load the module within Asterisk and it says cannot find items.
Code:
CLI>]load app_swift.so
[Mar 12 09:16:45] WARNING[10297]: loader.c:363 load_dynamic_module: Error loading module 'app_swift.so': libswift.so.4: cannot open shared object file: No such file or directory
[Mar 12 09:16:45] WARNING[10297]: loader.c:649 load_resource: Module 'app_swift.so' could not be loaded.
Code:
ls -Al /usr/lib/asterisk/modules/app_swift.so
-rwxr-xr-x 1 root root 34721 Mar 11 22:08 /usr/lib/asterisk/modules/app_swift.so
Code:
ls -Al /usr/local/lib/
total 13436
lrwxrwxrwx 1 root root 20 Mar 11 14:17 libflite_cmulex.so -> libflite_cmulex.so.1
lrwxrwxrwx 1 root root 22 Mar 11 14:17 libflite_cmulex.so.1 -> libflite_cmulex.so.1.3
-rwxr-xr-x 1 root root 610941 Mar 11 14:15 libflite_cmulex.so.1.3
lrwxrwxrwx 1 root root 26 Mar 11 14:17 libflite_cmu_time_awb.so -> libflite_cmu_time_awb.so.1
lrwxrwxrwx 1 root root 28 Mar 11 14:17 libflite_cmu_time_awb.so.1 -> libflite_cmu_time_awb.so.1.3
-rwxr-xr-x 1 root root 6800530 Mar 11 14:15 libflite_cmu_time_awb.so.1.3
lrwxrwxrwx 1 root root 26 Mar 11 14:17 libflite_cmu_us_kal16.so -> libflite_cmu_us_kal16.so.1
lrwxrwxrwx 1 root root 28 Mar 11 14:17 libflite_cmu_us_kal16.so.1 -> libflite_cmu_us_kal16.so.1.3
-rwxr-xr-x 1 root root 3714816 Mar 11 14:15 libflite_cmu_us_kal16.so.1.3
lrwxrwxrwx 1 root root 24 Mar 11 14:17 libflite_cmu_us_kal.so -> libflite_cmu_us_kal.so.1
lrwxrwxrwx 1 root root 26 Mar 11 14:17 libflite_cmu_us_kal.so.1 -> libflite_cmu_us_kal.so.1.3
-rwxr-xr-x 1 root root 1987454 Mar 11 14:15 libflite_cmu_us_kal.so.1.3
lrwxrwxrwx 1 root root 13 Mar 11 14:17 libflite.so -> libflite.so.1
lrwxrwxrwx 1 root root 15 Mar 11 14:17 libflite.so.1 -> libflite.so.1.3
-rwxr-xr-x 1 root root 390081 Mar 11 14:15 libflite.so.1.3
lrwxrwxrwx 1 root root 23 Mar 11 14:17 libflite_usenglish.so -> libflite_usenglish.so.1
lrwxrwxrwx 1 root root 25 Mar 11 14:17 libflite_usenglish.so.1 -> libflite_usenglish.so.1.3
-rwxr-xr-x 1 root root 206932 Mar 11 14:15 libflite_usenglish.so.1.3
The Asterisk process is running as root.
Code:
ps aux | grep asterisk
root 10253 0.0 0.0 4496 536 pts/0 S 09:16 0:00 /bin/bash /usr/sbin/safe_asterisk
root 10259 0.2 0.4 24636 8164 pts/0 Sl 09:16 0:00 /usr/sbin/asterisk -f -vvvg -c
Not sure if below is cool or not as Asterisk may provide some of this itself.
Code:
ldd /usr/lib/asterisk/modules/app_swift.so
linux-gate.so.1 => (0x001bc000)
libswift.so.4 => not found
libm.so.6 => /lib/libm.so.6 (0x005cd000)
libceplang_en.so.4 => not found
libceplex_us.so.4 => not found
libc.so.6 => /lib/libc.so.6 (0x001bd000)
/lib/ld-linux.so.2 (0x009db000)
So I guess my question is, how can I get Asterisk to properly find my libraries? Kinda stumped here.
mtia and will gladly provide more info if asked.