Re: [Nix-dev] Postgis issues
Does the postgis 1.5.8 package include the postgis.control file? If so, there must be an issue with the code handling the postgres extraPlugins. If not, fix the postgis package :) On Tue Nov 18 2014 at 1:40:48 PM a...@gamb.co wrote: Hi All, New to Nix, I can't figure out where i'm going wrong with postgis. Known issue building 1_5_1 so i'm skipping to 1_5_8 using `callPackage`. Configured as follows: services.postgresql = { enable = true; package = pkgs.postgresql; extraPlugins = [ (pkgs.callPackage /path/to/nixpkgs/pkgs/development/libraries/postgis {}).v_1_5_8 ]; }; Rebuilding OS works fine. Postgis appears to install (I can see postgis-1.5.so), but i'm missing `postgis.control` and presumably one extra step? 'CREATE EXTENSION postgis; ERROR: could not open extension control file /nix/store/[...]-postgresql-and-plugins-9.2.9/share/ extension/postgis.control' Greatly appreciate any tips on how to debug this. Adam ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] Postgis issues
Doh! No postgis.control, but just realized I should be using the SQL instead. Thanks On 2014-11-18 14:01, Wout Mertens wrote: Does the postgis 1.5.8 package include the postgis.control file? If so, there must be an issue with the code handling the postgres extraPlugins. If not, fix the postgis package :) On Tue Nov 18 2014 at 1:40:48 PM a...@gamb.co wrote: Hi All, New to Nix, I can't figure out where i'm going wrong with postgis. Known issue building 1_5_1 so i'm skipping to 1_5_8 using `callPackage`. Configured as follows: services.postgresql = { enable = true; package = pkgs.postgresql; extraPlugins = [ (pkgs.callPackage /path/to/nixpkgs/pkgs/development/libraries/postgis {}).v_1_5_8 ]; }; Rebuilding OS works fine. Postgis appears to install (I can see postgis-1.5.so [1]), but i'm missing `postgis.control` and presumably one extra step? 'CREATE EXTENSION postgis; ERROR: could not open extension control file /nix/store/[...]-postgresql-and-plugins-9.2.9/share/extension/postgis.control' Greatly appreciate any tips on how to debug this. Adam ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev [2] Links: -- [1] http://postgis-1.5.so [2] http://lists.science.uu.nl/mailman/listinfo/nix-dev ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] Postgis issues
postgis was added by me many years ago, I guess nobody since then looked at it. That time it was neccessary to prepare a databse before you were able to use postgis - to simplify I added helper scripts like this: pg_db_postgis_enable Things might have changed a lot. Rebuilding OS works fine. Postgis appears to install (I can see postgis-1.5.so), but i'm missing `postgis.control` and presumably one extra step? Eventually add use such installPhase: installPhase = '' unset installPhase installPhase fail ''; and use the -K flag when building, then you can have a look at the build directory as well. = Neither the source nor the build nor the install directory contain any .control files 'CREATE EXTENSION postgis; ERROR: could not open extension control file /nix/store/[...]-postgresql-and-plugins-9.2.9/share/extension/postgis.control' Looking at http://postgis.net/source it looks like there are newer versions as well: postgis-2.1.4.tar.gz pdf html (Release Notes) postgis-2.0.6.tar.gz pdf html (Release Notes) postgis-1.5.8.tar.gz pdf html (Release Notes) Thus which ones do you care about? This file (replace the postgis file) makes 1_5_8 build providing the shell script, probably it still just works: http://mawercer.de/tmp/default.nix The newer versions I added as well don't build yet for this reason: gcc: error: ../liblwgeom/.libs/liblwgeom.a: No such file or directory there is a liblwgeom.la file, however replacing the .a version with the .la version in Makefile.in makes gcc not know the file. Does any C guru just know what's going wrong? . o O (Yes - I know that I should rewrite composobaleDerivation ...) Marc Weber ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev