Mercy Kipkoros June 24, am. Thanks a lot for this, I was stuck a whole day on it and you solved my problem in less than 20 min. Naveen July 1, am. Lebene July 3, pm. I did this step with no issue and my command prompt can open the psql when I do psql -U postgres and then enter the postgres password I set. I cannot however just enter psql and go. It is showing my normal C drive user acc as the default e. Jay July 6, pm. Hi Lebene. I am actually seeking for the same solution. But i guess so far, the above may not work as the database superuser is the default postgres.
Emilia June 3, pm. Is this the default system variable in Windows 10? Now the command window CMD input other commands are not internal or internal commands. Anonymous August 20, pm. Anonymous October 20, am. Daniel McLaren December 1, am. Ezrqn Kemboi January 16, am. Esther February 12, pm. For all those that got the same problem in , the correct way to install it via pip is now : pip install psycopg2-binary. Alan Kuras Alan Kuras 1 1 gold badge 5 5 silver badges 18 18 bronze badges.
Smart Manoj Smart Manoj 4, 3 3 gold badges 27 27 silver badges 49 49 bronze badges. Pmpr Felix Kavwele Felix Kavwele 21 1 1 bronze badge. Download psycopg2 version for your python and windows from here win-psycopg Do NOT double-click the package to run. MohitC MohitC 3, 27 27 silver badges 46 46 bronze badges.
Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Find centralized, trusted content and collaborate around the technologies you use most. Connect and share knowledge within a single location that is structured and easy to search. If it isn't, or the one that's first in your path isn't the one that was installed with the Postgres you want to build against, you can specify the path to it with the —with-pg-config option.
The Postgres gem can't find the Postgres configuration file. You need to tell it where it is. The most enjoyable solution to this in my opinion is to skip Brew and MacPorts and just use the Postgres app. Download and install from here:. I am using Arch Linux, and was having similar problems. Used sudo pacman -S libpqxx and reran then installed the pg gem and then ran bundle install again, and this time it finally worked!
Before this try run the bundle install again. This link suggested using:. I couldn't get the pg gem to install for days,but this method finally worked for me. Hope this will be helpful. Reference link. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 9 years, 11 months ago. Active 6 months ago.
Viewed 75k times. WhenI run as root gem install pg -v '0. This could take a while Successfully installed pg Installing RDoc documentation for pg Check the mkmf. You may need configuration options.
0コメント