How do i resolve the Error trying to install postgis? - postgis

On AWS Linux, I tried to install postgis by
CREATE EXTENSION postgis;
However, I got this error.
SQL Error [58P01]: ERROR: could not open extension control file
"/usr/pgsql-13/share/extension/postgis.control": No such file or
directory
I could not find a way to resolve this... Any help?

Related

Failed to initialize build 'vsphere-iso': builder type not found: vsphere-iso

I'm having issues on MacOSX with a Packer Plugin that doesn't seem to be recognized. I've installed it using multiple methods. Including creating a ~/.packer.d/plugins directory and moving the plugin there and granting execute permissions.
This is the plugin:
packer-builder-vsphere
I'm running a very simple packer build just to test it and I get the error:
Failed to initialize build 'vsphere-iso': builder type not found: vsphere-iso
I've also tried adding it to the same directory as packer /usr/local/bin/ AND I've tried running it from the Current Running Directory as well. None of these methods are working and I'm not sure what I'm missing.
Any help would be appreciated.
Thanks!
The name of the plugin executable is wrong, it should be packer-builder-vsphere-iso and not include the version.

How to alter the path for Postgres looking for extensions?

I installed Postgres on a Windows machine, downloaded the binary installer for PostGIS and installed it. I only have one version of Postgres, so there is no messing up possible.
Installing PostGIS using the binary installer is straight forward and you cannot mess up the installation directory either. it has to go into the Postgres directory.
Now, when I want to create the PostGIS extension I am getting the following error:
ERROR: could not open extension control file "C:/APPS/POSTGR~1/pg96/../pg96/share/postgresql/extension/postgis.control": No such file or directory
********** Error **********
ERROR: could not open extension control file "C:/APPS/POSTGR~1/pg96/../pg96/share/postgresql/extension/postgis.control": No such file or directory
SQL state: 58P01
Though when I go into the directory C:\APPS\PostgreSQL\pg96\share\extension then I do have a postgis.control file present.
How do I get the extension to work? I checked the content of the zipped PostGIS binaries and it looks like as if the structure is well preserved and all files are copied into the appropriate directories during the install process via the binary installer.
It seems that the case is still the same with latest versions of postgres (PostgreSQL-9.6.3-1-win64-bigsql.exe) and postgis (postgis-bundle-pg96x64-setup-2.3.2-1.exe). I copied the files around until all the paths could be resolved:
Everything from C:\PostgreSQL\pg96\share\extension to C:\PostgreSQL\pg96\share\postgresql\extension
postgis_topology-2.3.dll, postgis-2.3.dll, rtpostgis-2.3.dll, address_standardizer-2.3.dll and ogr_fdw.dll from C:\PostgreSQL\pg96\lib to C:\PostgreSQL\pg96\lib\postgresql

Python dbconnection

I have a python code(python 3.5.1) in which I need to connect to SQL server. I am using the module 'pyodc' but its throwing me an error
"ImportError: No module named 'pyodbc'"
I am using eclipse on Windows 8.
Then I downloaded pyodc package from "https://github.com/mkleehammer/pyodbc". I tried to install using pip first but its not working on Windows 8.1:
"building 'pyodbc' extension error: Unable to find vcvarsall.bat'.
Then I tried running setup.py file in the folder. But still i am not able to import pyodc module.
Can anyone help me in properly importing the module. I am very new to python and I know there might be some beginner mistake.

Error: EPERM: operation not permitted, open "C"

I am getting following error while running a build definition.
I tried to give read/write permission by right clicking the Builds directory, but after running the build using build definition the permissions get reset.
The files get created by calling "gulp" command from a post script bat file.
How to get rid of this error?
I was wondering if it's related to the npm install issue. Please refer this npm install fails on Windows with "EPERM, operation not permitted" for more details.
Here is also a similar question Visual Studio 2015 hybrid app - getting "EPERM, operation not permitted"

ImportError: libmysqlclient_r.so.16

I have a problem in python 2.6. I am trying to
import MySQLdb
it will show me an error like
ImportError: libmysqlclient_r.so.16: cannot open shared object file: No such file or directory
I tried to search a lot but couldn't find anything.
reason behind this error is missing package for mysql
download a rpm file containing libmysqlclient_r.so.16 file and make sure that file is 32/64 bit architecture depending on your OS.
install package and all done.
hope it will work for you too.

Resources