Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 36

Thread: Rails for Leap 42.3

  1. #21

    Default Re: Rails for Leap 42.3

    Quote Originally Posted by aleksejsmir View Post
    How to report this problem to maintainer?
    Code:
    /usr/lib64/ruby/gems/2.5.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `require': libssl.so.44: cannot open shared object file: No such file or directory - /usr/lib64/ruby/gems/2.5.0/gems/puma-3.11.3/lib/puma/puma_http11.so (LoadError)
    Well, the problem actually is that libssl.so.44 cannot be found, it probably got updated meanwhile.

    But where did you install rubygem-puma from? (that would also answer the question how to report it to the maintainer)
    This looks like a version 3.11.3, but Tumbleweed only has 3.11.2 currently (which should work btw, so try to install that instead).

  2. #22

    Default Re: Rails for Tumbleweed

    Puma is an integral part of Rails. Web server. That's all I did:

    Code:
    sudo zypper in ruby2.5-rubygem-rails-5_1

  3. #23

    Default Re: Rails for Tumbleweed

    Quote Originally Posted by aleksejsmir View Post
    Puma is an integral part of Rails. Web server.
    No, it isn't.
    It's a separate package.

    And actually rubygem-rails is just a (mostly) empty "meta package" that pulls in other rubygem packages (and ruby itself).

    That's all I did:

    Code:
    sudo zypper in ruby2.5-rubygem-rails-5_1
    What does "zypper se -s puma" say?
    What repos are you using?
    Code:
    zypper lr -d

  4. #24

    Default Re: Rails for Leap 42.3

    Code:
    zypper se -s puma
    Loading repository data...
    Reading installed packages...
    
    S | Name                                         | Type    | Version    | Arch   | Repository
    --+----------------------------------------------+---------+------------+--------+-----------
    i | ruby2.5-rubygem-puma                         | package | 3.11.2-1.1 | x86_64 | repo-oss   
    v | ruby2.5-rubygem-puma                         | package | 3.11.2-1.1 | i586   | repo-oss   
      | ruby2.5-rubygem-puma-debuginfo               | package | 3.11.2-1.1 | x86_64 | repo-debug
      | ruby2.5-rubygem-puma-debuginfo               | package | 3.11.2-1.1 | i586   | repo-debug
      | ruby2.5-rubygem-puma-doc                     | package | 3.11.2-1.1 | x86_64 | repo-oss   
      | ruby2.5-rubygem-puma-doc                     | package | 3.11.2-1.1 | i586   | repo-oss   
      | ruby2.5-rubygem-puma_worker_killer           | package | 0.1.0-1.6  | x86_64 | repo-oss   
      | ruby2.5-rubygem-puma_worker_killer           | package | 0.1.0-1.6  | i586   | repo-oss   
      | ruby2.5-rubygem-puma_worker_killer-doc       | package | 0.1.0-1.6  | x86_64 | repo-oss   
      | ruby2.5-rubygem-puma_worker_killer-doc       | package | 0.1.0-1.6  | i586   | repo-oss   
      | ruby2.5-rubygem-puma_worker_killer-testsuite | package | 0.1.0-1.6  | x86_64 | repo-oss   
      | ruby2.5-rubygem-puma_worker_killer-testsuite | package | 0.1.0-1.6  | i586   | repo-oss   
    alex@linux-yz6z:~> LC_ALL=C zypper lr -d
    Repository priorities are without effect. All enabled repositories share the same priority.
    
    # | Alias            | Name             | Enabled | GPG Check | Refresh | Priority | Type   | URI                                          
                           | Service
    --+------------------+------------------+---------+-----------+---------+----------+--------+----------------------------------------------
    -----------------------+--------
    1 | google-chrome    | google-chrome    | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://dl.google.com/linux/chrome/rpm/stable/
    x86_64                 |         
    2 | packman          | packman          | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://ftp.gwdg.de/pub/linux/misc/packman/sus
    e/openSUSE_Tumbleweed/ |         
    3 | repo-debug       | repo-debug       | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/tumbleweed/repo/
    debug                  |         
    4 | repo-non-oss     | repo-non-oss     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/tumbleweed/repo/
    non-oss                |         
    5 | repo-oss         | repo-oss         | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/tumbleweed/repo/
    oss                    |         
    6 | repo-src-non-oss | repo-src-non-oss | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/tumbleweed/repo/
    src-non-oss            |         
    7 | repo-src-oss     | repo-src-oss     | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/tumbleweed/repo/
    src-oss                |         
    8 | repo-update      | repo-update      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/tumblewee
    d/                     |         
    
    
    

  5. #25

    Default Re: Rails for Leap 42.3

    Quote Originally Posted by aleksejsmir View Post
    Code:
    zypper se -s puma
    Loading repository data...
    Reading installed packages...
    
    S | Name                                         | Type    | Version    | Arch   | Repository
    --+----------------------------------------------+---------+------------+--------+-----------
    i | ruby2.5-rubygem-puma                         | package | 3.11.2-1.1 | x86_64 | repo-oss   
    
    Well, the installed one is obviously version 3.11.2, while the error message you posted clearly mentions puma-3.11.3...

    I also find it interesting that it would look for libressl's libssl.so.44 (which has indeed been replaced by libssl.so.45 in Tumbleweed meanwhile), because openSUSE uses openssl (1.1) by default. And the openSUSE rubygem-puma package in TW is built against (uses and requires) libopenssl1_1, i.e. libssl.so.1.1.0.

    Did you maybe install it "manually" at one point, bypassing the openSUSE package management (rpm/zypper)?
    You'd need to recompile/reinstall it then, so that it uses the currently installed libssl45.
    Or uninstall that puma version again.

    I cannot help you with that though, as I have absolutely no experience with ruby, rubygems or rails.

    One further question though. What does the following command output?
    Code:
    ls -ld /usr/lib64/ruby/gems/2.5.0/gems/puma-*
    Last edited by wolfi323; 08-Apr-2018 at 13:03.

  6. #26

    Default Re: Rails for Leap 42.3

    Quote Originally Posted by wolfi323 View Post
    Did you maybe install it "manually" at one point, bypassing the openSUSE package management (rpm/zypper)?
    No no no.
    I mostly work in the console, it's a habit from Fedora.
    Installed:

    Code:
    sudo zypper in ruby2.5-rubygem-rails-5_1
    Removing this package and installing it again does not give anything.

    Quote Originally Posted by wolfi323 View Post
    What does the following command output?
    Code:
    alex@linux-yz6z:~> ls -ld /usr/lib64/ruby/gems/2.5.0/gems/puma-*
    drwxr-xr-x 1 root root 88 апр  1 05:24 /usr/lib64/ruby/gems/2.5.0/gems/puma-3.11.2
    drwxr-xr-x 1 root root 88 апр  1 06:22 /usr/lib64/ruby/gems/2.5.0/gems/puma-3.11.3
    

  7. #27

    Default Re: Rails for Leap 42.3

    Quote Originally Posted by aleksejsmir View Post
    No no no.
    I mostly work in the console, it's a habit from Fedora.
    How's that answer related to my question?

    I also compile stuff in the console mostly, but that does bypass the package management.

    AFAIK there is some ruby or rubygem specific "package management" too, that would download and compile gems manually.

    Alone the fact that your mysterious puma 3.11.3 (that doesn't exist in Tumbleweed) tries to use libssl.so.44 (that doesn't exist anymore either), might indicate that it has been compiled on your system at a time when libssl.so.44 was still installed.
    Installed:

    Code:
    sudo zypper in ruby2.5-rubygem-rails-5_1
    Removing this package and installing it again does not give anything.
    As I wrote, that's mostly empty and only pulls in other packages. Those won't get uninstalled when you remove it though, so it makes little sense to do that.

    Code:
    alex@linux-yz6z:~> ls -ld /usr/lib64/ruby/gems/2.5.0/gems/puma-*
    drwxr-xr-x 1 root root 88 апр  1 05:24 /usr/lib64/ruby/gems/2.5.0/gems/puma-3.11.2
    drwxr-xr-x 1 root root 88 апр  1 06:22 /usr/lib64/ruby/gems/2.5.0/gems/puma-3.11.3
    
    As expected, you have *two* versions installed, but only one of them (3.11.2) comes from an openSUSE rpm package.
    I suppose "rpm -qf /usr/lib64/ruby/gems/2.5.0/gems/puma-3.11.3/" would say that it doesn't belong to a package, right?

    Maybe you could just delete /usr/lib64/ruby/gems/2.5.0/gems/puma-3.11.3, but I'm not sure if it may not possibly be referenced by some ruby index/database.
    Preferably you'd uninstall it the same way as you installed it, but for that you would need to know how (and that) you installed it.

    After finding and quickly looking at http://guides.rubygems.org/rubygems-basics/, I would suggest to run this and see whether it lists something:
    Code:
    gem list | grep puma
    If it does, something like this should uninstall it:
    Code:
    gem uninstall puma
    (which should result in openSUSE's rubygem-puma being used again)
    Last edited by wolfi323; 08-Apr-2018 at 13:28.

  8. #28

    Default Re: Rails for Leap 42.3

    Thank you so much. It worked.
    But it's strange ... during "bundle install" puma 3.11.3 was installed again:


    Fetching puma 3.11.3
    Installing puma 3.11.3 with native extensions

    Quote Originally Posted by wolfi323 View Post
    I suppose "rpm -qf /usr/lib64/ruby/gems/2.5.0/gems/puma-3.11.3/" would say that it doesn't belong to a package, right?
    Yes exactly.


    Code:
    alex@linux-yz6z:~> gem list | grep puma                                   
    puma (3.11.3, 3.11.2)
    alex@linux-yz6z:~> sudo gem uninstall puma
    
    Select gem to uninstall:
     1. puma-3.11.2
     2. puma-3.11.3
     3. All versions
    > 2
    Successfully uninstalled puma-3.11.3
    alex@linux-yz6z:~> gem list | grep puma    
    puma (3.11.2)
    alex@linux-yz6z:~> cd rails/test2/      
    alex@linux-yz6z:~/rails/test2> rails s
    Could not find puma-3.11.3 in any of the sources
    Run `bundle install` to install missing gems.
    alex@linux-yz6z:~/rails/test2> bundle install
    Fetching gem metadata from https://rubygems.org/........
    Using rake 12.3.1
    Using concurrent-ruby 1.0.5
    Using i18n 1.0.0
    Using minitest 5.11.3
    Using thread_safe 0.3.6
    Using tzinfo 1.2.5
    Using activesupport 5.1.6
    Using builder 3.2.3
    Using erubi 1.7.1
    Using mini_portile2 2.3.0
    Using nokogiri 1.8.2
    Using rails-dom-testing 2.0.3
    Using crass 1.0.3
    Using loofah 2.2.2
    Using rails-html-sanitizer 1.0.4
    Using actionview 5.1.6
    Using rack 2.0.4
    Using rack-test 1.0.0
    Using actionpack 5.1.6
    Using nio4r 2.3.0
    Using websocket-extensions 0.1.3
    Using websocket-driver 0.6.5
    Using actioncable 5.1.6
    Using globalid 0.4.1
    Using activejob 5.1.6
    Using mini_mime 1.0.0
    Using mail 2.7.0
    Using actionmailer 5.1.6
    Using activemodel 5.1.6
    Using arel 8.0.0
    Using activerecord 5.1.6
    Using multi_json 1.13.1
    Using method_source 0.9.0
    Using thor 0.20.0
    Using railties 5.1.6
    Using activerecord-session_store 1.1.1
    Using public_suffix 3.0.2
    Using addressable 2.5.2
    Using ast 2.4.0
    Using execjs 2.7.0
    Using autoprefixer-rails 8.2.0
    Using bcrypt 3.1.11
    Using bindex 0.5.0
    Using rb-fsevent 0.10.3
    Using ffi 1.9.23
    Using rb-inotify 0.9.10
    Using sass-listen 4.0.0
    Using sass 3.5.6
    Using bootstrap-sass 3.3.7
    Using buftok 0.2.0
    Using bundler 1.16.1
    Using byebug 10.0.2
    Using xpath 3.0.0
    Using capybara 2.18.0
    Using childprocess 0.9.0
    Using coffee-script-source 1.12.2
    Using coffee-script 2.4.1
    Using coffee-rails 4.2.2
    Using orm_adapter 0.5.0
    Using responders 2.4.0
    Using warden 1.2.7
    Using devise 4.4.3
    Using unf_ext 0.0.7.5
    Using unf 0.1.4
    Using domain_name 0.5.20170404
    Using equalizer 0.0.11
    Using http-cookie 1.0.3
    Using http-form_data 2.1.0
    Using http_parser.rb 0.6.0
    Using http 3.0.0
    Using jbuilder 2.7.0
    Using jquery-rails 4.3.1
    Using ruby_dep 1.5.0
    Using listen 3.1.5
    Using memoizable 0.4.2
    Using multipart-post 2.0.0
    Using naught 1.1.0
    Using parallel 1.12.1
    Using parser 2.5.0.5
    Using powerpack 0.1.1
    Fetching puma 3.11.3
    
    
    Your user account isn't allowed to install to the system RubyGems.
      You can cancel this installation and run:
    
          bundle install --path vendor/bundle
    
      to install the gems into ./vendor/bundle/, or you can enter your password
      and install the bundled gems to RubyGems using sudo.
    
      Password:  
    alex@linux-yz6z:~/rails/test2> sudo bundle install
    Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your
    bundle as root will break this application for all non-root users on this machine.         
    Fetching gem metadata from https://rubygems.org/........
    Using rake 12.3.1
    Using concurrent-ruby 1.0.5
    Using i18n 1.0.0
    Using minitest 5.11.3
    Using thread_safe 0.3.6
    Using tzinfo 1.2.5
    Using activesupport 5.1.6
    Using builder 3.2.3
    Using erubi 1.7.1
    Using mini_portile2 2.3.0
    Using nokogiri 1.8.2
    Using rails-dom-testing 2.0.3
    Using crass 1.0.3
    Using loofah 2.2.2
    Using rails-html-sanitizer 1.0.4
    Using actionview 5.1.6
    Using rack 2.0.4
    Using rack-test 1.0.0
    Using actionpack 5.1.6
    Using nio4r 2.3.0
    Using websocket-extensions 0.1.3
    Using websocket-driver 0.6.5
    Using actioncable 5.1.6
    Using globalid 0.4.1
    Using activejob 5.1.6
    Using mini_mime 1.0.0
    Using mail 2.7.0
    Using actionmailer 5.1.6
    Using activemodel 5.1.6
    Using arel 8.0.0
    Using activerecord 5.1.6
    Using multi_json 1.13.1
    Using method_source 0.9.0
    Using thor 0.20.0
    Using railties 5.1.6
    Using activerecord-session_store 1.1.1
    Using public_suffix 3.0.2
    Using addressable 2.5.2
    Using ast 2.4.0
    Using execjs 2.7.0
    Using autoprefixer-rails 8.2.0
    Using bcrypt 3.1.11
    Using bindex 0.5.0
    Using rb-fsevent 0.10.3
    Using ffi 1.9.23
    Using rb-inotify 0.9.10
    Using sass-listen 4.0.0
    Using sass 3.5.6
    Using bootstrap-sass 3.3.7
    Using buftok 0.2.0
    Using bundler 1.16.1
    Using byebug 10.0.2
    Using xpath 3.0.0
    Using capybara 2.18.0
    Using childprocess 0.9.0
    Using coffee-script-source 1.12.2
    Using coffee-script 2.4.1
    Using coffee-rails 4.2.2
    Using orm_adapter 0.5.0
    Using responders 2.4.0
    Using warden 1.2.7
    Using devise 4.4.3
    Using unf_ext 0.0.7.5
    Using unf 0.1.4
    Using domain_name 0.5.20170404
    Using equalizer 0.0.11
    Using http-cookie 1.0.3
    Using http-form_data 2.1.0
    Using http_parser.rb 0.6.0
    Using http 3.0.0
    Using jbuilder 2.7.0
    Using jquery-rails 4.3.1
    Using ruby_dep 1.5.0
    Using listen 3.1.5
    Using memoizable 0.4.2
    Using multipart-post 2.0.0
    Using naught 1.1.0
    Using parallel 1.12.1
    Using parser 2.5.0.5
    Using powerpack 0.1.1
    Fetching puma 3.11.3
    Installing puma 3.11.3 with native extensions
    Using sprockets 3.7.1
    Using sprockets-rails 3.2.1
    Using rails 5.1.6
    Using rainbow 3.0.0
    Using ruby-progressbar 1.9.0
    Using unicode-display_width 1.3.0
    Using rubocop 0.52.1
    Using rubyzip 1.2.1
    Using tilt 2.0.8
    Using sass-rails 5.0.7
    Using selenium-webdriver 3.11.0
    Using simple_oauth 0.3.1
    Using spring 2.0.2
    Using spring-watcher-listen 2.0.1
    Using sqlite3 1.3.13
    Using turbolinks-source 5.1.0
    Using turbolinks 5.1.0
    Using twitter 6.2.0
    Using uglifier 4.1.8
    Using web-console 3.5.1
    Bundle complete! 22 Gemfile dependencies, 101 gems now installed.
    Use `bundle info [gemname]` to see where a bundled gem is installed.
    alex@linux-yz6z:~/rails/test2> rails s             
    WARNING: Nokogiri was built against LibXML version 2.9.7, but has dynamically loaded 2.9.8
    => Booting Puma
    => Rails 5.1.6 application starting in development  
    => Run `rails server -h` for more startup options
    Puma starting in single mode...
    * Version 3.11.3 (ruby 2.5.0-p0), codename: Love Song
    * Min threads: 5, max threads: 5
    * Environment: development
    * Listening on tcp://linux-yz6z:3000
    Use Ctrl-C to stop
    

  9. #29
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,448
    Blog Entries
    2

    Default Re: Rails for Leap 42.3

    According to https://software.opensuse.org/search,

    Although puma 3.11.2 is the default from the TW OSS repo,
    puma 3.11.3 is available from the "devel:languages:ruby:extensions" repo.

    So,
    At the moment we don't know if you did anything unusual or in addition to the "ruby2.5-rubygem-puma" package. If you really didn't do anything other than that one package, then maybe there's an error in there somewhere.

    But, it does look like if you either want to, or need the files related to puma 3.11.3, you do have the option to install that package...
    To install, open the following in your Firefox,
    https://software.opensuse.org/packag...5-rubygem-puma

    Scroll down to "openSUSE Tumbleweed"
    Click on the "Show experimental packages"
    Find the entry "devel:languages:ruby:extensions" and click on the "One-click Install" button to the right.

    HTH,
    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  10. #30

    Default Re: Rails for Leap 42.3

    Quote Originally Posted by tsu2 View Post
    But, it does look like if you either want to, or need the files related to puma 3.11.3, you do have the option to install that package...

    I do not want. ))
    I want Rails to work. The version of the web server is of no importance to me.

Page 3 of 4 FirstFirst 1234 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •