Skip to content
This repository has been archived by the owner on Dec 3, 2018. It is now read-only.

can not install mapbox #1581

Open
irisda opened this issue Jan 18, 2018 · 9 comments
Open

can not install mapbox #1581

irisda opened this issue Jan 18, 2018 · 9 comments

Comments

@irisda
Copy link

irisda commented Jan 18, 2018

has anyone inatall mapbox stduio?
i ahve a lot of errors and i do not know how

@alexey-gl
Copy link

I also have problems with installation.
Could anyone tell about possible solutions please.

Installation log is:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node8', '/usr/bin/npm-default', 'install' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session 3588b2f453809222
5 silly install runPreinstallTopLevelLifecycles
6 silly preinstall [email protected]
7 info lifecycle [email protected]~preinstall: [email protected]
8 verbose lifecycle [email protected]~preinstall: unsafe-perm in lifecycle true
9 verbose lifecycle [email protected]~preinstall: PATH: /usr/lib64/node_modules/npm8/node_modules/npm-lifecycle/node-gyp-bin:/home/agladkov/repos/misc/mapbox-studio-classic/node_modules/.bin:/usr/lib64/mpi/gcc/openmpi/bin:/home/agladkov/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/home/agladkov/Android/Sdk/tools/:/home/agladkov/Android/Sdk/platform-tools/:/home/agladkov/Android/Sdk/tools/:/home/agladkov/Android/Sdk/platform-tools/
10 verbose lifecycle [email protected]~preinstall: CWD: /home/agladkov/repos/misc/mapbox-studio-classic
11 silly lifecycle [email protected]~preinstall: Args: [ '-c', 'node scripts/run.js scripts/vendor-node.sh' ]
12 silly lifecycle [email protected]~preinstall: Returned: code: 22  signal: null
13 info lifecycle [email protected]~preinstall: Failed to exec preinstall script
14 verbose stack Error: [email protected] preinstall: `node scripts/run.js scripts/vendor-node.sh`
14 verbose stack Exit status 22
14 verbose stack     at EventEmitter.<anonymous> (/usr/lib64/node_modules/npm8/node_modules/npm-lifecycle/index.js:285:16)
14 verbose stack     at emitTwo (events.js:126:13)
14 verbose stack     at EventEmitter.emit (events.js:214:7)
14 verbose stack     at ChildProcess.<anonymous> (/usr/lib64/node_modules/npm8/node_modules/npm-lifecycle/lib/spawn.js:55:14)
14 verbose stack     at emitTwo (events.js:126:13)
14 verbose stack     at ChildProcess.emit (events.js:214:7)
14 verbose stack     at maybeClose (internal/child_process.js:925:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
15 verbose pkgid [email protected]
16 verbose cwd /home/agladkov/repos/misc/mapbox-studio-classic
17 verbose Linux 4.15.13-1-default
18 verbose argv "/usr/bin/node8" "/usr/bin/npm-default" "install"
19 verbose node v8.10.0
20 verbose npm  v5.6.0
21 error code ELIFECYCLE
22 error errno 22
23 error [email protected] preinstall: `node scripts/run.js scripts/vendor-node.sh`
23 error Exit status 22
24 error Failed at the [email protected] preinstall script.
24 error This is probably not a problem with npm. There is likely additional logging output above.

@georgbachmann
Copy link

I also can't install... did you find a solution yet?
For me its

Failed to execute '/usr/local/Cellar/node/10.8.0/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/georgbachmann/Desktop/mapbox-studio-classic/mapbox-studio-classic/node_modules/gdal/lib/binding/gdal.node --module_name=gdal --module_path=/Users/georgbachmann/Desktop/mapbox-studio-classic/mapbox-studio-classic/node_modules/gdal/lib/binding' (1)
  CC(target) Release/obj.target/libgdal/deps/libgdal/gdal/ogr/osr_cs_wkt_parser.o install script
  CXX(target) Release/obj.target/libgdal/deps/libgdal/gdal/ogr/gml2ogrgeometry.oc install script
In file included from ../deps/libgdal/gdal/ogr/gml2ogrgeometry.cpp:43:led to exec install script
In file included from /usr/local/include/ogr_geometry.h:35:
In file included from /usr/local/include/cpl_conv.h:36:
/usr/local/include/cpl_vsi.h:95:37: error: C++ requires a type specifier for all declarations
int CPL_DLL     VSIFPrintf( FILE *, CPL_FORMAT_STRING(const char *), ... ) EXPERIMENTAL_CPL_WARN_UNUSED_RESULT CPL_PRINT_FUNC_FORMAT(2, 3);
                                    ^
/usr/local/include/cpl_vsi.h:95:112: error: format argument not a string type
int CPL_DLL     VSIFPrintf( FILE *, CPL_FORMAT_STRING(const char *), ... ) EXPERIMENTAL_CPL_WARN_UNUSED_RESULT CPL_PRINT_FUNC_FORMAT(2, 3);
                                                                                                               ^                     ~
../deps/libgdal/gdal/port/cpl_port.h:580:70: note: expanded from macro 'CPL_PRINT_FUNC_FORMAT'
#define CPL_PRINT_FUNC_FORMAT( format_idx, arg_idx )  __attribute__((__format__ (__printf__, format_idx, arg_idx)))
                                                                     ^                       ~~~~~~~~~~
In file included from ../deps/libgdal/gdal/ogr/gml2ogrgeometry.cpp:43:
In file included from /usr/local/include/ogr_geometry.h:35:
In file included from /usr/local/include/cpl_conv.h:36:
/usr/local/include/cpl_vsi.h:170:42: error: C++ requires a type specifier for all declarations
int CPL_DLL     VSIFPrintfL( VSILFILE *, CPL_FORMAT_STRING(const char *), ... ) EXPERIMENTAL_CPL_WARN_UNUSED_RESULT CPL_PRINT_FUNC_FORMAT(2, 3);
                                         ^
/usr/local/include/cpl_vsi.h:170:117: error: format argument not a string type
int CPL_DLL     VSIFPrintfL( VSILFILE *, CPL_FORMAT_STRING(const char *), ... ) EXPERIMENTAL_CPL_WARN_UNUSED_RESULT CPL_PRINT_FUNC_FORMAT(2, 3);
                                                                                                                    ^                     ~
../deps/libgdal/gdal/port/cpl_port.h:580:70: note: expanded from macro 'CPL_PRINT_FUNC_FORMAT'
#define CPL_PRINT_FUNC_FORMAT( format_idx, arg_idx )  __attribute__((__format__ (__printf__, format_idx, arg_idx)))
                                                                     ^                       ~~~~~~~~~~
In file included from ../deps/libgdal/gdal/ogr/gml2ogrgeometry.cpp:43:
In file included from /usr/local/include/ogr_geometry.h:35:
In file included from /usr/local/include/cpl_conv.h:36:
/usr/local/include/cpl_vsi.h:218:57: error: unknown type name 'CSLConstList'
char CPL_DLL *VSIGetSignedURL( const char* pszFilename, CSLConstList papszOptions );
                                                        ^
In file included from ../deps/libgdal/gdal/ogr/gml2ogrgeometry.cpp:43:
In file included from /usr/local/include/ogr_geometry.h:35:
In file included from /usr/local/include/cpl_conv.h:37:
/usr/local/include/cpl_error.h:139:61: error: C++ requires a type specifier for all declarations
void CPL_DLL CPLError(CPLErr eErrClass, CPLErrorNum err_no, CPL_FORMAT_STRING(const char *fmt), ...)  CPL_PRINT_FUNC_FORMAT (3, 4);
                                                            ^
/usr/local/include/cpl_error.h:139:103: error: format argument not a string type
void CPL_DLL CPLError(CPLErr eErrClass, CPLErrorNum err_no, CPL_FORMAT_STRING(const char *fmt), ...)  CPL_PRINT_FUNC_FORMAT (3, 4);
                                                                                                      ^                      ~
../deps/libgdal/gdal/port/cpl_port.h:580:70: note: expanded from macro 'CPL_PRINT_FUNC_FORMAT'
#define CPL_PRINT_FUNC_FORMAT( format_idx, arg_idx )  __attribute__((__format__ (__printf__, format_idx, arg_idx)))
                                                                     ^                       ~~~~~~~~~~
In file included from ../deps/libgdal/gdal/ogr/gml2ogrgeometry.cpp:43:
In file included from /usr/local/include/ogr_geometry.h:35:
In file included from /usr/local/include/cpl_conv.h:37:
/usr/local/include/cpl_error.h:171:49: error: C++ requires a type specifier for all declarations
void CPL_DLL CPL_STDCALL CPLDebug(const char *, CPL_FORMAT_STRING(const char *), ...)
                                                ^
/usr/local/include/cpl_error.h:172:5: error: format argument not a string type
    CPL_PRINT_FUNC_FORMAT(2, 3);
    ^                     ~
../deps/libgdal/gdal/port/cpl_port.h:580:70: note: expanded from macro 'CPL_PRINT_FUNC_FORMAT'
#define CPL_PRINT_FUNC_FORMAT( format_idx, arg_idx )  __attribute__((__format__ (__printf__, format_idx, arg_idx)))
                                                                     ^                       ~~~~~~~~~~
In file included from ../deps/libgdal/gdal/ogr/gml2ogrgeometry.cpp:43:led to exec install script
In file included from /usr/local/include/ogr_geometry.h:35:
/usr/local/include/cpl_conv.h:77:64: error: expected function body after function declarator
char CPL_DLL *CPLStrdup( const char * ) CPL_WARN_UNUSED_RESULT CPL_RETURNS_NONNULL;
                                                               ^
/usr/local/include/cpl_conv.h:89:53: error: unknown type name 'CSLConstList' exec install script
const char CPL_DLL *CPLReadLine2L( VSILFILE *, int, CSLConstList );
                                                    ^
/usr/local/include/cpl_conv.h:90:60: error: unknown type name 'CSLConstList'
const char CPL_DLL *CPLReadLine3L( VSILFILE *, int, int *, CSLConstList );
                                                           ^
/usr/local/include/cpl_conv.h:147:71: error: expected function body after function declarator
const char CPL_DLL *CPLGetPath( const char * ) CPL_WARN_UNUSED_RESULT CPL_RETURNS_NONNULL;
                                                                      ^
/usr/local/include/cpl_conv.h:148:74: error: expected function body after function declarator
const char CPL_DLL *CPLGetDirname( const char * ) CPL_WARN_UNUSED_RESULT CPL_RETURNS_NONNULL;
                                                                         ^
/usr/local/include/cpl_conv.h:149:75: error: expected function body after function declarator
const char CPL_DLL *CPLGetFilename( const char * ) CPL_WARN_UNUSED_RESULT CPL_RETURNS_NONNULL;
                                                                          ^
/usr/local/include/cpl_conv.h:150:75: error: expected function body after function declarator
const char CPL_DLL *CPLGetBasename( const char * ) CPL_WARN_UNUSED_RESULT CPL_RETURNS_NONNULL;
                                                                          ^
/usr/local/include/cpl_conv.h:151:76: error: expected function body after function declarator
const char CPL_DLL *CPLGetExtension( const char * ) CPL_WARN_UNUSED_RESULT CPL_RETURNS_NONNULL;
                                                                           ^
/usr/local/include/cpl_conv.h:155:88: error: expected function body after function declarator
                                     const char *pszExtension ) CPL_WARN_UNUSED_RESULT CPL_RETURNS_NONNULL;
                                                                                       ^
