ERROR: could not open extension control file "/usr/pgsql-9.6/share/extension/postgis.control": No such file or directory - django

I want to deploy my project to VPS Centos7. But i am getting error while installing postgres. When i type
create extension postgis;
Getting error
ERROR: could not open extension control file
"/usr/pgsql-9.6/share/extension/postgis.control": No such file or
directory
Because postgis.contol is located in another place,
find /usr -name postgis.control
/usr/share/pgsql/extension/postgis.control
But postgres trying to create it from /usr/pgsql-9.6/share/extension/postgis.control
This question already was asked before, but my problem is other.

For me, I run below command in Ubuntu, and the issue was resolved.
sudo apt install postgresql-10-postgis-scripts
then run
CREATE EXTENSION postgis
It works fine for me.I hope it helps.

Related

Openstack setup error (failed to create symbolic link '/var/run/ovn/openvswitch': File exists)

im working on a school project building an Openstack Cloud Computing and im following a guide video.
The installation was smooth and then this error pops up:
ln: failed to create symbolic link '/var/run/ovn/openvswitch': File exists
/devstack/tools/worlddump.py:22: DeprecationWarning:
The distutils package is deprecated and slated for removal in Python 3.12.
Use setuptools or check PEP 632 for potential alternatives
can u guys help me out ? thanks alot, btw im new in this one.
this error accord because you reinstall the script you need to delete
/var/run/ovn/openvswitch
by execute the command
sudo rm /var/run/ovn/openvswitch
and then run
./stack.sh

Dont open project from github

I download project from github in my Termux terminal, but after download, when I pass the command "сd /*projectname*" termux said me: No such file or directory
I tried find this project in file manager in my Android, but the all folders in /com.Termux are empty.
Then I'm pass the command git clone https:/github.com/developer_name/project_name and Termux told me - destination path *projectname* already exist and is not an empty directory
Ive got 2 question
How I can open projectname in Termux?
Which full path from downloaded project from github?
use (apt-update && apt upgrade) first then other commands

"no such file or directory" while trying to install gcloud commandline tool

OK so I am trying to download gcloud compute but I am unable to for some reason. I followed the step by step guide from this page but when I type ./google-cloud-sdk/bin/gcloud init the terminal returns zsh: no such file or directory: ./google-cloud-sdk/bin/gcloud
Should I move google-cloud-sdk out of download into some other places? Any help will be greatly appreciated.
If it is any help, I am currently using Mac OS catalina 10.15.4.
It looks like you have downloaded the SDK into a different directory than you are currently in with your terminal.
Try moving the downloaded google-cloud-sdk folder into your home (or cd into your Downloads folder with the terminal), and then running the command. You can also use ls to make sure you are in the correct directory and can see the google-cloud-sdk folder.

Google Cloud SDK Installation: Unzip Failed: Error opening zip file

I am getting Unzip Failed: Error opening zip file while installing Google Cloud SDK,
I am using windows 7,64 bit. I have checked the zip/unzip software also, it is working fine. here is the error
Can anybody help.
I downloaded the zip file directly from here and it is working now.
I resolved the issue by running the installer as administrator
close your proxy.
add a new env:
CLOUDSDK_PYTHON=\your Python27 path\python.exe

Sitecore Package upload error

I am trying to install a Sitecore package from dev to staging environment, i have used package designer to create this package, but when i try to upload this package on the staging site it results in the following error:
The File exists.<br>
I have also tried uploading the package created using the Sitecore Rocks plugin which also results in the same error.
I am installing the package using installation wizard and uploading the package and i am not overwriting the existing files.
Kindly, help!
This error occurs if the windows temp has more than 65K files. When we cleared those files the issue got resolved.
Maybe there is package with the same name as your new package. Try to rename you package zip file and then upload.
make sure you are installing in the right environment
make sure the file doesnt not already exists (you can look it under the packages folder)
restart app pool and try again. Maybe overwrite the installation file.
there was a issue with sitecore on the staging environment(probably corrupted install). so we took a risk and installed it on live..! It works fine! Thank you all for the help. Much appreciated.