Skip to content

Instantly share code, notes, and snippets.

@afmicc
Last active October 20, 2019 02:41
Show Gist options
  • Save afmicc/cc4ed8c4707b0580d6252c9ffed61dc7 to your computer and use it in GitHub Desktop.
Save afmicc/cc4ed8c4707b0580d6252c9ffed61dc7 to your computer and use it in GitHub Desktop.
Installing ruby on rails on windows from Ubuntu bash

Ruby on Rails installation

Installing ruby on rails on windows from Ubuntu bash

  1. (Optional) Install PogreSQL

  2. Install ruby + rails

  3. If you install rails 6+, you need to install yarn.

Troubleshooting

Error: You must install at least one postgresql-client-<version> package

Solution:

  • sudo apt-get install postgresql-client

No pg_config... trying anyway. If building fails, please try again with --with-pg-config=/path/to/pg_config

Solution:

  • sudo apt-get install postgresql-client libpq5 libpq-dev
  • gem install pg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment