paradigm4 / dev_tools Goto Github PK
View Code? Open in Web Editor NEWTools for installing SciDB plugins from GitHub
License: GNU Affero General Public License v3.0
Tools for installing SciDB plugins from GitHub
License: GNU Affero General Public License v3.0
In the archives created by GitHub from branches, the directories do not contain the v
prefix used in the branch name. Here is one example:
> wget https://github.com/paradigm4/grouped_aggregate/archive/v15.7.tar.gz
> tar -zxvf 15.7.tar.gz
grouped_aggregate-15.7/
grouped_aggregate-15.7/AggregateHashTable.h
...
Notice how the directory inside the archive is grouped_aggregate-15.7
and not grouped_aggregate-v15.7
.
For this reason, install_github
operator fails when a branch is used. Here is the iquery
output:
AFL% load_library('dev_tools');
Query was executed successfully
AFL% install_github('Paradigm4/grouped_aggregate`, 'v15.7');
SystemException in file: Physicalinstall_github.cpp function: execute line: 118
Error id: scidb::SCIDB_SE_OPERATOR::SCIDB_LE_ILLEGAL_OPERATION
Error description: Operator error. Illegal operation: failed to build plugin.
And here is the scidb-stderr.log
output:
sh: 1: cd: can't cd to /tmp/install_github_atP3WB/*-v15.7
make: *** No targets specified and no makefile found. Stop.
Notice how the directory name in which the operator tries to cd
contains v
in front of the branch version, as specified in the operator branch
argument.
The second commit in the pull request #4 869a790 is a patch to address this issue. The patch checks for v
prefix in the branch
and uses the branch
without the v
prefix for accessing the directory of the source code. The patch has been tested and works on SciDB 15.7
.
I get with commit 8c388e5:
iquery -aq "load_library('devtools')"
SystemException in file: src/network/BaseConnection.h function: receive line: 426
Error id: scidb::SCIDB_SE_NETWORK::SCIDB_LE_CANT_SEND_RECEIVE
Error description: Network error. Cannot receive network message: Read failed: End of file (asio.misc:2). An instance may be offline..
It appears that the operator would need to be updated in order to work on 19.3
. Trying to build it, I get:
> make
Using SciDB path /opt/scidb/19.3
"/usr/bin/g++-4.9" -pedantic -W -Wextra -Wall -Wno-variadic-macros -Wno-strict-aliasing -Wno-long-long -Wno-unused-parameter -fPIC -DSCIDB_VARIANT=1903 -O2 -DNDEBUG -std=c++14 -DCPP14 -I. -DPROJECT_ROOT="\"/opt/scidb/19.3\"" -I"/opt/scidb/19.3/3rdparty/boost/include/" -I"/opt/scidb/19.3/include" -I./extern -o Logicalinstall_github.o -c Logicalinstall_github.cpp
Logicalinstall_github.cpp:1:28: fatal error: query/Operator.h: No such file or directory
#include "query/Operator.h"
^
compilation terminated.
make: *** [libdev_tools.so] Error 1
dev_tools cannot be used (with some options) to install private GitHub repos of Paradigm4. Throws an error (something like: cannot find repo...
).
The alternate is the manual method:
make
inside the repo folder*.so
file(s) to <SCIDB_DIR>/lib/scidb/plugins
scidb.py stopall DBNAME
, and then scidb.py startall DBNAME
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.