Ruby/PgSQL error on Rails start : cannot load such file — pg_ext (LoadError)

后端 未结 5 1838
死守一世寂寞
死守一世寂寞 2020-12-19 05:04

I\'m new to Ruby (coming from a Java background) and was given access to a RoR project from a Git repository. I was able to get Ruby built with rbenv and Postgres installed

5条回答
  •  天涯浪人
    2020-12-19 05:47

    I've already installed the pg gem list pg

    I also encountered this problem and I made it work. First, you run the command: $ gem install pg --pre
    Successfully installed pg-0.21.0-x64-mingw32

    Next, you update your Gemfile: gem 'pg', '~> 0.21.0'. That's it.

    My rubygems environment are as follow:

    RubyGems Environment:
      - RUBYGEMS VERSION: 2.6.12
      - RUBY VERSION: 2.3.3 (2016-11-21 patchlevel 222) [x64-mingw32]
      - INSTALLATION DIRECTORY: C:/Ruby23-x64/lib/ruby/gems/2.3.0
      - USER INSTALLATION DIRECTORY: C:/Users/armano/.gem/ruby/2.3.0
      - RUBY EXECUTABLE: C:/Ruby23-x64/bin/ruby.exe
      - EXECUTABLE DIRECTORY: C:/Ruby23-x64/bin
      - SPEC CACHE DIRECTORY: C:/Users/armano/.gem/specs
      - SYSTEM CONFIGURATION DIRECTORY: C:/ProgramData
      - RUBYGEMS PLATFORMS:
        - ruby
        - x64-mingw32
      - GEM PATHS:
         - C:/Ruby23-x64/lib/ruby/gems/2.3.0
         - C:/Users/armano/.gem/ruby/2.3.0
      - GEM CONFIGURATION:
         - :update_sources => true
         - :verbose => true
         - :backtrace => false
         - :bulk_threshold => 1000
         - "gem" => "--no-ri --no-rdoc"
      - REMOTE SOURCES:
         - https://rubygems.org/
    

提交回复
热议问题