An internal error occurs when writing postgis, django in postgresql. How do I resolve the error that I can't load the library?

Asked 2 years ago, Updated 2 years ago, 46 views

Running python3 manage.py migrate in django

django.db.utils.InternalError: could not load library "/usr/lib/postgresql/9.5/lib/postgis-2.2.so": /usr/lib/liblwgeom-2.2.so.5: undefined symbol: GEOSClipByRect

This error occurs.

I did my best to google it, and there were one or two articles related to this problem.

https://trac.osgeo.org/postgis/ticket/3423

At first glance, 9.5 units of

that appear when you install apt-get on Ubuntu Linux, which is currently using the postgresql version

I think I can use 9.4 instead of the latest version

So if there is no other solution, can I know how to download the 9.4 version? I'm curious.

postgresql django postgis

2022-09-22 21:16

1 Answers

https://www.postgresql.org/download/linux/ubuntu/

According to the official website,

apt-get install postgresql-9.4

I think this is how you do it

If the installation method above is not possible, use the app repository below

I think you can put the command that fits the version


2022-09-22 21:16

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.