• 카테고리

    질문 & 답변
  • 세부 분야

    데이터베이스

  • 해결 여부

    해결됨

postgresql 설치 오류

23.08.20 21:51 작성 조회수 932

1

안녕하세요. 프로그램 설치시 하기 오류가 뜨는데요..

There has been an error :

The enviromental variable COMSPEC does not seem to print to the cmd.exe or there is a trailling semicolon present.

인터넷 참조해서 방화벽도 없애보고 했는데 설치가 안되어서 글을 남깁니다. 배워볼려고 하는데 설치부터 안되니 답답합니다.

답변 1

답변을 작성해보세요.

1

안녕하십니까,

음, 처음보는 에러라서 검색을 해보니, Postgres를 windows에 설치할때 registry가 충돌되어서 위 에러가 발생하는 경우들이 있는 것 같군요. 근데 해결책이 명확하지는 않은 것 같습니다만, 일단 아래에서 방법을 찾아보시면 어떨까 싶습니다.

https://stackoverflow.com/questions/72271531/postgresql-installation-error-the-environment-variable-comspec-does-not-seem-to

에 있는 내용에서

  1. 아래와 같이 수행해 보시거나.

Hi i have faced the same issue but then i changed the environment variables of CompSpec to name: ComSpec and the path: C:\Windows\system32\cmd.exe and restarted my pc and it installed successfully. Hope it helps.

아님, 아래와 같이 수행해 보시면 좋을 것 같습니다.

둘다 요약해 보면 ComSpec의 environment variables 설정을 C:\Windows\system32\cmd.exe 로 변경 했다는 내용입니다.

 

I had the same error like yesterday man and the answer above is pretty correct. I am just going to elaborate the procedure in clearor steps.

First, right-click on the Windows icon on your taskbar and select System.

In the Settings window, under Related Settings, click Advanced system settings.

On the Advanced tab, click Environment Variables.

Under System Variables click New to create a new environment variable. Name it ComSpec and set the path to point to C:\Windows\system32\cmd.exe

After creating the environment variable click Apply and then OK to have the change take effect.

Restart might be required.

Peace.