question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Electron beta appears to use system zlib, can conflict with sharp

See original GitHub issue

https://github.com/lovell/sharp/issues/843#issuecomment-318771819 reported by @Apophenia

ELECTRON_ASAR.js:173 Uncaught Error: /lib/x86_64-linux-gnu/libz.so.1: version `ZLIB_1.2.9' not found (required by /[path]/electron-quick-start/node_modules/sharp/build/Release/../../vendor/lib/libpng16.so.16)
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:173:20)
    at Object.Module._extensions..node (module.js:598:18)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:173:20)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> ([path]/electron-quick-start/node_modules/sharp/lib/constructor.js:9:15)
    at Object.<anonymous> ([path]/electron-quick-start/node_modules/sharp/lib/constructor.js:234:3)

Electron v1.7.5 beta

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:37 (16 by maintainers)

github_iconTop GitHub Comments

2reactions
manikmicommented, Nov 5, 2017

I am running on my local ubuntu 14.04 VM. Setting up the environment variable using the following command did NOT work for me. LD_PRELOAD="/app/node_modules/sharp/vendor/lib/libz.so" However, copying the libz.so* to /lib/x86_64-linux-gnu/ worked for me cp /app/node_modules/sharp/vendor/lib/libz.so* /lib/x86_64-linux-gnu/

2reactions
lovellcommented, Jul 31, 2017

Possible workaround for systems that still provide only zlib 1.2.8 would be to use something like:

LD_PRELOAD=/path/to/node_modules/sharp/vendor/lib/libz.so electron ...
Read more comments on GitHub >

github_iconTop Results From Across the Web

Electron beta appears to use system zlib, can conflict with sharp
Electron beta appears to use system zlib, can conflict with sharp.
Read more >
bSB - River Thames Conditions - Environment Agency - GOV.UK
2006 mini cooper s timing chain or belt, Zuiderpoort dordrecht nieuwbouw, Chateau de salettes wine, Bydgoszcz uniwersytet kierunki, Al mushrif wedding hall ...
Read more >
Chem3D 17.0 User Guide - University of York
Chem3D is compatible with Microsoft Office 2013 and Windows 8.1 for both 32 and 64 bit machines. Depiction and animation of GAMESS IR...
Read more >
This package contains third-party software components governed by ...
This package is comprised of multiple separate components each with their own licensing requirements. There is some Unity wrapper code in the package...
Read more >
History of Ghostscript versions 9.n
Ken Sharp <ken.sharp@artifex.com> ... pdfwrite doesn't use it for clipping but very much does use it for ... build is picking up the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found