我想要做的是转换这个用 bash 编写的webodm ( https://gist.github.com/lkpanganiban/5226cc8dd59cb39cdc1946259c3fea6e ) 的安装脚本,以便在 freenas jail 下的 tcsh shell 中使用。
我现在已经进入了我无法找到解决方案的部分,我希望有人可以启发我下一步该做什么。
触发问题的行是:
su - postgres -c "psql -d webodm_dev -c "\""CREATE EXTENSION postgis;"\"" "
Run Code Online (Sandbox Code Playgroud)
整个错误行:
ERROR: could not load library "/usr/local/lib/postgresql/plpgsql.so": dlopen (/usr/local/lib/postgresql/plpgsql.so) failed: /usr/local/lib/postgresql/plpgsql.so: Undefined symbol "MakeExpandedObjectReadOnly"
Run Code Online (Sandbox Code Playgroud)
包装信息提供:
postgis24-2.4.5_1 Geographic objects support for PostgreSQL databases
postgresql95-client-9.5.15_2 PostgreSQL database (client)
postgresql95-contrib-9.5.15_2 The contrib utilities from the PostgreSQL distribution
postgresql95-server-9.5.15_2 PostgreSQL is the most advanced open-source database available anywhere
Run Code Online (Sandbox Code Playgroud)
是的,文件存在:
root@webodm2:~ # ls -l /usr/local/lib/postgresql/plpgsql.so
-rwxr-xr-x 1 …Run Code Online (Sandbox Code Playgroud)