twitter-clone icon indicating copy to clipboard operation
twitter-clone copied to clipboard

Error

Open augmen opened this issue 8 years ago • 8 comments

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

Please update to ruby 2.4.1 / rails latest version. Thanks

augmen avatar Jul 30 '17 08:07 augmen

@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

scaffeinate avatar Jul 31 '17 16:07 scaffeinate

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

augmen avatar Aug 01 '17 04:08 augmen

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 avatar Aug 02 '17 03:08 augmen

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

scaffeinate avatar Aug 02 '17 17:08 scaffeinate

i guess that rvm.io manages that :}

augmen avatar Aug 03 '17 01:08 augmen

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 avatar Aug 03 '17 02:08 augmen

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

augmen avatar Aug 03 '17 10:08 augmen

@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

scaffeinate avatar Aug 03 '17 15:08 scaffeinate