AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Install postgresql with macports3/9/2023 ![]() $ ls -hlt /opt/local/var/db/ĭrwxr-xr-x 7 root admin 238B Jan 23 16:54 texmfĭrwxr-xr-x 3 root admin 102B Dec 25 07:37 postgresql94 I think PostgreSQL can be sensitive to ownership of these, though it seems that in your case PostgreSQL simply doesn't have access to those. The permissions/ownership on the directories between / and defaultdb likely need to be fixed. Tips about any of my problems are appreciated! Thinking of using Postgres.app if it really is easier but not sure whether it would be better to install using MacPorts since I install most other things using MacPorts. I see those lines saying Permission denied and am wondering what that's about. checking my /opt/local/lib/postgresql93/bin/ directory, I see both initdb and postgres. The program "postgres" is needed by initdb but was not found in the Shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission deniedĬould not identify current directory: Permission denied But there I run into an error during step 3.3: $ sudo su postgres -c '/opt/local/lib/postgresql93/bin/initdb -D /opt/local/var/db/postgresql93/defaultdb' thinking that I may not need to install the pg gem since I want to work with Node and not Ruby, I moved on to the next steps. Check the mkmf.log file for more details. noĬan't find the PostgreSQL client library (libpq)Ĭould not create Makefile due to some reason, probably lack of necessary noĬhecking for PQconnectdb() in -lms/libpq. Using config values from /opt/local/lib/postgresql93/bin/pg_configĬhecking for PQconnectdb() in -llibpq. System/Library/Frameworks/amework/Versions/2.0/usr/bin/ruby extconf.rb -with-pg-config=/opt/local/lib/postgresql93/bin/pg_config but I get an error during step 2: $ sudo gem install pg -with-pg-config=/opt/local/lib/postgresql93/bin/pg_config > ruby_errorĮRROR: Failed to build gem native extension. I use MacPorts and so tried the method described here: I want to install PostgreSQL for a node project that I'm developing in OSX Yosemite.
0 Comments
Read More
Leave a Reply. |