title: Can't install charlock_holmes-0.6.9.4
body: <p>After upgrading Ubuntu 13.04 to 14.04 LTS, the gitlab page display : 502 GitLab is not responding.</p>
  
  <p>I tried, into /home/git/gitlab directory this command : <code>bundle install</code> that displays this message : </p>
  
  <pre><code>Make sure that `gem install charlock_holmes -v '0.6.9.4'` succeeds before bundling.
  </code></pre>
  
  <p>And the result of this command : <code>gem install charlock_holmes -v '0.6.9.4'</code> is :</p>
  
  <pre><code>Building native extensions.  This could take a while... ERROR:  Error installing charlock_holmes:
          ERROR: Failed to build gem native extension.
  
          /usr/bin/ruby1.9.1 extconf.rb checking for main() in -licui18n... yes checking for main() in -licui18n... yes checking for unicode/ucnv.h... yes
  *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.  Check the mkmf.log file for more details.  You may need configuration options.
  
  Provided configuration options:
          --with-opt-dir
          --without-opt-dir
          --with-opt-include
          --without-opt-include=${opt-dir}/include
          --with-opt-lib
          --without-opt-lib=${opt-dir}/lib
          --with-make-prog
          --without-make-prog
          --srcdir=.
          --curdir
          --ruby=/usr/bin/ruby1.9.1
          --with-icu-dir
          --without-icu-dir
          --with-icu-include
          --without-icu-include=${icu-dir}/include
          --with-icu-lib
          --without-icu-lib=${icu-dir}/lib
          --with-icui18nlib
          --without-icui18nlib
          --with-icui18nlib
          --without-icui18nlib extconf.rb:55:in `chdir': No such file or directory - /var/lib/gems/1.9.1/gems/charlock_holmes-0.6.9.4/ext/charlock_holmes/src (Errno::ENOENT)
          from extconf.rb:55:in `&lt;main&gt;'
  
  
  Gem files will remain installed in /var/lib/gems/1.9.1/gems/charlock_holmes-0.6.9.4 for inspection. Results logged to /var/lib/gems/1.9.1/gems/charlock_holmes-0.6.9.4/ext/charlock_holmes/gem_make.out
  </code></pre>
  
  <p>Of course, directory <code>/var/lib/gems/1.9.1/gems/charlock_holmes-0.6.9.4/ext/charlock_holmes/</code> contains only 3 files : extconf.rb, gem_make.out, mkmf.log</p>
  
  <p>But, this directory <code>/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/charlock_holmes-0.6.9.4/ext/charlock_holmes/src</code> contains 2 files : file-soft-check.patch, file-5.08.tar.gz and 1 directory : file-5.08/</p>
  
  <p>I tired a symlink, but is remove every time I run the command.</p>
  
  <p>Can someone help me ? </p>
  
  <p>Thank you</p>
  
  <hr>
  
  <p>Thank you for your reply. A new error when running this command: </p>
  
  <blockquote>
    <p>bundle install --deployment --without development test mysql aws</p>
  </blockquote>
  
  <pre><code>/usr/bin/ruby1.9.1 extconf.rb --with-dldflags=-licuuc -Wl,--export-all-symbols -Wl,--enable-auto-image-base,--enable-auto-import
  checking for main() in -licui18n... yes
  checking for main() in -licui18n... yes
  checking for unicode/ucnv.h... yes
    -- tar zxvf file-5.08.tar.gz
    -- ./configure --prefix=/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/charlock_holmes-0.6.9.4/ext/charlock_holmes/dst/ --disable-shared --enable-static --with-pic
    -- patch -p0 &lt; ../file-soft-check.patch
    -- make -C src install
    -- make -C magic install
  checking for main() in -lmagic_ext... yes
  checking for magic.h... yes
  creating Makefile
  
  make
  compiling encoding_detector.c
  In file included from encoding_detector.c:3:0:
  common.h:14:14: warning: ‘charlock_new_enc_str’ defined but not used [-Wunused-function]
   static VALUE charlock_new_enc_str(const char *str, size_t len, void *encoding)
                ^
  compiling ext.c
  In file included from ext.c:1:0:
  common.h:14:14: warning: ‘charlock_new_enc_str’ defined but not used [-Wunused-function]
   static VALUE charlock_new_enc_str(const char *str, size_t len, void *encoding)
                ^
  common.h:23:14: warning: ‘charlock_new_str’ defined but not used [-Wunused-function]
   static VALUE charlock_new_str(const char *str, size_t len)
                ^
  common.h:32:14: warning: ‘charlock_new_str2’ defined but not used [-Wunused-function]
   static VALUE charlock_new_str2(const char *str)
                ^
  compiling converter.c
  In file included from converter.c:2:0:
  common.h:23:14: warning: ‘charlock_new_str’ defined but not used [-Wunused-function]
   static VALUE charlock_new_str(const char *str, size_t len)
                ^
  common.h:32:14: warning: ‘charlock_new_str2’ defined but not used [-Wunused-function]
   static VALUE charlock_new_str2(const char *str)
                ^
  compiling transliterator.cpp
  In file included from transliterator.cpp:1:0:
  common.h:14:14: warning: ‘VALUE charlock_new_enc_str(const char*, size_t, void*)’ defined but not used [-Wunused-function]
   static VALUE charlock_new_enc_str(const char *str, size_t len, void *encoding)
                ^
  common.h:32:14: warning: ‘VALUE charlock_new_str2(const char*)’ defined but not used [-Wunused-function]
   static VALUE charlock_new_str2(const char *str)
                ^
  linking shared-object charlock_holmes/charlock_holmes.so
  /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libicui18n.a(smpdtfmt.ao): réadressage R_X86_64_PC32 vers symbole « _ZN6icu_5216SimpleDateFormat22fgCalendarFieldToLevelE » ne peut pas être utilisé en créant un objet partagé ; recompilé avec -fPIC
  /usr/bin/ld: édition de lien finale en échec: Mauvaise valeur
  collect2: error: ld returned 1 exit status
  make: *** [charlock_holmes.so] Erreur 1
  </code></pre>