ejabberd - Comments for "ejabberd-2.0.0 otp_src_R11B-5 crypto_drv Solaris 10 crypto:start() problem understanding" https://www.ejabberd.im/node/2995 en Yes, it is the same erlang installation https://www.ejabberd.im/node/2995#comment-52272 <p>It was probably not very clear explained. The erlang is installed only once.</p> <p>Case (1) I'm starting erl directly and can't load<br /> Case (2) I'm starting erl with ejabberd through a ejabberdctl live and the library is not loaded automatically, same error<br /> Case (3) the ejabberd is started as you see from case (2), then I try crypto:start(). from this live session and it suddenly works!</p> <p>I know, there is a workaround: recompile the crypto_drv.so. The references are to Linux mainly with 64bit, but in my case, it's not a Linux and I have no problem with 64/32bit libraries. But in spite of everything, this workaround is working for me too:</p> <div class="codeblock"><code>/usr/sfw/bin/gcc -shared -o ../priv/lib/sparc-sun-solaris2.10/crypto_drv.so ../priv/obj/sparc-sun-solaris2.10/crypto_drv.o /usr/sfw/lib/libcrypto.so</code></div> <p>and this library can be loaded in case (1) and (2) now. I think, it's more generic as Solaris specific error. And I only try to understand *WHY* (3) working? :-)</p> <p>CY,<br /> Vladi</p> <p>P.S. It's probably not a very bad idea to reference to this "behavior" in the README...</p> Mon, 28 Apr 2008 09:31:26 +0000 vuralsky comment 52272 at https://www.ejabberd.im Is it really the same Erlang installation in all cases? https://www.ejabberd.im/node/2995#comment-52260 <p>In case 1 you start erlang directly: /opt/xmpp/bin/erl</p> <p>In case 2 you start erlang with a system script? /sbin/ejabberdctl live<br /> You should check what 'erl' is started by that script. I guess the same that 1)</p> <p>In case 3 you don't tell how you started erlang. And what erlang system is used in that case.</p> <p>Do you have only 1 Erlang system installed in the machine?</p> <p>How did you install that ejabberd that succeeds in case 3: from source code or with some binary installer?</p> Thu, 24 Apr 2008 22:33:45 +0000 mfoss comment 52260 at https://www.ejabberd.im