/usr/local/include/cpl_conv.h:158:90: error: expected function body after function declarator
                                       const char *pszExtension ) CPL_WARN_UNUSED_RESULT CPL_RETURNS_NONNULL;
                                                                                         ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated. ⠇ install: info lifecycle [email protected]~install: Failed to exec install script
make: *** [Release/obj.target/libgdal/deps/libgdal/gdal/ogr/gml2ogrgeometry.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:238:12)
gyp ERR! System Darwin 17.7.0
gyp ERR! command "/usr/local/Cellar/node/10.8.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/georgbachmann/Desktop/mapbox-studio-classic/mapbox-studio-classic/node_modules/gdal/lib/binding/gdal.node" "--module_name=gdal" "--module_path=/Users/georgbachmann/Desktop/mapbox-studio-classic/mapbox-studio-classic/node_modules/gdal/lib/binding"
gyp ERR! cwd /Users/georgbachmann/Desktop/mapbox-studio-classic/mapbox-studio-classic/node_modules/gdal
gyp ERR! node -v v10.8.0
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

@m4x-h4xx
Copy link

m4x-h4xx commented Aug 7, 2018

I want to chime in - installation is failing, build is broken.
For me, it is failing when attempting to build the native gdal library:
node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/user/code/mapbox-studio-classic/node_modules/gdal/lib/binding/gdal.node --module_name=gdal --module_path=/home/user/code/mapbox-studio-classic/node_modules/gdal/lib/binding' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/home/user/code/mapbox-studio-classic/node_modules/gdal/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:962:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:249:5) node-pre-gyp ERR! System Linux 4.9.0-6-amd64 node-pre-gyp ERR! command "/usr/bin/node" "/home/user/code/mapbox-studio-classic/node_modules/gdal/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /home/user/code/mapbox-studio-classic/node_modules/gdal node-pre-gyp ERR! node -v v10.8.0 node-pre-gyp ERR! node-pre-gyp -v v0.6.15 node-pre-gyp ERR! not ok Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/user/code/mapbox-studio-classic/node_modules/gdal/lib/binding/gdal.node --module_name=gdal --module_path=/home/user/code/mapbox-studio-classic/node_modules/gdal/lib/binding' (1) ../deps/libgdal/gdal/ogr/ogrsf_frmts/generic/ogrlayerpool.cpp:579:1: fatal error: opening dependency file ./Release/.deps/Release/obj.target/libgdal/deps/libgdal/gdal/ogr/ogrsf_frmts/generic/ogrlayerpool.o.d.raw: No such file or directory }

I will probably not attempt to build this software again - currently, their CI is failing and the project has not received any care during the last few months. Actively looking for an alternative that is receiving support.

@ajhalls
Copy link

ajhalls commented Aug 16, 2018

I tried it too, seems they want everyone to use the new commercialized version.

@ma2rten
Copy link

ma2rten commented Aug 20, 2018

I was able to install using an older version of node.js (v4.9.1). You can use nvm to switch between nodejs version.

However, when I tried to create a new style it crashed because it ran out of memory.

@DanielRuf
Copy link

Same here, no chance with Yarn and npm.

@DanielRuf
Copy link

This is not great.

@DanielRuf
Copy link

@DanielRuf
Copy link

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants