Heroku LoadError: libruby.so.2.2

后端 未结 3 882
南方客
南方客 2021-01-13 18:18

When I tried to push my changes to a staging dyno on Heroku I got this message when it\'s building:

$ git push staging
.
.
.
remote: -----> Installing dep         


        
相关标签:
3条回答
  • 2021-01-13 18:20

    Check the "shebang" line of your binstubs (all the files in bin/) they should all look like #!/usr/bin/env ruby for example:

    $ head -n 1 bin/*
    ==> bin/bundle <==
    #!/usr/bin/env ruby
    
    ==> bin/rails <==
    #!/usr/bin/env ruby
    
    ==> bin/rake <==
    #!/usr/bin/env ruby
    
    ==> bin/setup <==
    #!/usr/bin/env ruby
    
    ==> bin/spring <==
    #!/usr/bin/env ruby
    
    ==> bin/webpack <==
    #!/usr/bin/env ruby
    
    ==> bin/webpack-dev-server <==
    #!/usr/bin/env ruby
    
    ==> bin/yarn <==
    #!/usr/bin/env ruby
    

    If you see one that looks like this:

    #!/usr/bin/env ruby2.5 
    

    That will cause a problem

    0 讨论(0)
  • 2021-01-13 18:35

    Found the problem... the cache in heroku dyno needs to be purged. Heroku made a plugin that can do just that. Install it:

    $ heroku plugins:install heroku-repo
    

    And run:

    $ heroku repo:purge_cache -a appname
    

    Then commit something or run heroku repo:reset and deploy again.

    0 讨论(0)
  • 2021-01-13 18:43

    The cache in heroku dyno needs to be purged. Heroku made a plugin that can do just that. Install it:

    $ heroku plugins:install heroku-repo

    And run:

    $ heroku repo:purge_cache -a $APPNAME

    Then deploy again.

    0 讨论(0)
提交回复
热议问题