Error
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.
An error occurred while installing json (1.8.2), and Bundler cannot continue. Make sure that gem install json -v '1.8.2' succeeds before bundling.
got this error on running the
What are the ruby -versions and rails --version compatible with the app ?
i have try to run the ruby 2.2.0 / rails 4.1.6 . get this error
An error occurred while installing pg (0.18.1), and Bundler cannot continue. Make sure that gem install pg -v '0.18.1'succeeds before bundling.
Please update to ruby 2.4.1 / rails latest version. Thanks
@augmen It looks like a problem with the Bundler.
An error occurred while installing pg (0.18.1), and Bundler cannot continue.
You get this error because you haven't setup the binaries for postgres. Okay so for installing Postgres gem(pg) you need to install postgres first. You can follow this guide right here https://www.digitalocean.com/community/tutorials/how-to-setup-ruby-on-rails-with-postgres
Please update to ruby 2.4.1 / rails latest version. how to add media player ?
got another error with rvm.io . i have run the command gem install pg . The ERROR - pg supports ruby version > 1.9 . Please guide.
@augmen You actually need a higher version of ruby. Please follow this https://bitbucket.org/ged/ruby-pg/wiki/Home
i guess that rvm.io manages that :}
Failed again
checking for pg_config... no No pg_config... trying anyway. If building fails, please try again with --with-pg-config=/path/to/pg_config checking for libpq-fe.h... no Can't find the 'libpq-fe.h header *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.
after running the ruby 2.3.1 and rails . i have run your code
git clone https://github.com/sudharti/twitter-clone/ cd twitter-clone bundle rake db:migrate rails s
got this error. please clarify

@augmen Before you install the pg gem you need to setup postgresql. That's why the gem installation fails. Follow this link https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-ubuntu-16-04