I only receive the “not a valid NPAPI plugin” when I applied a code for a folder which didn’t exist (i.e. libflashplayer in /usr/lib/firefox/plugins/)
Otherwise, adding a -v to previously mentioned commands,
sudo nspluginwrapper -v -i /usr/lib/browser-plugins/libflashplayer.so
or
nspluginwrapper -v -a -i
produces the error
/usr/lib/nspluginwrapper/i386/linux/npviewer.bin: error while loading shared libraries:
libgobject-2.0.so.0: wrong ELF class: ELFCLASS64
Googling for this ELF error, I saw in this ubuntu page, the method of:
:/usr/lib/nspluginwrapper/i386/linux$ ldd npviewer.bin
for me this produced alternating sequences of:
libglitz.so.1 => /usr/lib/libglitz.so.1 (0xf7533000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0xf750c000)
libxcb-render-util.so.0 => /usr/lib/libxcb-render-util.so.0 (0xf7507000)
libxcb-render.so.0 => /usr/lib/libxcb-render.so.0 (0xf74ff000)
libexpat.so.1 => /lib/libexpat.so.1 (0xf74d8000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xf74d3000)
**libgobject-2.0.so.0 => not found
libgmodule-2.0.so.0 => not found
libglib-2.0.so.0 => not found**
Looking in YaST I see that I have the following installed:
libgobject-2_0-0
libgobject-2_0-0-32bit
libgmodule-2_0-0
libgmodule-2_0-0-32bit
libglib-2_0-0
libglib-2_0-0-32bit
Four of these I updated.
If you are unfamiliar with ldd, as I was, the man page defines it:
ldd prints the shared libraries required by each program or shared library specified on the command line
Which ways can a file not be found if it is installed? In another ubuntu post there was a suggestion for a symbolic link somewhere along the lines, though not directly addressing this problem
sudo ln -s /usr/lib/browser-plugins/nspluginwrapper/x86_64/linux/npconfig /usr/bin/nspluginwrapper
That is maybe unrelated. Another poster commented that it was unnecessary because the rpm would create all the necessary symbolic links.
Do I need to create a link to, for instance, /usr/lib/libgmodule-2.0.so somewhere? or include /usr/lib in $PATH?
Thanks for your suggestions.