Open azizul-bkash opened 6 years ago
Apparently you can only use Node v6
Make sure you have Node.js version 6 installed (running node -v it should output something like v6.11.3).
6.14.4
Hi all, same issue here, same node version used. Any news? Thanks!
node -v
=> 6.11.3
here
no such file or directory, rename '/Users/user/.nvm/versions/node/v6.11.3/lib/node_modules/.staging/@mapbox/point-geometry-5f956679' -> '/Users/user/.nvm/versions/node/v6.11.3/lib/node_modules/tileserver-gl/node_modules/@mapbox/point-geometry'
npm_config_user=root npm install -g tileserver-gl
@dobrildobrilov Perfect installation....But after installation when I am trying to run the following command with custom mbtiles its returning following wrror
admin@gisserver:/opt/maps$ sudo tileserver-gl aaa.mbtiles
Starting tileserver-gl v2.4.0
Automatically creating config file for aaa.mbtiles
WARN: MBTiles not in "openmaptiles" format. Serving raw data only...
Run with --verbose to see the config file here.
module.js:604
return process.dlopen(module, path._makeLong(filename));
^
Error: libGLESv2.so.2: cannot open shared object file: No such file or directory
at Error (native)
at Object.Module._extensions..node (module.js:604:18)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Module.require (module.js:504:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/usr/lib/node_modules/tileserver-gl/node_modules/@mapbox/mapbox-gl-native/platform/node/index.js:5:12)
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
@azizul-bkash maybe you can try
apt search libGLES
then apt install the package you need, this package libgles2-mesa
is about OpenGL API
npm_config_user=root npm install -g tileserver-gl
This also did it for me, thanks a lot. Could anyone add it to Readme please?
then apt install the package you need, this package
libgles2-mesa
is about OpenGL API
I had the same problem, but now also libegl-mesa0
needs to be installed. So these are needed on Debian Stretch: apt install libgles2-mesa libegl1-mesa
I have tried everything listed here and still get the error. Any other ideas?
I am also having this issue.
My process was:
npm install -g tileserver-gl
The output was:
npm ERR! Linux 4.15.0-1021-aws
npm ERR! argv "/home/ubuntu/.nvm/versions/node/v6.14.4/bin/node" "/home/ubuntu/.nvm/versions/node/v6.14.4/bin/npm" "install" "-g" "tileserver-gl"
npm ERR! node v6.14.4
npm ERR! npm v3.10.10
npm ERR! path /home/ubuntu/.nvm/versions/node/v6.14.4/lib/node_modules/.staging/@mapbox/point-geometry-0bb7a5e2
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/home/ubuntu/.nvm/versions/node/v6.14.4/lib/node_modules/.staging/@mapbox/point-geometry-0bb7a5e2' -> '/home/ubuntu/.nvm/versions/node/v6.14.4/lib/node_modules/tileserver-gl/node_modules/@mapbox/point-geometry'
npm ERR! enoent ENOENT: no such file or directory, rename '/home/ubuntu/.nvm/versions/node/v6.14.4/lib/node_modules/.staging/@mapbox/point-geometry-0bb7a5e2' -> '/home/ubuntu/.nvm/versions/node/v6.14.4/lib/node_modules/tileserver-gl/node_modules/@mapbox/point-geometry'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /home/ubuntu/npm-debug.log
npm ERR! code 1
The same output occurs when I run npm_config_user=root npm install -g tileserver-gl
.
Try using the exact node version 6.11.3 and uninstall/reinstall the tileserver-gl package via npm.
Worked for me under Ubuntu 16.04.5 LTS
@StefanAtUeber thanks for responding, but I am seeing the same result using version 6.11.3
npm ERR! Linux 4.15.0-1021-aws
npm ERR! argv "/home/ubuntu/.nvm/versions/node/v6.11.3/bin/node" "/home/ubuntu/.nvm/versions/node/v6.11.3/bin/npm" "install" "-g" "tileserver-gl"
npm ERR! node v6.11.3
npm ERR! npm v3.10.10
npm ERR! path /home/ubuntu/.nvm/versions/node/v6.11.3/lib/node_modules/.staging/@mapbox/point-geometry-b1dea8e6
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/home/ubuntu/.nvm/versions/node/v6.11.3/lib/node_modules/.staging/@mapbox/point-geometry-b1dea8e6' -> '/home/ubuntu/.nvm/versions/node/v6.11.3/lib/node_modules/tileserver-gl/node_modules/@mapbox/point-geometry'
npm ERR! enoent ENOENT: no such file or directory, rename '/home/ubuntu/.nvm/versions/node/v6.11.3/lib/node_modules/.staging/@mapbox/point-geometry-b1dea8e6' -> '/home/ubuntu/.nvm/versions/node/v6.11.3/lib/node_modules/tileserver-gl/node_modules/@mapbox/point-geometry'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /home/ubuntu/npm-debug.log
npm ERR! code 1
Can you please check that you use the root user, not the ubuntu user? Cause all of your paths are within the home directory of user ubuntu, which is default on aws.
I am also facing the same problem even when I run npm_config_user=root npm install -g tileserver-gl
I am using node v6.17.3 in a Ubuntu16.04 machine and when I tried to install tileserver-gl
via npm using npm install -g tileserver-gl
it fails with the following error
npm ERR! canvas@1.6.13 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the canvas@1.6.13 install script 'node-gyp rebuild'.
But I can install tileserver-gl-light without any error using npm. I followed the instructions from here
node v6.17.3
via node --version
tileserver-gl
using npm
via npm install -g tileserver-gl
@Fa7C0n you are missing node-canvas dependencies, so it does not compile. See https://github.com/Automattic/node-canvas/tree/v1.x#installation
@petrsloup Thanks for the help, it worked after installing canvas
.
npm WARN deprecated hoek@2.16.3: The major version is no longer supported. Please update to 4.x or newer npm WARN lifecycle @mapbox/mapbox-gl-native@3.5.4~preinstall: cannot run in wd %s %s (wd=%s) @mapbox/mapbox-gl-native@3.5.4 npm install node-pre-gyp /usr/lib/node_modules/.staging/@mapbox/mapbox-gl-native-6eb8f479 /usr/bin/tileserver-gl -> /usr/lib/node_modules/tileserver-gl/src/main.js
node-pre-gyp WARN Using request for node-pre-gyp https download [sqlite3] Success: "/usr/lib/node_modules/tileserver-gl/node_modules/sqlite3/lib/binding/node-v48-linux-x64/node_sqlite3.node" is installed via remote
[@mapbox/mapbox-gl-native] Success: "/usr/lib/node_modules/tileserver-gl/node_modules/@mapbox/mapbox-gl-native/lib/mapbox_gl_native.node" is installed via remote
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/6.14.4" gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/tileserver-gl/node_modules/canvas/.node-gyp" ./util/has_lib.sh: 31: ./util/has_lib.sh: pkg-config: not found gyp: Call to './util/has_lib.sh freetype' returned exit status 0 while in binding.gyp. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error:
gyp
failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:305:16) gyp ERR! stack at emitTwo (events.js:106:13) gyp ERR! stack at ChildProcess.emit (events.js:191:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12) gyp ERR! System Linux 4.4.0-1066-aws gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/lib/node_modules/tileserver-gl/node_modules/canvas gyp ERR! node -v v6.14.4 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok /usr/lib └── (empty)npm ERR! Linux 4.4.0-1066-aws npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "tileserver-gl" npm ERR! node v6.14.4 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE
npm ERR! canvas@1.6.12 install:
node-gyp rebuild
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the canvas@1.6.12 install script 'node-gyp rebuild'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the canvas package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs canvas npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls canvas npm ERR! There is likely additional logging output above.npm ERR! Please include the following file with any support request: npm ERR! /opt/vectormaps/npm-debug.log npm ERR! code 1