libsctp.so.1: cannot open shared object file: No such file or directory

4,758 views
Skip to first unread message

and.s....@gmail.com

unread,
Sep 26, 2013, 4:41:53 AM9/26/13
to mobicent...@googlegroups.com
I want to make a SCTP association and when start jboss have exception:

java.lang.UnsupportedOperationException: libsctp.so.1: cannot open shared object file: No such file or directory
at sun.nio.ch.SctpNet.socket0(Native Method)
at sun.nio.ch.SctpNet.socket(SctpNet.java:90)
at sun.nio.ch.SctpChannelImpl.<init>(SctpChannelImpl.java:131)
at com.sun.nio.sctp.SctpChannel.open(SctpChannel.java:165)
at org.mobicents.protocols.sctp.AssociationImpl.doInitiateConnectionSctp(AssociationImpl.java:775)
at org.mobicents.protocols.sctp.AssociationImpl.initiateConnection(AssociationImpl.java:745)
at org.mobicents.protocols.sctp.SelectorThread.run(SelectorThread.java:121)
at java.lang.Thread.run(Thread.java:724)

I investigated that I don't have a library libsctp.so in my LINUX.
So I downloaded and installed it by

After restarting jboss the problem still occur. Jboss still can not find libsctp.so.1

The link libsctp.so.1 and the library is on:
[root@localhost .libs]# pwd
/root/lksctp-tools/src/lib/.libs
[root@localhost .libs]# ll
total 112
-rw-r--r-- 1 root root  8148 Sep 26 08:59 addrs.o
-rw-r--r-- 1 root root  3988 Sep 26 08:59 bindx.o
-rw-r--r-- 1 root root  6956 Sep 26 08:59 connectx.o
-rw-r--r-- 1 root root 36320 Sep 26 08:59 libsctp.a
lrwxrwxrwx 1 root root    13 Sep 26 08:59 libsctp.la -> ../libsctp.la
-rw-r--r-- 1 root root   922 Sep 26 08:59 libsctp.lai
lrwxrwxrwx 1 root root    17 Sep 26 08:59 libsctp.so -> libsctp.so.1.0.15
lrwxrwxrwx 1 root root    17 Sep 26 08:59 libsctp.so.1 -> libsctp.so.1.0.15
-rwxr-xr-x 1 root root 23946 Sep 26 08:59 libsctp.so.1.0.15
-rw-r--r-- 1 root root  3300 Sep 26 08:59 opt_info.o
-rw-r--r-- 1 root root  3560 Sep 26 08:59 peeloff.o
-rw-r--r-- 1 root root  5852 Sep 26 08:59 recvmsg.o
-rw-r--r-- 1 root root  6052 Sep 26 08:59 sendmsg.o
drwxr-xr-x 2 root root  4096 Sep 26 11:58 temp

 
Executing command 
[root@localhost .libs]# locate libsctp.so.1
[root@localhost .libs]#
shows nothing.

Also if I execute:
[root@localhost .libs]# locate libsctp.so
/usr/java/jdk1.7.0_40/jre/lib/i386/libsctp.so
it shows me wrong location

How can configure jboss to find libsctp.so.1 ?





Amit Bhayani

unread,
Sep 26, 2013, 5:03:23 AM9/26/13
to mobicents-public
Which version of linux re you using?



--
You received this message because you are subscribed to the Google Groups "mobicents-public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobicents-publ...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

and.s....@gmail.com

unread,
Sep 26, 2013, 5:09:21 AM9/26/13
to mobicent...@googlegroups.com
I'm using CentOS 
[root@localhost .libs]# uname -a
Linux localhost.localdomain 2.6.32-358.2.1.el6.i686 #1 SMP Tue Mar 12 21:42:46 UTC 2013 i686 i686 i386 GNU/Linux

Vilius Panevėžys

unread,
Sep 26, 2013, 5:09:49 AM9/26/13
to mobicent...@googlegroups.com
Linker does not automagically discover shared libraries wherever you
drop them. You either have to configure additional locations or just
use the usual locations [1] for shared libraries as per FHS.

I would recommend using the standard package manager of your
distribution to get the lksctp package from the repository, instead of
doing that manually. The shared libraries would be placed in the correct
locations automatically. Alternatively, you can create symlinks of the
libraries in the standard location (e.g. /usr/local/lib).

You'll find plenty of resources on the net on how to use the package
manager (apt/yum/pacman/portage/etc.), whichever of the mainstream
distributions you would be using.

On Thu, 26 Sep 2013 01:41:53 -0700 (PDT)
and.s....@gmail.com wrote:

> Executing command
> [root@localhost .libs]# locate libsctp.so.1
> [root@localhost .libs]#
> shows nothing.

locate operates on an index, which is refreshed periodically. New files
will not be found until the index is refreshed.


[1]
http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html#AEN62


--
Vilius Panevėžys
Elitnet

Vilius Panevėžys

unread,
Sep 26, 2013, 5:11:30 AM9/26/13
to mobicent...@googlegroups.com
On Thu, 26 Sep 2013 02:09:21 -0700 (PDT)
and.s....@gmail.com wrote:

> I'm using CentOS

In which case

# yum install lksctp-tools

should do it.


--
Vilius Panevėžys
Elitnet

and.s....@gmail.com

unread,
Sep 26, 2013, 6:22:22 AM9/26/13
to mobicent...@googlegroups.com
Thanks a lot. it helped

четверг, 26 сентября 2013 г., 12:41:53 UTC+4 пользователь and.s....@gmail.com написал:
Reply all
Reply to author
Forward
0 new messages