Thread: Issue with installation of postgresql server
I have been trying to install Postgresql server on my machine (Windows 8-64 bit version) but it is failing to install by throwing the following error –
“There has been an error. The environment variable COMSPEC does not seem to point to the cmd.exe or there is a trailing semicolon present. Please fix this variable and restart installation .”
I searched some of the forums where the solution mentioned was to add an environment variable “COMSPEC” with the value – “C:\Windows\system32\cmd.exe”. I did this but the issue persists. Also, there is no semicolon at the end in the value of COMSPEC variable.
I tried installing 2 versions of Postgresql but I am getting the same error for both. The versions are as follows :
1. postgresql-9.3.14-2-windows-x64.exe
2. postgresql-9.6.0-1-windows-x64.exe
Since the COMSPEC variable is present, it got me thinking if this is a general exception thrown while installing postgresql.
Also, are there any pre-conditions to be checked before installing the server. Could a particular software installation be hindering the postgresql installation (At some forums, it was suggested that the anti-virus uninstallation solved the issue. Could this be the reason?)
Please let me know how to resolve this.
Thanks & Regards
Kanakaraju
This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and any disclosure, copying, or distribution of this message, or the taking of any action based on it, by you is strictly prohibited.
v.E.1
This is a long shot but in case "case" matters, on all my computer the variable is "ComSpec".
And I assume you added it as a System variable...
Cheers,
George
On 13/10/2016 6:24 AM, Karre, Kanakaraju (US - Hyderabad) wrote:
P.a02e54f8-0ae7-4fdb-bebc-9b780234174d {MARGIN: 0cm 0cm 0pt } LI.a02e54f8-0ae7-4fdb-bebc-9b780234174d {MARGIN: 0cm 0cm 0pt } DIV.a02e54f8-0ae7-4fdb-bebc-9b780234174d {MARGIN: 0cm 0cm 0pt } TABLE.a02e54f8-0ae7-4fdb-bebc-9b780234174dTable {MARGIN: 0cm 0cm 0pt } DIV.Section1 {page: Section1 } I have been trying to install Postgresql server on my machine (Windows 8-64 bit version) but it is failing to install by throwing the following error –
“There has been an error. The environment variable COMSPEC does not seem to point to the cmd.exe or there is a trailing semicolon present. Please fix this variable and restart installation .”
I searched some of the forums where the solution mentioned was to add an environment variable “COMSPEC” with the value – “C:\Windows\system32\cmd.exe”. I did this but the issue persists. Also, there is no semicolon at the end in the value of COMSPEC variable.
I tried installing 2 versions of Postgresql but I am getting the same error for both. The versions are as follows :
1. postgresql-9.3.14-2-windows-x64.exe
2. postgresql-9.6.0-1-windows-x64.exe
Since the COMSPEC variable is present, it got me thinking if this is a general exception thrown while installing postgresql.
Also, are there any pre-conditions to be checked before installing the server. Could a particular software installation be hindering the postgresql installation (At some forums, it was suggested that the anti-virus uninstallation solved the issue. Could this be the reason?)
Please let me know how to resolve this.
Thanks & Regards
Kanakaraju
This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and any disclosure, copying, or distribution of this message, or the taking of any action based on it, by you is strictly prohibited.
v.E.1
-- Cleartag Software, Inc. 972 McMillan Avenue Winnipeg, MB R3M 0V7 (204) 284-9839 phone/cell (204) 284-9838 fax gweaver@cleartagsoftware.com Fast. Accurate. Easy.
On 10/13/2016 04:24 AM, Karre, Kanakaraju (US - Hyderabad) wrote: > I have been trying to install Postgresql server on my machine (Windows > 8-64 bit version) but it is failing to install by throwing the following > error – > > “_There has been an error. The environment variable COMSPEC does not > seem to point to the cmd.exe or there is a trailing semicolon present. > Please fix this variable and restart installation _.”__ > > _ _ > > I searched some of the forums where the solution mentioned was to add an > environment variable “COMSPEC” with the value – > “C:\Windows\system32\cmd.exe”. I did this but the issue persists. Also, > there is no semicolon at the end in the value of COMSPEC variable. See if the below helps: https://technet.microsoft.com/en-us/library/cc976142.aspx > > > > I tried installing 2 versions of Postgresql but I am getting the same > error for both. The versions are as follows : > > 1. postgresql-9.3.14-2-windows-x64.exe > > 2. postgresql-9.6.0-1-windows-x64.exe You are getting these from where? > > > > Since the COMSPEC variable is present, it got me thinking if this is a > general exception thrown while installing postgresql. But is it in the format shown in the technet article above, in particular the Data type? > > Also, are there any pre-conditions to be checked before installing the > server. Could a particular software installation be hindering the > postgresql installation (At some forums, it was suggested that the > anti-virus uninstallation solved the issue. Could this be the reason?) > > > > Please let me know how to resolve this. > > > > *Thanks & Regards* > > *Kanakaraju*__ > > > > > > > This message (including any attachments) contains confidential > information intended for a specific individual and purpose, and is > protected by law. If you are not the intended recipient, you should > delete this message and any disclosure, copying, or distribution of this > message, or the taking of any action based on it, by you is strictly > prohibited. > > v.E.1 > > > > > > > > -- Adrian Klaver adrian.klaver@aklaver.com