charlock_holmes icon indicating copy to clipboard operation
charlock_holmes copied to clipboard

libicui18n.so.48: cannot open shared object file

Open Marchino opened this issue 13 years ago • 19 comments

Hi everybody, I tried to use this gem within my development environment (mac osx, installed icu4c from source), and everything worked just fine.

On staging environment, though, the gem installed fine, but whenever I run a rake task this is what i get:

libicui18n.so.48: cannot open shared object file: No such file or directory - /path/to/my/app/shared/bundle/ruby/1.9.1/gems/charlock_holmes-0.6.8/ext/charlock_holmes/charlock_holmes.so

I tried building the gem specifyng a path (I set it to the place where libicui18n.so.48 lives) as explained in the readme, but no luck :(

Does anyone know what's going on?

Thanks

Marco

Marchino avatar Jan 24 '12 13:01 Marchino

What I don't understand is why the gem installation doesn't give errors even if i build it with a non existing path or with no path at all...

I tried :

  • bundle install
  • bundle config build.charlock_holmes --with-icu-dir=/usr/local/lib/icu/current; bundle install
  • bundle config build.charlock_holmes --with-icu-dir=/a/path/that/does/not/even/exist; bundle install

No one of those tries gave errors, but running rake tasks yielded the aforementioned error.

I even tried with different versions of icu (all compiled from source), but no luck...

ideas?

Marchino avatar Jan 24 '12 14:01 Marchino

For us it worked once we pointed the icu-dir to /usr/local/lib

khelal avatar Mar 24 '13 07:03 khelal

You probably aren't having this problem anymore, but perhaps others are (I just got this error).

My (overkill) solution was to reinstall the bundle: mv /home/git/gitlab/vendor/bundle/ruby /home/git/gitlab/vendor/bundle/ruby.orig sudo -u git -H bundle install --deployment --without development test postgres aws

aberndsen avatar May 30 '14 01:05 aberndsen

Thanks @aberndsen This worked for me :)

mpullman avatar Aug 12 '14 03:08 mpullman

Hello,

I found this same error after upgrading from Ubuntu 12.04 to Ubuntu 14.04.

I'll tell you in a while if this also works ok for me.

Thanks for sharing,

Jordi

jpahullo avatar Sep 25 '14 10:09 jpahullo

Hi all,

I applied your suggestion from @aberndsen and it also worked for me.

Finally executed:

sudo service gitlab restart

showed me finally:

The GitLab Unicorn web server with pid 20369 is running.
The GitLab Sidekiq job dispatcher with pid 20403 is running.
GitLab and all its components are up and running.

And world is again a nice place to live in!

Thank you!

Jordi

jpahullo avatar Sep 25 '14 10:09 jpahullo

My error is similar but not exactly the same...

bundle/ruby/2.1.0/gems/charlock_holmes-0.7.3/lib/charlock_holmes.rb:1:in `require': libicuuc.so.48: cannot open shared object file: No such file or directory - bundle/ruby/2.1.0/extensions/x86_64-linux/2.1.0/charlock_holmes-0.7.3/charlock_holmes/charlock_holmes.so (LoadError)

This happens in my staging environment after upgrade to ubuntu 14.04. Not sure the above fix is best to apply as part of my deploy...

Altonymous avatar Sep 29 '14 16:09 Altonymous

@aberndsen's fix worked for us too after upgrading Ubuntu to 14.04. However since we use postgresql, we had to switch the command to: sudo -u git -H bundle install --deployment --without development test mysql aws

codereflection avatar Oct 03 '14 22:10 codereflection

For us it was a capistrano and capistrano-bundler issue.

capistrano changed the default location where it installs the gems and capistrano-bundler hasn't updated yet.

Adding this to our deploy.rb fixed the issue permanently for us:

set :bundle_path, -> { shared_path.join('vendor/bundle') }

Altonymous avatar Oct 03 '14 23:10 Altonymous

I started having this issue after updating my DigitalOcean droplet to ubuntu 14.04. Solution suggested by @aberndsen worked for me.

However, I had to solve a little issue related to modernizr before running this second command:

sudo -u git -H bundle install --deployment --without development test postgres aws

Solution to that modernizr issue was the second one suggested here: http://stackoverflow.com/a/22827382/1865879

anaspk avatar Oct 20 '14 22:10 anaspk

Thanks @aberndsen This worked for me too. Ubuntu 12.04 after apt-get update && apt-get upgrade

Tapo4ek avatar Dec 24 '14 18:12 Tapo4ek

I was having this issue after upgrading from ubuntu 12 to 14 and what fixed it for me was to:

  1. sudo rm -fr vendor/bundle
  2. sudo -u git RAILS_ENV=production bundle install

sebastianconcept avatar Mar 07 '15 15:03 sebastianconcept

Thanks @sebastianconcept. This worked for me.

maanas avatar Mar 16 '15 18:03 maanas

Thanks @sebastianconcept.

davidmaignan avatar Apr 30 '15 13:04 davidmaignan

Thanks @aberndsen that helped me

ismailsimsek avatar Jul 08 '15 14:07 ismailsimsek

spot on @sebastianconcept! :+1: Thx a lot! ;-)

nietonfir avatar Aug 13 '15 15:08 nietonfir

Thanks @sebastianconcept.

ymiyoshi avatar Sep 11 '15 12:09 ymiyoshi

@sebastianconcept thank you. only your solution worked after upgradeing fom Debian7 to Debian8

huglester avatar Nov 12 '15 09:11 huglester

@aberndsen thanks your comment solve my problem, the same symptom, upgrading ubuntu from 12.04 to 14.04.

fquiroga avatar Jan 25 '17 05:01 fquiroga