Skip to content

Commit 906724f

Browse files
committed
update for Node.js v12
1 parent 8da19a4 commit 906724f

File tree

1 file changed

+59
-38
lines changed

1 file changed

+59
-38
lines changed

README.md

Lines changed: 59 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -9,41 +9,41 @@ GridDB Node.JS Client is developed using GridDB C Client and [SWIG](http://www.s
99
Building of the library and execution of the sample programs have been checked in the following environment.
1010

1111
OS: CentOS 7.6(x64) (GCC 4.8.5)
12-
SWIG: 4.0.0
13-
Node.js: v8/v10
14-
GridDB C client: V4.2 CE(Community Edition)
15-
GridDB server: V4.2 CE, CentOS 7.6(x64) (GCC 4.8.5)
16-
17-
OS: Ubuntu 18.04(x64) (gcc 7.3.0)
18-
SWIG: 4.0.0
19-
Node.js: v8/v10
20-
GridDB C client: V4.2 CE (Note: If you build from source code, please use GCC 4.8.5.)
21-
GridDB server: V4.2 CE, Ubuntu 18.04(x64) (Note: If you build from source code, please use GCC 4.8.5.)
12+
SWIG: The development (master) version (commit ID 113d78a083aa897ffdca4ff6bd9b42e630d16d27(2020/4/7))
13+
Node.js: v12
14+
GridDB C client: V4.6 CE(Community Edition)
15+
GridDB server: V4.6 CE, CentOS 7.9 (GCC 4.8.5)
16+
17+
OS: Ubuntu 20.04(x64) (gcc 10.2.0)
18+
SWIG: The development (master) version (commit ID 113d78a083aa897ffdca4ff6bd9b42e630d16d27(2020/4/7))
19+
Node.js: v12
20+
GridDB C client: V4.6 CE(Community Edition)
21+
GridDB server: V4.6 CE, CentOS 7.9 (GCC 4.8.5)
2222

2323
OS: Windows 10(x64) (VS2017)
24-
SWIG: 4.0.0
25-
Node.js: v8
26-
GridDB C client: V4.2 CE
27-
GridDB server: V4.2 CE, CentOS 7.6(x64) (GCC 4.8.5)
24+
SWIG: The development (master) version (commit ID 27f29aef2cf00735172c28d331536d0069b0f1f4(2021/3/2))
25+
Node.js: v12
26+
GridDB C client: V4.6 CE(Community Edition)
27+
GridDB server: V4.6 CE, CentOS 7.9 (GCC 4.8.5)
28+
29+
Note: We can build and run Node.JS Client with SWIG 4.0.2 for Node.js v10.
2830

2931
## QuickStart (CentOS, Ubuntu)
3032
### Preparations
3133

32-
Install SWIG as below.
33-
34-
$ wget https://prdownloads.sourceforge.net/swig/swig-4.0.0.tar.gz
35-
$ tar xvfz swig-4.0.0.tar.gz
36-
$ cd swig-4.0.0
37-
$ ./configure
38-
$ make
39-
$ sudo make install
40-
41-
Note: If CentOS, you might need to install pcre in advance.
42-
$ sudo yum install pcre2-devel.x86_64
34+
Install SWIG:
35+
- Checkout SWIG with the upper commit ID at https://github.com/swig/swig
36+
- Run commands below in command line at SWIG folder:
37+
```
38+
./autogen.sh
39+
./configure
40+
make
41+
sudo make install
42+
```
4343

44-
Install [GridDB Server](https://github.com/griddb/griddb_nosql) and [C Client](https://github.com/griddb/c_client). (Note: If you build them from source code, please use GCC 4.8.5.)
44+
Install [GridDB Server](https://github.com/griddb/griddb) and [C Client](https://github.com/griddb/c_client). (Note: If you build them from source code, please use GCC 4.8.5.)
4545

46-
Install Node.js(v8 or v10).
46+
Install Node.js(v12).
4747

4848
If required, change INCLUDES_JS path in Makefile.
4949

@@ -81,17 +81,40 @@ GridDB Server need to be started in advance.
8181
## QuickStart (Windows)
8282
### Preparations
8383

84+
Install CMake
85+
- Download and install package from https://github.com/Kitware/CMake/releases/download/v3.15.2/cmake-3.15.2-win64-x64.msi
86+
87+
Install Nuget
88+
- Download and install package from https://www.nuget.org/downloads (installed to C:\Tools)
89+
90+
Install Bison using the following command:
91+
92+
C:\Tools\nuget install bison-win32 -Version 2.4.1.1 -OutputDirectory C:\Tools\bison
93+
94+
Install PCRE using Nuget using the following command:
95+
96+
C:\Tools\nuget install pcre -Version 8.33.0.1 -OutputDirectory C:\Tools\pcre
97+
8498
Install SWIG as below.
85-
- Download zip package from http://prdownloads.sourceforge.net/swig/swigwin-4.0.0.zip
86-
- Extract the zip package then set path for SWIG_RESOURCE in CmakeList.txt.
99+
- Checkout SWIG with the upper commit ID at https://github.com/swig/swig
100+
- Run commands below in cmd at SWIG folder:
101+
```
102+
SET PATH=D:\Projects\bison\bison-win32.2.4.1.1\tools\native\bin;%PATH%
103+
SET PCRE_ROOT=D:\Projects\pcre\pcre.8.33.0.1\build\native
104+
SET PCRE_PLATFORM=x64
105+
cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_INSTALL_PREFIX="%CD:\=/%/install2" -DCMAKE_C_FLAGS="/DPCRE_STATIC /MT" -DCMAKE_CXX_FLAGS="/DPCRE_STATIC /MT" -DPCRE_INCLUDE_DIR=%PCRE_ROOT%/include -DPCRE_LIBRARY=%PCRE_ROOT%/lib/v110/%PCRE_PLATFORM%/Release/static/utf8/pcre8.lib .
106+
cmake --build . --config Release
107+
```
108+
109+
- Set path for SWIG_RESOURCE in CmakeList.txt.
87110
```
88-
set(SWIG_RESOURCE C:/Users/User/Downloads/swigwin-4.0.0)
111+
set(SWIG_RESOURCE /PATH/TO/SWIG/FOLDER)
89112
```
90113

91-
Install Node.js(v8)
92-
- Download and install package from https://nodejs.org/dist/latest-v8.x/node-v8.16.1-x64.msi
114+
Install Node.js(v12)
115+
- Download and install package from https://nodejs.org/dist/v12.13.0/node-v12.13.0-x64.msi
93116

94-
Install [GridDB Server](https://github.com/griddb/griddb_nosql) on CentOS. (Note: If you build them from source code, please use GCC 4.8.5.)
117+
Install [GridDB Server](https://github.com/griddb/griddb) on CentOS. (Note: If you build them from source code, please use GCC 4.8.5.)
95118

96119
Install GridDB C Client.
97120
- Please refer to https://github.com/griddb/c_client to install GridDB C client.
@@ -100,12 +123,11 @@ Install GridDB C Client.
100123
set(C_LIB C:/Users/User/Downloads/griddb_c_lib)
101124
```
102125

103-
Install CMake
104-
- Download and install package from https://github.com/Kitware/CMake/releases/download/v3.15.2/cmake-3.15.2-win64-x64.msi
105-
106126
Install Cmake-js
107127
- Use command line:
108-
npm install cmake-js
128+
```
129+
npm install cmake-js
130+
```
109131

110132
### Build and Run in cmd
111133

@@ -167,7 +189,6 @@ Please refer to the following files for more detailed information.
167189
Note:
168190
1. The current API might be changed in the next version. e.g. ContainerInfo()
169191
2. There is [Node.JS Client (0.8.4) Package for CentOS and Ubuntu on npm](https://www.npmjs.com/package/griddb_node) .
170-
3. Cmake-js only support node v8
171192
172193
## Community
173194

0 commit comments

Comments
 (0)