Which module loads the requested library? - ssh

I'm using a remote machine from the terminal (ssh protocol). I don't have sudo powers on that.
I need to run a software that complains about a missing library:
error while loading shared libraries: libmpi_usempif08.so.40: cannot open shared object file: No such file or directory
I know that this library is loaded by some module, like:
module load ABC
but I don't know what's the right module.
How do I discover which module I should load in order to have a specific library?
Thank you!

Related

No detect the external library (Phpoffice) in yii2

Two computers are working on the SAME repository but first computer detect the library and work well but second computer not detect it and show "Error 'PhpOffice\Phpspreadsheet\Reader\Xlsx' not found".
In vendor, the library also exist.
composer.json and composer.lock also the same on both computer.
One thing is that by git ignore, I use yii's composer mechanism at 1st computer but at sec computer(err computer), I add library manually.
If you want to use a composer package, you absolutely need to install it using composer. This ensures that the autoloader is generated properly and your class can be found through PHP.
Copying library files into vendor directory is not enough to install it. During installation Composer creates autoload script with information how to find all classes installed by Composer. If you just copy library files, Composer will not even know that it exist and will not able load any class from it.
If you cannot use Composer on server/computer A, you should install all dependencies on different computer (B) and copy the entire vendor directory into server/computer A. Autoload definitions are in vendor so it should work if you copy the whole dorectory.

How to add a new module to existing Kamailio Server?

I am using a Kamailio 4.4 server. And I would like to install http_async_client module to this server. I have looked on the module directory(/usr/local/lib64/kamailio/modules) to check wheather this http_async _client module already exist there, but it was not there.
And I searched for a solution and only found the method to include new module at the compile time.
I could find the modules source code on GitHub. But I don't know the steps to install a new module to the existing Kamailio.
Update: I have tried with running the two commands below from directory /usr/local/src/kamailio-4.4/kamailio. but got the following error
make modules-cfg include_modules="http_async_client"
make modules
Errors are:
CC (gcc) [M http_async_client.so] async_http.o
async_http.c:42:26: fatal error: event2/event.h: No such file or directory
compilation terminated.
../../Makefile.rules:97: recipe for target 'async_http.o' failed
make[1]: *** [async_http.o] Error 1
Makefile:511: recipe for target 'modules' failed
make: *** [modules] Error 1
Steps to load new module to Kamailio server. ( It may not be a direct way to do, but it works)
Check the modules is exist in the default module directly /usr/local/lib64/kamailio/modules.
If found, add loadmodule "module_name.so" in load module section in kamailio.cfg file.
If the module is not found in default module directory, you can check for the source code of that module in the default module source code directory /usr/local/src/kamailio-4.4/kamailio/modules.
If source code found, enter to the module directory. Then create modules' shared object file(.so) by following commands.
./configure
make
make test
make install
Then you will get a shared object file(.so). Copy that file into the default module directory. and load this module from the kamailio.cfg file as mentioned in step 1.
If module source code does not exist in the default source code directory, You need to download the source code from the web. And follow step 3 and 4.

sqlite3_analyzer not working in Ubuntu missing shared object file

I am learning more about sqlite3 and am trying to use the sqlite3_analyzer to view a bunch of data about my data. The problem is when I download the sqlite-analyzer-linux-x86-3071502.zip from https://www.sqlite.org/download.html and unzip this package and THEN try to run the program I receive THIS error: ./sqlite3_analyzer: error while loading shared libraries: libtcl8.6.so: cannot open shared object file: No such file or directory
Does anyone know where to get this libtcl8.6.so file? Does anyone know how to install this after obtaining it?
Install the package tcl8.6, or download the analyzer source code and recompile it with the Tcl version in your distribution.
I ended up downloading an older version of sqlite3_analyzer from a third party website (do a search for sqlite-analyzer-linux-x86) that worked without the dependency. I won't post links as I can't ensure that they'll be available and serve the same file as I downloaded.
If you decide to do that, be sure to check the file for viruses on http://virustotal.com! Can't trust these Chinese file hostings ;)

Visualworks mcz packages import with Monticello

I'm trying to program a client for multitouch gestures using TUIO under SmallTalk/Visualworks.
In order to get the mcz package for TUIO, I'm using Monticello.
The problem is that whenever i try to load a package with Monticello, i always end receiving this error message :
I can show you the Stack if anyone is inerested in it.
Thank's in advance.
A mcz package is essentially a compressed zip file. The current implementation of Monticello in VisualWorks uses external shell programs to uncompress and compress the source code to a Monticello mcz file.
When porting packages from Monticello to VisualWorks under Windows, there is usually a problem finding the corresponding zip.exe/unzip.exe. To solve your problem, try to set your PATH variable to your zip.exe/unzip.exe.
Another approach is to download the Info-ZIP package from the web. Place it into a subfolder in the image directory and change the execution logic of the VisualWorks Monticello Package. Browse for senders of shOne: in the VisualWorks Monticello Package and change the call.
The next thing to keep in mind when porting packages from Squeak or Pharo is to always define a Namespace which is named extactly after the first word of the monticello package name (upTo: $-). Define the namespace before loading the package.
i.e. JQueryMobile-Libraries-NickAger.10.mcz -> Define a Namespace JQueryMobile
Don't forget to import necessary Namespaces that the imported code requires to resolve the superclass names.
i.e. JQueryMobile needs Seaside.*, Javascript.*, JQuery.*, Grease.*, Smalltalk.*

Uninstall/Clear IE ActiveX Addon programatically (win32)

I'm trying to clean up the traces left by an ActiveX IE Addon. The Addon (COM DLL) was installed using a cab file.
Manually, IE -> Manage Add-ons -> open the addon and REMOVE is also not helping. It clears the addon from IE but registry traces are left behind!
Also, it throws a Runtime Error!
Program: C:\Program Files\Internet Explorer\EInstal.exe
R6034: An application has made an attempt to load the C runtime library incorrectly.
So, I presume the inf file used for installation doesn't have the info to uninstall the addon properly. Am I right? (contents in %alluserappdata%)
What happens internally when an add-on is removed from IE?
- Does it use the inf file? Or does it try to call the UnregisterServer call in the registered DLL?
Look forward to your help.
Cleared all the registry entries left behind using Registry funcions.
Couldn't find any other solution. The cab file generated did not have any information in the ini file to uninstall the Add-on.