2017-11-01 5 views
0

이전 버전의 postgres를 사용하려고하는데 작동하지 않습니다.homebrew를 사용하여 이전 버전의 postgres 설치

$ brew search postgresql 
==> Searching local taps... 
postgresql ✔   [email protected][email protected]   [email protected] 

하지만 brew switch postgres 9.4를 실행할 때 다음 나는 다음을 참조하십시오 : 나는 brew search postgres를 실행하면 나는 볼

$ brew switch postgresql 9.4 
Error: postgresql does not have a version "9.4" in the Cellar. 
Versions available: 9.6.2, 9.6.4 

나는 무엇을 놓치고? 버전 9.4를 실행해야합니다.

+0

먼저'postgresql @ 9.4 설치 '를해야합니다. – teppic

답변

1

brew switch은 설치된 수식에서만 작동합니다. 컴퓨터에 postgresql 버전 9.6.29.6.4이 있으므로 그 중 하나에만 switch 수 있습니다.

그러나 Homebrew는 <name>@<version> 것을 사용하여 고정 버전 수식을 제공합니다. Postgres 9.4를 얻으려면 다음 명령을 실행하면됩니다 :

brew install [email protected]