ruby on rails - Rspec spec returns a LoadError -


returned app after years absence , not get:

rspec spec 

to run. ran year ago , thought had left @ point pick again when had time, not ... decided update ruby , rails , went updates, bundle install etc, have ruby 2.1.1p76 , rails 4.1.0 running.

i ran same command shown above , flag got:

/users/me/.rvm/gems/ruby-2.1.1@rails410/gems/pg-0.17.1/lib/pg.rb:4:in `require': dlopen(/users/me/.rvm/gems/ruby-2.1.1@rails410/extensions /x86_64-darwin-13/2.1.0/pg-0.17.1/pg_ext.bundle, 9):  library not loaded: @executable_path/../lib/libssl.1.0.0.dylib (loaderror) referenced from: /applications/postgres.app/contents/macos/lib/libpq.dylib reason: image not found - /users/me/.rvm/gems/ ruby-  2.1.1@rails410/extensions/x86_64-darwin-13/2.1.0/pg-0.17.1/pg_ext.bundle 

i noticed have loaderror not sure need correct that. 2 lines down see 'reason: image not found' , here further away solution.

hopefully has expertise , generosity give me pointer in right direction?

i installed postgres using homebrew. running brew info postgres suggested install pg gem including archflags. guess might system-specific, following worked me:

gem uninstall pg archflags="-arch x86_64" gem install pg 

Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -