pllua / pllua-deprecated

[DEPRECATED] This repository is no longer maintained. Please follow https://github.com/pllua/pllua
197 stars 16 forks source link

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

Open yilmazerhakan opened 6 years ago

yilmazerhakan commented 6 years ago

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 commented 6 years ago

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.