Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

how can i install on mac os x and postgresql 10 #57

Open
yilmazerhakan opened this issue Nov 1, 2017 · 1 comment
Open

how can i install on mac os x and postgresql 10 #57

yilmazerhakan opened this issue Nov 1, 2017 · 1 comment

Comments

@yilmazerhakan
Copy link

Hi,
OS: OS X El Capitan
PostgreSQL Version: 10 (PostgresApp)

I want to install pllua extension for Lua support.
installation says
-specifiy where pg_config is located
I couldnt find it in Postgres.app installation and make && make install

Alternatively i tried

   INSERT INTO pg_catalog.pg_pltemplate
      VALUES ('pllua', true, 'pllua_call_handler', 'pllua_validator', '$libdir/pllua', NULL);

    INSERT INTO pg_catalog.pg_pltemplate
      VALUES ('plluau', false, 'plluau_call_handler', 'plluau_validator', '$libdir/pllua', NULL);

replaced cloned pllua path with $libdir and execute from psql
it gives me error

postgre=# INSERT INTO pg_catalog.pg_pltemplate                                                                                        VALUES ('pllua', true, 'pllua_call_handler', 'pllua_validator', '/Users/hakan/pllua', NULL);
ERROR:  invalid input syntax for type boolean: "pllua_call_handler"
LINE 2:       VALUES ('pllua', true, 'pllua_call_handler', 'pllua_va...

Could you help me please?

@stuta
Copy link

stuta commented Nov 2, 2017

See some info here: https://github.com/pllua/pllua/issues/18

It is best that if you use luajit then use gc version (XCFLAGS="-DLUAJIT_ENABLE_GC64"). Then you don't need to set LDFLAGS_EX="-pagezero_size 10000 -image_base 100000000.

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

No branches or pull requests

2 participants