Installation problems regarding mod_wsgi and APR

318 views
Skip to first unread message

Licht Artig

unread,
Sep 22, 2020, 4:47:30 PM9/22/20
to modwsgi
Hi,

I am currently trying to install mod_wsgi on a server without root access. Since the server did not have the packages apache2-dev and libapr1-dev installed, which I believe are necessary for mod_wsgi to work, I downloaded and unpacked them and added their ./usr/bin directories to $PATH.

Finally, I tried to install mod_wsgi via pip3 for the local user, however I get the following error:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/apr-1-config': '/usr/bin/apr-1-config'
Which makes sense, because the apr-1-config file ist not in that directory but instead in $HOME/libapr1-dev/usr/bin. Is there any way I can let the installation script know to look in this directory instead?

Sidenote: As a quick workaround I also tried to install mod_wsgi-standalone, which however gives the following error:
RuntimeError: Failed to build APR.

Thanks in advance!

Best,
Sebastian

Graham Dumpleton

unread,
Sep 22, 2020, 4:51:50 PM9/22/20
to mod...@googlegroups.com
When trying to install mod_wsgi-standalone package, since you have a failed build from prior attempt with mod_wsgi package, use:

    pip install -U --no-cache-dir -v -v -v mod_wsgi-standalone

If that doesn't work, little that can be done if don't have root access to install Apache system wide properly.

Note that the -v -v -v is intentional and causes pip to output more logs. I would need to see more of the messages around where the failure occurs to comment more about why it is failing. Most likely your system is missing other packages that is required to build Apache.

--
You received this message because you are subscribed to the Google Groups "modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/66753beb-b300-4961-9485-319b8d4776d1n%40googlegroups.com.

Licht Artig

unread,
Sep 26, 2020, 6:11:20 AM9/26/20
to mod...@googlegroups.com
Hi Graham,
thanks for your reply and your help. At the end I resolved the issue with the admin.
Best
Sebastian


Reply all
Reply to author
Forward
0 new messages