Created
December 5, 2013 09:59
-
-
Save tsavani/7802876 to your computer and use it in GitHub Desktop.
Error : No such file found hstore.control in postgresql database
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I have setup a new database for installing Discourse in PostgreSQL. When I run rake db:migrate, it creates most of the tables, but it then fails: | |
execute("CREATE EXTENSION IF NOT EXISTS hstore") | |
rake aborted! | |
An error has occurred, this and all later migrations canceled: | |
PG::Error: ERROR: could not open extension control file "/usr/share/postgresql/9.1/extension/hstore.control": No such file or directory | |
: CREATE EXTENSION IF NOT EXISTS hstore | |
Soln: | |
On Ubuntu, you need to install the extension by installing the postgresql-contrib package. | |
sudo apt-get install postgresql-contrib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment