I have a rails application that I am trying to run on an instance of Amazon EC2. This application has been tested correctly on various Linux, OS X, and Windows systems.
On EC2 server, I built PostgresSQL 9 from the source. At first, "pg" gem did not install, but I built it with the following command:
gem install pg -- --with-pgsql-lib=/usr/local/pgsql/lib --with-pgsql-config=/usr/local/pgsql/bin/pg_config
It seemed like it was built correctly. However, when I run a rake task, such as "rake db: migrate", I get the following error:
rake aborted!
libpq.so.5: cannot open shared object file: No such file or directory - /home/ec2-user/.rvm/gems/ruby-1.8.7-p334/gems/pg-0.11.0/lib/pg_ext.so
source
share