mooz / node-icu-charset-detector

A simple binding of ICU character set detection for Node.js
MIT License
86 stars 22 forks source link

libicui18n.so.52: cannot open shared object file: no such file or directory #11

Closed japrescott closed 10 years ago

japrescott commented 10 years ago

Hello, I'm getting the above error while using node-icu-charset-detector on line 1:82. On the line where it should include the compiled module. This worked like a charm for months and suddently I'm getting this error. I'm using ubuntu and docker and have installed libicu-dev prior to installing node-icu-charset-detector via npm.

module.js:356 Module._extensions[extension](this, filename); ^ Error: libicui18n.so.52: cannot open shared object file: No such file or directory at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at Object. (/app/node_modules/node-icu-charset-detector/node-icu-charset-detector.js:1:82) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) worker 53 died (8). restarting...

Any hint how this can be corrected?

mooz commented 10 years ago

Could you tell me the following information?

  1. The result of locate libicui18n in your system "ubuntu".
  2. Is your "ubuntu" environment run inside docker, or is it a host environment having some containers using docker?
japrescott commented 10 years ago

Hello Mooz. Thanks for getting back to me on this issue! libicu is beeing used within a docker container and not on the host. But I've been able to resolve this issue and have written up the solution; http://stackoverflow.com/a/23184935/809423

The weird part that I dont get is, how or why I got a icu lib that relied on the ubuntu 14.04 repository, when I grabbed that lib from the 12.04 repo?! Doesn't make sense that this happens out of thin air. But your repo doesn't show any changes since months and I didn't find anything within the repos. For now, I am just happy to have resolved this issue :)