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

how would this work on windows? #7

Closed
barbalex opened this issue Sep 22, 2017 · 6 comments
Closed

how would this work on windows? #7

barbalex opened this issue Sep 22, 2017 · 6 comments

Comments

@barbalex
Copy link

How would someone working on windows install pgjwt?

@barbalex
Copy link
Author

I got so far:

  1. install make for window (http://gnuwin32.sourceforge.net/packages/make.htm)
  2. add C:\Program Files (x86)\GnuWin32\bin to path
  3. run make install

But then I get:

PS C:\Users\alex\pgjwt> make install
/usr/bin/mkdir -p 'C:/PROGRA~1/POSTGR~1/pg96/share/POSTGR~1/extension'
process_begin: CreateProcess(NULL, /usr/bin/mkdir -p C:/PROGRA~1/POSTGR~1/pg96/share/POSTGR~1/extension, ...) failed.
make (e=2): Das System kann die angegebene Datei nicht finden.
make: *** [installdirs] Fehler 2
PS C:\Users\alex\pgjwt>

@barbalex
Copy link
Author

seems that extensions are in C:\Program Files\PostgreSQL\9.6\share\extension on my machine

@barbalex
Copy link
Author

by the way: this is Windows 10 up to date

@barbalex
Copy link
Author

oh well: /usr/bin/mkdir will of course not work

@michelp
Copy link
Owner

michelp commented Sep 22, 2017

I'm sorry, I don't know anything about windows or how one would get pg extensions working on it. However, you can simply remove the first line of code from pgjwt-0.0.1.sql and paste the sql code into your postgres and you will have the functions you need. the code is pure sql so there isn't really a hard requirement to use the extension installation mechanism.

@barbalex
Copy link
Author

Yep, that works well. Thanks a lot.

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