Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation issues #2

Closed
NikolayS opened this issue Aug 24, 2015 · 10 comments
Closed

Installation issues #2

NikolayS opened this issue Aug 24, 2015 · 10 comments

Comments

@NikolayS
Copy link

nikolay@dev:~/github$ cd pgcenter/
nikolay@dev:~/github/pgcenter$ make
gcc -g -std=gnu99 -Wall -pedantic -I/usr/include/postgresql -L/usr/lib/x86_64-linux-gnu -o pgcenter pgcenter.c -lncurses -ltinfo -lpq
pgcenter.c:11:21: fatal error: ncurses.h: No such file or directory
 #include <ncurses.h>
                     ^
compilation terminated.
Makefile:25: recipe for target 'pgcenter' failed
make: *** [pgcenter] Error 1
nikolay@dev:~/github/pgcenter$ uname -a
Linux dev 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u2 (2015-07-17) x86_64 GNU/Linux
@lesovsky
Copy link
Owner

Check that the ncurses devel package installed.
If installed:

  1. what OS you use?
  2. exec "find / -type f -name curses.h -name ncurses.h 2>/dev/null" and show results.

@NikolayS
Copy link
Author

It's Debian.
sudo apt-get install ncurses-dev solved the issue.

Another one:
screenshot 2015-08-24 16 03 21

I run at under postgres user, wherepsql works w/o password (double-checked it).
I checked your readme, and cannot find any directions how to set up usr/pwd params for pgcenter.

@NikolayS NikolayS changed the title make fails Installation issues Aug 24, 2015
@NikolayS
Copy link
Author

OK, I guessed that it has the same options as psql does :)
Maybe it's worth mentioning in readme.
I'm closing the issue.

@NikolayS
Copy link
Author

(and maybe it's a good idea to allow working w/o password -- in case when psql works without it)

@NikolayS
Copy link
Author

Reopening.. It cannot connect even when I run it like this:

pgcenter -U username dbname -W
  • strange that without -W it doesn't ask for password
  • even with password, it still cannot connect.

Postgres version is 9.4.3.

@NikolayS NikolayS reopened this Aug 24, 2015
@lesovsky
Copy link
Owner

See path specified in unix_socket_directories in postgresql.conf, and try "-h path"

@NikolayS
Copy link
Author

Ahrrr, adding -h localhost solved the issue.

@lesovsky
Copy link
Owner

The problem is that the postgres pkg developers use different default host in psql. RHEL uses /tmp, Debian uses /var/run/postgresql. pgCenter uses RHEL way. And Debian/Ubuntu users may have problem here.

different-host

I think how to solve this issue with elegant way.

@lesovsky
Copy link
Owner

try a935265

@NikolayS
Copy link
Author

Works w/o pwd now, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants