0

I am trying to install pgsql gem, but I have some strange encoding issue when trying to install. Whole app have just been migrated from windows environment to Linux environment, but only default gemfile was used. I have found that way to solve is to change locale in registry.rb, but as I mentioned, my environment is Linux. Gist of gem_make.out can be viewed here: gist

postgresql is installed and runing:

$ service postgresql status 
9.3/main (port 5432): online

EDIT: Seems that this issue is only happening with pgsql gem, other gems are installing sucessfuly, for example, running $ gem install A_123 installs specified gem successfully.

Alan Kis
  • 1,790
  • 4
  • 24
  • 47

1 Answers1

0

According to similar question on SO, to which SO user grenierm5 pointed me,i t seems that installing ruby-dev headers for compiling extension modules did the trick.

sudo apt-get install ruby-dev && sudo gem install pg
Community
  • 1
  • 1
Alan Kis
  • 1,790
  • 4
  • 24
  • 47