ruby on rails - Rake db:create fails on Library not loaded -
i running postgresql 9.1, installed postgres (/library/postgresql/9.1) - ie not homebrew etc , on mac osx leopard.
i upgraded snow leopard , mountain lion , had mass of problems gems failing build etc, got them fixed
rails server crashed on startup pg issues & tried find not fix prob - fixes included links etc, may still persist (hence background info might inform solution)
i uninstalled postgresql 9.1 , installed postgres app
now on rake db:create following:
rake aborted! dlopen(/users/mitch/.rvm/gems/ruby-1.9.2-p320@tme-3.2.11-mltest/gems/pg-0.17.0/lib/pg_ext.bundle, 9): library not loaded: @loader_path/../lib/libpq.5.dylib referenced from: /users/mitch/.rvm/gems/ruby-1.9.2-p320@tme-3.2.11-mltest/gems/pg-0.17.0/lib/pg_ext.bundle reason: no suitable image found. did find: /usr/local/lib/libpq.5.dylib: mach-o, wrong architecture - /users/mitch/.rvm/gems/ruby-1.9.2-p320@tme-3.2.11-mltest/gems/pg-0.17.0/lib/pg_ext.bundle
i'm running rvm (as u can see) , after os upgrade created new gemset , installed ruby
i've changed path reflect advice of postgresql app, after os upgrade installed xcode 5 , command line tools advised , think database.yaml file ok
i suspect problem might connected sym-links made earlier in process, i'm stuck find solution
sounds has gone wrong in ruby installation. try reinstalling ruby enterprise edition via rvm:
rvm reinstall ree
Comments
Post a Comment