We have got 3 Digium 24port FXO cards(SERIAL NUMBERS REDACTED BY COMMUNITY MODERATOR) installed on a HP DL380 Gen9 Server. Also I have successfully installed the following on this server:
I am using the user root to install this application.
After successfully compiling the above products from the source I restarted server and issued the following commands to ensure the service are all started up properly:
service asterisk stop - OK
service dahdi stop - OK
service dahdi start - OK
service asterisk start - Failed with the following message âStarting asterisk (via systemctl): Job for asterisk.service failed because a timeout was exceeded. See âsystemctl status asterisk.serviceâ and âjournalctl -xeâ for details.â
And when I try to start the Asterisk -c the output is as follows:
[root@sclils1 ~]# asterisk -c
asterisk: error while loading shared libraries: libasteriskssl.so.1: cannot open shared object file: No such file or directory
Check if libasteriskssl.so.1 is in either /usr/lib or /usr/lib64
Are you running 32-bit or 64-bit?
when you ran ./configure in the asterisk source tree, did you pass a --prefix or --libdir option?
No problem. On CentOS 64 bit installs, itâs always best to use ./configure --prefix=/usr --libdir=/usr/lib64 ...
to make sure that the libraries get installed in the correct place.
I am having same problem with libasteriskssl.so.1 not starting up with Ubuntu 14.04 ; what --prefix=? and --libdir=? should I use ?
I am using a IBM POWER8 server running Ubuntu 14.04 and Asterisk 14
I did the following
./configure --prefix=/usr --libdir=/usr/lib
make && make install
root@sys-88932:/usr/local/src/asterisk-14.6.0# /etc/init.d/asterisk status
asterisk is not running
root@sys-88932:/usr/local/src/asterisk-14.6.0# /etc/init.d/asterisk start
Starting Asterisk PBX: asterisk /usr/sbin/asterisk: error while loading shared libraries: libasteriskssl.so.1: cannot open shared object file: No such file or directory
There is no /usr/lib64 directory in my Ubuntu system.
Hope you could help
Thanks
I tried to put both prefix=/usr/local and --libdir=/usr/local
My asterisk source is in /usr/local/src/asterisk-14.6.0 and prproject in /usr/local/src/asterisk-14.6.0/pjproject
and below are my recompile of both pjproject and asterisk
371 export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
372 cd pjproject
373 ls
374 cd /usr/local/lib/pkconfig
375 cd /usr/local/lib/
376 ls
377 cd pkconfig
378 cd pkgconfig
root@sys-88932:/usr/local/lib/pkgconfig# ls
libpjproject.pc
379 ls
380*
381 cd /usr/local/src
382 ls
root@sys-88932:/usr/local/src# ls
asterisk-14.6.0 asterisk-14-current.tar.gz
383 cd asterisk-14.6.0
384
385 ls
386 cd pjproject
387 ls
root@sys-88932:/usr/local/src/asterisk-14.6.0# ls
addons CHANGES COPYING Makefile.moddir_rules README UPGRADE-10.txt
agi channels CREDITS Makefile.rules README-addons.txt UPGRADE-11.txt âŚ
388 make uninstall
389 # ./configure --prefix=/usr/local --enable-shared --disable-sound --disable-resample --disable-video --disable-opencore-amr CFLAGS=â-O2 -DNDEBUG
390 ls
391 make dep
392 make
393 make install
394 ldconfig
395 ldconfig -p | grep pj <â
396 ./configure --prefix=/usr/local --enable-shared --disable-sound --disable-resample --disable-video --disable-opencore-amr CFLAGS=â-O2 -DNDEBUGâ
397 make dep
398 make
399 make install
400 loconfig
401 ldconfig
402 ldconfig -r | grep pj
403 ldconfig -p | grep pj
404 cd âŚ
405 echo $PKG_CONFIG_PATH
406 tail config.log
407 mv config.log config.log.old
408 configure --prefix=/usr/local --with-pjproject=/usr/local --libdir=/usr/local
409 ./configure --prefix=/usr/local --with-pjproject=/usr/local --libdir=/usr/local
410 ldconfig
411 make menuselect
412 make
413 make install
414 make samples
415 make config
416 mv /etc/init.d/asterisk /etc/init.d/asterisk.old
417 make config
418* ls -l
419 ls -l /etc/init.d/asterisk
420 make install logrotate
421 /etc/init.d/asterisk status
422 /etc/init.d/asterisk start
423 find /usr/local -name libxslt.so.1 -print
root@sys-88932:/usr/local/src/asterisk-14.6.0# ldconfig -p
604 libs found in cache `/etc/ld.so.cacheâ
libz.so.1 (libc6,64bit) => /lib/powerpc64le-linux-gnu/libz.so.1 libz.so (libc6,64bit) => /usr/lib/powerpc64le-linux-gnu/libz.so
libyaml-0.so.2 (libc6,64bit) => /usr/lib/powerpc64le-linux-gnu/libyaml-0.so.2
libxtables.so.10 (libc6,64bit) => /lib/libxtables.so.10
libxslt.so.1 (libc6,64bit) => /usr/lib/powerpc64le-linux-gnu/libxslt.so.1 <-- This is the file exist but not found by
asterisk startup !!!
root@sys-88932:/usr/local/src/asterisk-14.6.0# /etc/init.d/asterisk status
asterisk is not running
root@sys-88932:/usr/local/src/asterisk-14.6.0# /etc/init.d/asterisk start
Starting Asterisk PBX: asterisk /usr/local/sbin/asterisk: error while loading shared libraries: libxslt.so.1: cannot open shared object file: No such file or directory
Do an ldd /usr/local/sbin/asterisk and paste the results.
Try running ./configure --without-libxslt --disable-xmldoc ... and see how far you get.
In your case, --libdir should probably be --libdir=/usr/local/lib but I donât think thatâs your issue right now.
Also, you should always use the bundled version of pjproject (--with-pjproject-bundled) rather than an external one. Again, I donât think this is related to your issue but just for future reference.
170 ./configure --libdir=/usr/local/lib --prefix=/usr/local
171 make
172 make install
173 ./configure
174 make menuselect
175 make
176 make install
177 make samples
178 make config
179 make install-logrotate
root@sys-88982:/usr/local/src/asterisk-14.6.0# make config
System start/stop links for /etc/init.d/asterisk already exist.
root@sys-88982:/usr/local/src/asterisk-14.6.0# make install-logrotate
if [ ! -d â/etc/asterisk/âŚ/logrotate.dâ ]; then
/usr/bin/install -c -d â/etc/asterisk/âŚ/logrotate.dâ ;
fi
sed âs#LOGDIR#/var/log/asterisk#gâ < contrib/scripts/asterisk.logrotate | sed âs#SBINDIR#/usr/sbin#gâ > contrib/scripts/asterisk.logrotate.tmp
/usr/bin/install -c -m 0644 contrib/scripts/asterisk.logrotate.tmp "/etc/asterisk/âŚ/logrotate.d/asterisk"
rm -f contrib/scripts/asterisk.logrotate.tmp
Now another library is no working instead of libxslt :
root@sys-88901:/usr/local/src/asterisk14# /etc/init.d/asterisk start
[âŚ] Starting asterisk (via systemctl): asterisk.serviceJob for asterisk.service failed because the control process exited with error code. See âsystemctl status asterisk.serviceâ and âjournalctl -xeâ for details.
failed!
root@sys-88901:/usr/local/src/asterisk14# /etc/init.d/asterisk status
â asterisk.service - LSB: Asterisk PBX
Loaded: loaded (/etc/init.d/asterisk; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2017-09-03 14:24:26 EDT; 16s ago
Docs: man:systemd-sysv-generator(8)
Process: 10670 ExecStart=/etc/init.d/asterisk start (code=exited, status=127)
Sep 03 14:24:26 sys-88901 systemd[1]: Starting LSB: Asterisk PBXâŚ
Sep 03 14:24:26 sys-88901 asterisk[10670]: * Starting Asterisk PBX: asterisk
Sep 03 14:24:26 sys-88901 asterisk[10670]: /usr/local/sbin/asterisk: error while loading shared libraries: libjansson.so.4: cannot open shared object âŚdirectory
Sep 03 14:24:26 sys-88901 systemd[1]: asterisk.service: Control process exited, code=exited status=127
Sep 03 14:24:26 sys-88901 systemd[1]: Failed to start LSB: Asterisk PBX.
Sep 03 14:24:26 sys-88901 systemd[1]: asterisk.service: Unit entered failed state.
Sep 03 14:24:26 sys-88901 systemd[1]: asterisk.service: Failed with result âexit-codeâ.
Hint: Some lines were ellipsized, use -l to show in full.
I then tried to check using ldd :
root@sys-88901:/usr/local/src/asterisk14# ldd /usr/local/sbin/asterisk
linux-vdso64.so.1 (0x00003fffa5ef0000)
libasteriskssl.so.1 => /usr/local/lib/libasteriskssl.so.1 (0x00003fffa5ec0000)
libasteriskpj.so.2 => /usr/local/lib/libasteriskpj.so.2 (0x00003fffa5ca0000)
libxml2.so.2 => /usr/lib/powerpc64le-linux-gnu/libxml2.so.2 (0x00003fffa5a80000)
libsqlite3.so.0 => /usr/lib/powerpc64le-linux-gnu/libsqlite3.so.0 (0x00003fffa5970000)
libssl.so.1.0.0 => /opt/at10.0/lib64/power8/libssl.so.1.0.0 (0x00003fffa58d0000)
libcrypto.so.1.0.0 => /opt/at10.0/lib64/power8/libcrypto.so.1.0.0 (0x00003fffa5680000)
libjansson.so.4 => not found
libuuid.so.1 => /lib/powerpc64le-linux-gnu/libuuid.so.1 (0x00003fffa5650000)
libcrypt.so.1 => /opt/at10.0/lib64/power8/libcrypt.so.1 (0x00003fffa5600000)
librt.so.1 => /opt/at10.0/lib64/power8/librt.so.1 (0x00003fffa55d0000)
libdl.so.2 => /opt/at10.0/lib64/power8/libdl.so.2 (0x00003fffa55a0000)
libpthread.so.0 => /opt/at10.0/lib64/power8/libpthread.so.0 (0x00003fffa5560000)
libtinfo.so.5 => /lib/powerpc64le-linux-gnu/libtinfo.so.5 (0x00003fffa5510000)
libresolv.so.2 => /opt/at10.0/lib64/power8/libresolv.so.2 (0x00003fffa54d0000)
libedit.so.2 => /usr/lib/powerpc64le-linux-gnu/libedit.so.2 (0x00003fffa5470000)
libbsd.so.0 => /lib/powerpc64le-linux-gnu/libbsd.so.0 (0x00003fffa5430000)
libstdc++.so.6 => /opt/at10.0/lib64/power8/libstdc++.so.6 (0x00003fffa5200000)
libm.so.6 => /opt/at10.0/lib64/power8/libm.so.6 (0x00003fffa5110000)
libc.so.6 => /opt/at10.0/lib64/power8/libc.so.6 (0x00003fffa4f20000)
libgcc_s.so.1 => /opt/at10.0/lib64/power8/libgcc_s.so.1 (0x00003fffa4ee0000)
libicuuc.so.55 => /usr/lib/powerpc64le-linux-gnu/libicuuc.so.55 (0x00003fffa4cc0000)
libz.so.1 => /opt/at10.0/lib64/power8/libz.so.1 (0x00003fffa4c80000)
liblzma.so.5 => /lib/powerpc64le-linux-gnu/liblzma.so.5 (0x00003fffa4c40000)
/opt/at10.0/lib64/ld64.so.2 (0x00003fffa5f10000)
libicudata.so.55 => /usr/lib/powerpc64le-linux-gnu/libicudata.so.55 (0x00003fffa3360000)
I check for the library libjansson.so.4
root@sys-88901:/usr/local/src/asterisk14# find /usr -name libjansson.so.4 -print
/usr/lib/powerpc64le-linux-gnu/libjansson.so.4