charlock_holmes
charlock_holmes copied to clipboard
problem when installing in ubuntu 12.04
Hi,
I installed the icu packages in ubuntu using sudo apt-get install libicu-dev When I then start a rake task (for example pre-compiling assets), i get the following error:
/var/www/monaqasat/shared/bundle/ruby/1.9.1/gems/charlock_holmes-0.6.9.2/lib/charlock_holmes/charlock_holmes.so: undefined symbol: _ZN6icu_518ByteSink15GetAppendBufferEiiPciPi - /var/www/monaqasat/shared/bundle/ruby/1.9.1/gems/charlock_holmes-0.6.9.2/lib/charlock_holmes/charlock_holmes.so
/var/www/monaqasat/shared/bundle/ruby/1.9.1/gems/activesupport-3.1.10/lib/active_support/dependencies.rb:240:in `require'
/var/www/monaqasat/shared/bundle/ruby/1.9.1/gems/activesupport-3.1.10/lib/active_support/dependencies.rb:240:in `block in require'
/var/www/monaqasat/shared/bundle/ruby/1.9.1/gems/activesupport-3.1.10/lib/active_support/dependencies.rb:223:in `block in load_dependency'
/var/www/monaqasat/shared/bundle/ruby/1.9.1/gems/activesupport-3.1.10/lib/active_support/dependencies.rb:640:in `new_constants_in'
/var/www/monaqasat/shared/bundle/ruby/1.9.1/gems/activesupport-3.1.10/lib/active_support/dependencies.rb:223:in `load_dependency'
/var/www/monaqasat/shared/bundle/ruby/1.9.1/gems/activesupport-3.1.10/lib/active_support/dependencies.rb:240:in `require'
/var/www/monaqasat/shared/bundle/ruby/1.9.1/gems/charlock_holmes-0.6.9.2/lib/charlock_holmes.rb:1:in `<top (required)>'
/var/lib/gems/1.9.1/gems/bundler-1.3.4/lib/bundler/runtime.rb:72:in `require'
/var/lib/gems/1.9.1/gems/bundler-1.3.4/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
/var/lib/gems/1.9.1/gems/bundler-1.3.4/lib/bundler/runtime.rb:70:in `each'
/var/lib/gems/1.9.1/gems/bundler-1.3.4/lib/bundler/runtime.rb:70:in `block in require'
/var/lib/gems/1.9.1/gems/bundler-1.3.4/lib/bundler/runtime.rb:59:in `each'
/var/lib/gems/1.9.1/gems/bundler-1.3.4/lib/bundler/runtime.rb:59:in `require'
/var/lib/gems/1.9.1/gems/bundler-1.3.4/lib/bundler.rb:132:in `require'
/var/www/monaqasat/releases/20130324093011/config/application.rb:10:in `<top (required)>'
/var/www/monaqasat/releases/20130324093011/Rakefile:4:in `require'
/var/www/monaqasat/releases/20130324093011/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)
Any ideas?
Would you mind giving 0.6.9.4 a try?
+1
I installed icu on amazon ec2 with sudo apt-get install libicu-dev
Then I installes charlock_holmes: gem install charlock_holmes
It seemed to me that it was successfully installed: Building native extensions. This could take a while... Successfully installed charlock_holmes-0.6.9.4 1 gem installed
After that I got this:
/mnt/search_server_staging-production/shared/bundle/ruby/1.9.1/gems/charlock_holmes-0.6.9.4/lib/charlock_holmes.rb:1:in
require': /mnt/search_server_staging-production/shared/bundle/ruby/1.9.1/gems/charlock_holmes-0.6.9.4/lib/charlock_holmes/charlock_holmes.so: undefined symbol: _ZN6icu_518ByteSink15GetAppendBufferEiiPciPi - /mnt/search_server_staging-production/shared/bundle/ruby/1.9.1/gems/charlock_holmes-0.6.9.4/lib/charlock_holmes/charlock_holmes.so (LoadError)`
I tried also to install using this command:
gem install charlock_holmes -- --with-icu-dir=/usr/local/lib/ The error still occures. It seems to me that somehow I need to specify the right directory --with-icu-dir
The reason why I specified /usr/local/lib is because the icu libs are installed into that directory.
Any help would be appreciated ASAP please...
+1 in RHEL 5.7
+1
$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.7 (Tikanga)
using this command: gem install charlock_holmes -- --with-icu-dir=/usr/local/lib/
i want to try 'bundle install' again, but i enter 'bundle'... and the error dispear....
@dreampuf @orbanbotond
@FatGhosta yeah, you are right. I'm use the same way of the bundler. detail in : https://github.com/gitlabhq/gitlab-public-wiki/wiki/Trouble-Shooting-Guide charlock_holmes section