Loading ...
Sorry, an error occurred while loading the content.

7416Re: [id-ruby] Error lib ruby.so.2.0 Pas Deploy

Expand Messages
  • Asep Bagja Priandana
    Nov 30, 2013
    • 0 Attachment
      Ini maksudnya yang diuninstall ruby 1.9 yang bawaan system ya?


      On Sun, Dec 1, 2013 at 12:25 PM, Karuna Murti <karuna.murti@...> wrote:
      Kalau ruby yang dicompile ditaruh di mana?

      Coba:
      1. Uninstall yang dari package system (dpkg -P atau apt-get purge)
      2. Make sure ruby yang dicompile masuk ke PATH environment variable


      Karuna Murti
      ---
      skype: kampangptlk
      yahoo: kampangptlk
      google talk/hangout: karuna.murti@...
      linkedin: https://www.linkedin.com/in/karunamurti

      - Never attribute to malice that which is adequately explained by stupidity -

      On Sun 01 Dec 2013 12:18:23 PM WIB, Asep Bagja Priandana wrote:
      *gem env*

      RubyGems Environment:
        - RUBYGEMS VERSION: 2.0.14
        - RUBY VERSION: 2.0.0 (2013-11-22 patchlevel 353) [x86_64-linux]
        - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/2.0.0
        - RUBY EXECUTABLE: /usr/local/bin/ruby
        - EXECUTABLE DIRECTORY: /usr/local/bin
        - RUBYGEMS PLATFORMS:
          - ruby
          - x86_64-linux
        - GEM PATHS:
           - /usr/local/lib/ruby/gems/2.0.0
           - /home/bagja/.gem/ruby/2.0.0
        - GEM CONFIGURATION:
           - :update_sources => true
           - :verbose => true
           - :backtrace => false
           - :bulk_threshold => 1000
        - REMOTE SOURCES:
           - https://rubygems.org/

      *dpkg -l | grep ruby*

      ii  libmysql-ruby                    2.8.2+gem2deb-1build1
      Transitional package for ruby-mysql
      ii  libruby1.8                       1.8.7.352-2ubuntu1.4
       Libraries necessary to run Ruby 1.8
      ii  libruby1.9.1                     1.9.3.0-1ubuntu2.8
       Libraries necessary to run Ruby 1.9.1
      ii  ruby-daemon-controller           1.1.7-1~precise1
       Library for robust daemon management
      ii  ruby-mysql                       2.8.2+gem2deb-1build1
      MySQL module for Ruby
      ii  ruby-rack                        1.3.5-1
      Modular Ruby webserver interface
      ii  ruby1.9.1                        1.9.3.0-1ubuntu2.8
       Interpreter of object-oriented scripting language Ruby


      On Sun, Dec 1, 2013 at 12:07 PM, Karuna Murti <karuna.murti@...
      <mailto:karuna.murti@...>> wrote:

          coba copas

          gem env : outputnya apa
          dpkg -l | grep ruby : outputnya apa


          Karuna Murti
          ---
          skype: kampangptlk
          yahoo: kampangptlk
          google talk/hangout: karuna.murti@...
          <mailto:karuna.murti@...>
          linkedin: https://www.linkedin.com/in/__karunamurti

          <https://www.linkedin.com/in/karunamurti>

          - Never attribute to malice that which is adequately explained by
          stupidity -


          On Sun 01 Dec 2013 12:03:37 PM WIB, Asep Bagja Priandana wrote:

              Teman-teman,

              Ada yang pernah ngalamin kaya gini gak pas deploy pake capistrano?

              executing "cd --
              /usr/share/nginx/www/budget___app/releases/20131201045318 &&

              RAILS_ENV=production RAILS_GROUPS=assets bundle exec rake
              assets:precompile"
                  servers: ["xxx.xxx.xxx.110"]
                  [xxx.xxx.xxx.110] executing command
               ** [out :: xxx.xxx.xxx.110] rake aborted!
               ** [out :: xxx.xxx.xxx.110] libruby.so.2.0: cannot open
              shared object
              file: No such file or directory -
              /usr/share/nginx/www/budget___app/shared/bundle/ruby/2.0.0/__gems/mysql2-0.3.14/lib/mysql2/__mysql2.so
               ** [out :: xxx.xxx.xxx.110]
              /usr/share/nginx/www/budget___app/shared/bundle/ruby/2.0.0/__gems/mysql2-0.3.14/lib/mysql2.__rb:8:in
              `require'
               ** [out :: xxx.xxx.xxx.110]
              /usr/share/nginx/www/budget___app/shared/bundle/ruby/2.0.0/__gems/mysql2-0.3.14/lib/mysql2.__rb:8:in

              `<top (required)>'
               ** [out :: xxx.xxx.xxx.110]
              /usr/share/nginx/www/budget___app/releases/20131201045318/__config/application.rb:7:in

              `<top (required)>'
               ** [out :: xxx.xxx.xxx.110]
              /usr/share/nginx/www/budget___app/releases/20131201045318/__Rakefile:4:in
              `require'
               ** [out :: xxx.xxx.xxx.110]
              /usr/share/nginx/www/budget___app/releases/20131201045318/__Rakefile:4:in

              `<top (required)>'
               ** [out :: xxx.xxx.xxx.110] (See full trace by running task
              with --trace)

              Aku udah nyobain solusi-solusi ini:
              1.
              http://stackoverflow.com/__questions/19211397/rails-__server-4-0-0-cannot-start-__error-loaderror8-lib-mysql2-__rb8in-requi
              <http://stackoverflow.com/questions/19211397/rails-server-4-0-0-cannot-start-error-loaderror8-lib-mysql2-rb8in-requi>
              2.
              http://stackoverflow.com/__questions/9561708/libruby-so-__1-8-cannot-open-shared-object-__file-no-such-file-or-directory

              <http://stackoverflow.com/questions/9561708/libruby-so-1-8-cannot-open-shared-object-file-no-such-file-or-directory>

              Tapi tetep gak bisa. Sistemku di server:
              1. Ubuntu 12.04 LTS
              2. Ruby 2.0.0p353 (compile from source, sebelumnya pake rvm
              tapi sudah
              diuninstall)
              3. Rails 4.0.1
              4. MariaDB 5.5 (development header-nya sudah diinstall juga)
              5. Gem mysql2 versi 0.3.14

              Thanks bantuannya :)
              --
              Asep Bagja Priandana.
              Software Developer

              skype/ym/twitter: bepitulaz

              Jakarta, Indonesia.

             




      --
      Asep Bagja Priandana.
      Software Developer

      skype/ym/twitter: bepitulaz

      Jakarta, Indonesia.



      --
      Asep Bagja Priandana.
      Software Developer

      skype/ym/twitter: bepitulaz

      Jakarta, Indonesia.
    • Show all 12 messages in this topic