I am working with Ubuntu 16.04.2 LTS.
I have been following a guide How To Set Up uWSGI and Nginx to Serve Python Apps on Ubuntu 14.04. Once I have set up the virtualenv I follow the instructions:
pip install uwsgi
You can verify that it is now available by typing:
uwsgi --version
If it returns a version number, the uWSGI server is available for use.
However when I do this I get:
uwsgi: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
If I push on and work further through the guide things fall over when I try use uwsgi.
My research tells me that PCRE is Perl Compatible Regular Expressions and several people have asked questions online with libpcre.so.1 issues with other applications.
For example a response to a similar issue relating to nginx:
The message means what it says. The nginx executable was compiled to expect the PCRE (Perl-compatible Regular Expression) shared library to be available somewhere on LD_LIBRARY_PATH or specified in /etc/ld.so.conf or whatever equivalent library-locating mechanisms apply to your operating system, and it cannot find the library.
You will need to install PCRE - or configure your environment so that nginx will look for the PCRE library where it is installed.
But I can't find much relevant to installing PCRE or configuring it. Most install instructions use: apt-get install libpcre3 libpcre3-dev
and then reinstalling uwsgi pip install uwsgi -I
. As in this example. Where I have tried everything posted and got nowhere.
I think my principle issue is that I don't understand the problem very well or how to do the things mentioned in the nginx example above.
Any insight or guidance would be much appreciated.