gem install dm-postgres-adapter build error
I fixed this.
I wish I could give exact steps, but it was something like this:
Manually updated Command Line Tools from the apple developer site.
Uninstalled all gems
Installed rbenv, ruby-build, rbenv-bundler using brew
Installed apple-gcc42 using brew
Installed ruby 2.1 using rbenv
Set path to use rbenv's ruby.
Set
rbenv global 2.1.0
Uninstalled bundle
Installed bundle
ran
rbenv rehash
Ran
sudo bundle install
successfully.
LoadError cannot find dm-postgres-adapter when using Heroku Run Console
I was getting the same errors. Don't ignore the Warnings from Heroku when you push to heroku.
If you're using Git (which you probably are) you'll need to first remove the .bundle/ folder via the command line:
git rm --cached -r .bundle/
Then you'll need to add a .gitignore file in the main directory with ".bundle/" in the body of the file
Commit it all to git and/or github.
Push to Heroku. (no more nasty warning RE the .bundle/ folder)
Then run your heroku run console command and pick up with the Jumpstart tutorial again.
cannot install do_postgres on debian wheezy, ruby 2.1.1
Finally I found the missing library. If you encounter the same problem you need to install:
sudo apt-get install postgresql-server-dev-9.2
Adapters not working with datamapper
Uninstalling dm-postgres-adapter 1.2.0.rc2 fixed it.
Related Topics
How to Share Worker Among Two Different Applications on Heroku
Getting Remove_Entry_Secure Error While Using Ruby Application
Colon in the Front: Yaml Syntax
When to Use Self in Module's Methods
How to Print Unicode Character U-1F4A9 'Pile of Poo' Emoji
Why Is Foreman Gem Ignoring the Port Environment Variable
Dynamically Get Object's Attribute
How to Read Post Data in Rack Request
How to Best Create a Random Float in a Range Between Two Floats
Issues with Has_Many :Through, Cache, Touch and Counter_Cache
Can You Create/Write/Append a String to a File in a Single Line in Ruby
Get Table Name from Activerecord
Capistrano - Can't Deploy My Database.Yml
Ruby String Strip Defined Characters
Fresh Install of Rvm in Ubuntu Isn't Letting Me Install Gems (Zlib Error)