Comments (6)
I think SYNCHRONIZE might be a reserved keyword. If I replace it with something like SYNCHRONIZE_NOCROSS then I get past that step.
from mobilitydb.
It seems that is indeed the case. In the file \mingw-w64-v9.0.0\mingw-w64-headers\include\winnt.h there is the following definition
#define SYNCHRONIZE (__MSABI_LONG(0x00100000))
I changed the definition in MobilityDB as you suggested. This is already in the develop branch.
from mobilitydb.
BTW when using mingw (the traditional 32 bit version) for running the tests it is necessary to create the database and this is done calling initdb
. However, this complains about the permissions of the repertory used for initdb.
esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build/tmptest$ initdb -D db
The files belonging to this database system will be owned by user "esteban".
This user must also own the server process.
The database cluster will be initialized with locale "C.UTF-8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".
Data page checksums are disabled.
fixing permissions on existing directory db ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... 20
selecting default shared_buffers ... 400kB
selecting default time zone ... Europe/Brussels
creating configuration files ... ok
running bootstrap script ... 2021-07-22 11:21:25.046 CEST [3929] FATAL: data directory "/mnt/c/MobilityDB-develop/build/tmptest/db" has invalid permissions
2021-07-22 11:21:25.046 CEST [3929] DETAIL: Permissions should be u=rwx (0700) or u=rwx,g=rx (0750).
child process exited with exit code 1
initdb: removing contents of data directory "db"
esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build/tmptest$
However, it is reported that chmod
does not work for windows
esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build$ ls
CMakeCache.txt DartConfiguration.tcl cmake_install.cmake mobilitydb--1.0.sql sqlin
CMakeFiles Makefile install_manifest.txt mobilitydb--1.0.sql.c tmptest
CTestTestfile.cmake Testing libMobilityDB.so mobilitydb.control
esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build$ cd tmptest
esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build/tmptest$ ls
db lock log out
esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build/tmptest$ ls -l
total 0
drwxrwxrwx 1 esteban esteban 512 Jul 21 15:32 db
drwxrwxrwx 1 esteban esteban 512 Jul 21 14:54 lock
drwxrwxrwx 1 esteban esteban 512 Jul 21 14:54 log
drwxrwxrwx 1 esteban esteban 512 Jul 21 14:54 out
esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build/tmptest$ chmod 700 db
esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build/tmptest$ ls -l
total 0
drwxrwxrwx 1 esteban esteban 512 Jul 21 15:32 db
drwxrwxrwx 1 esteban esteban 512 Jul 21 14:54 lock
drwxrwxrwx 1 esteban esteban 512 Jul 21 14:54 log
drwxrwxrwx 1 esteban esteban 512 Jul 21 14:54 out
esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build/tmptest$
Maybe you know how to cope with this issue
from mobilitydb.
ah, nice catch @robe2
Without the need to modify postgresql.conf, I can do this in my computer
create extension mobilitydb CASCADE;
NOTICE: installing required extension "postgis"
CREATE EXTENSION
mobtest=# select mobilitydb_version();
mobilitydb_version
-----------------------
MobilityDB 1.0 beta 3
(1 row)
Will add a test on the actions that displays the version, on my next PR
from mobilitydb.
BTW when using mingw (the traditional 32 bit version) for running the tests it is necessary to create the database and this is done calling
initdb
. However, this complains about the permissions of the repertory used for initdb.esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build/tmptest$ initdb -D db The files belonging to this database system will be owned by user "esteban". This user must also own the server process. The database cluster will be initialized with locale "C.UTF-8". The default database encoding has accordingly been set to "UTF8". The default text search configuration will be set to "english". Data page checksums are disabled. fixing permissions on existing directory db ... ok creating subdirectories ... ok selecting dynamic shared memory implementation ... posix selecting default max_connections ... 20 selecting default shared_buffers ... 400kB selecting default time zone ... Europe/Brussels creating configuration files ... ok running bootstrap script ... 2021-07-22 11:21:25.046 CEST [3929] FATAL: data directory "/mnt/c/MobilityDB-develop/build/tmptest/db" has invalid permissions 2021-07-22 11:21:25.046 CEST [3929] DETAIL: Permissions should be u=rwx (0700) or u=rwx,g=rx (0750). child process exited with exit code 1 initdb: removing contents of data directory "db" esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build/tmptest$
However, it is reported that
chmod
does not work for windowsesteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build$ ls CMakeCache.txt DartConfiguration.tcl cmake_install.cmake mobilitydb--1.0.sql sqlin CMakeFiles Makefile install_manifest.txt mobilitydb--1.0.sql.c tmptest CTestTestfile.cmake Testing libMobilityDB.so mobilitydb.control esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build$ cd tmptest esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build/tmptest$ ls db lock log out esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build/tmptest$ ls -l total 0 drwxrwxrwx 1 esteban esteban 512 Jul 21 15:32 db drwxrwxrwx 1 esteban esteban 512 Jul 21 14:54 lock drwxrwxrwx 1 esteban esteban 512 Jul 21 14:54 log drwxrwxrwx 1 esteban esteban 512 Jul 21 14:54 out esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build/tmptest$ chmod 700 db esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build/tmptest$ ls -l total 0 drwxrwxrwx 1 esteban esteban 512 Jul 21 15:32 db drwxrwxrwx 1 esteban esteban 512 Jul 21 14:54 lock drwxrwxrwx 1 esteban esteban 512 Jul 21 14:54 log drwxrwxrwx 1 esteban esteban 512 Jul 21 14:54 out esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build/tmptest$
Maybe you know how to cope with this issue
Yah chmod isn't supported under windows to my knowledge but I use msys2 for my tool chain and it understands chmod. That said I've never had to use that command. So not sure it really works under msys2 either, might just fake it. Are you only getting this on 32-bit chain? I don't ship any new major releases of anything on the 32-bit chain anymore because EDB stopped supporting 32-bit since so few people use it. So 32-bit is only relevant for supporting PG 10 and lower on windows - https://www.enterprisedb.com/download-postgresql-binaries
from mobilitydb.
from mobilitydb.
Related Issues (20)
- QGIS integration HOT 1
- Bug in nearestApproachInstant function HOT 3
- Version in develop branch has the same number as in master branch. HOT 1
- QGIS interactive visualization tool, QTDC HOT 7
- Ubuntu 22.04, Unable to locate package liblwgeom-dev
- MobilityDB build issues Ubuntu 22.04, PostGres 14.4
- `asMVTGeom` producing incorrect timestamps HOT 6
- casting question
- Document spelling errors. HOT 3
- Data types precision? HOT 9
- Second call to stbox returns, SQL Error [XX000]: ERROR: Unknown geometry type: 0 - Unknown HOT 3
- expandspatial artifact or incorrect call? HOT 15
- It is not very clear how to work with SequenceSets in the documentation - trying to split trajectories into sequencesets.
- SEGFAULT when using STBOX overlap join. HOT 5
- The MFJSON format (in 5.12.1. Input/Output Functions) does not follow the standard version (OGC 19-045r3). HOT 1
- MobilityDB and postgis-trajenctory HOT 6
- `atGeometry` splits into sequences even when no split should occur. (development branch) HOT 10
- SRID is lost during serialization of STBOX, TGeomPoint etc. HOT 4
- Issues with installation instructions on Ubuntu 20.04. HOT 1
- `spaceSplit(tgeompoint, integer)` returns different results with bitmatrix on vs off. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mobilitydb.