scaffeinate / twitter-clone

An Open Source clone of Twitter using Ruby on Rails
http://twitter-clone-rails.herokuapp.com/
GNU General Public License v2.0
79 stars 65 forks source link

Error #27

Open augmen opened 7 years ago

augmen commented 7 years ago

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 thatgem install json -v '1.8.2'succeeds before bundling.

got this error on running the command .

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 thatgem install pg -v '0.18.1'succeeds before bundling.

Please update to ruby 2.4.1 / rails latest version. Thanks

scaffeinate commented 7 years ago

@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

augmen commented 7 years ago

Please update to ruby 2.4.1 / rails latest version. how to add media player ?

augmen commented 7 years ago

got another error with rvm.io . i have run the command gem install pg . The ERROR - pg supports ruby version > 1.9 . Please guide.

scaffeinate commented 7 years ago

@augmen You actually need a higher version of ruby. Please follow this https://bitbucket.org/ged/ruby-pg/wiki/Home

augmen commented 7 years ago

i guess that rvm.io manages that :}

augmen commented 7 years ago

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.

augmen commented 7 years ago

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

screen shot 2017-08-03 at 15 44 20

scaffeinate commented 7 years ago

@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