# Libsodium installation issue: Invalid library (maybe not a PHP library) 'sodium.so' in Unknown on line 0 … [closed]

I've been struggling since days to install libsodium on my Debian9/php7.0(with fpm) server ... When I follow the steps outlined on https://paragonie.com/book/pecl-libsodium/read/00-intro.md#installing-libsodium everything seems to work, however I get this error at PHP startup:

Invalid library (maybe not a PHP library) 'sodium.so' in Unknown on line 0 ....

So the extension is not loaded ...

Hope someone can help me, Thx ! Vincent.

pecl install -f libsodium-2.0.8