Warning after re-compiling Asterisk from source

Hello,

I’ve got a system on which I previously installed Asterisk 20.7.0 from source. Then I’m re-installing Asterisk 20.8.1 on it using classic ./configure, make, make install but I’ve got the following message:

WARNING WARNING WARNING

 Your Asterisk modules directory, located at
 /usr/lib/asterisk/modules
 contains modules that were not installed by this 
 version of Asterisk. Please ensure that these
 modules are compatible with this version before
 attempting to run Asterisk.
 
    app_ices.so
    app_image.so
    app_nbscat.so
    app_osplookup.so
    app_url.so
    chan_alsa.so
    chan_mgcp.so
    chan_oss.so
    chan_sip.so
    chan_skinny.so
    res_monitor.so


 WARNING WARNING WARNING

Which command cleans this /usr/lib/asterisk/modules directory ?

Regards

Right before you do the make install do rm /usr/lib/asterisk/modules/*.so

Isn’t there a Makefile target that clears this /usr/lib/asterisk/modules directory from *.so files ?
I’ve found targets clean, distclean or uninstall in Makefile
Which one is recommended ?

If Asterisk v1 is installed and Asterisk v2 is later installed, do you need the above target in Asterisk v1 tree or in the new one ?

I tried clean, distclean or uninstall : it seems the one purging /usr/lib/asterisk/modules is "make uninstall " though it may have additional undesired side effects.

After all, maybe a simple “rm /usr/lib/asterisk/modules/*.so”, as suggested above, is the best thing to run before executing “make” and “make install”.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.