Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error #27

Open
augmen opened this issue Jul 30, 2017 · 8 comments
Open

Error #27

augmen opened this issue Jul 30, 2017 · 8 comments

Comments

@augmen
Copy link

augmen commented Jul 30, 2017

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

@scaffeinate
Copy link
Owner

@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
Copy link
Author

augmen commented Aug 1, 2017

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

@augmen
Copy link
Author

augmen commented Aug 2, 2017

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
Copy link
Owner

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

@augmen
Copy link
Author

augmen commented Aug 3, 2017

i guess that rvm.io manages that :}

@augmen
Copy link
Author

augmen commented Aug 3, 2017

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
Copy link
Author

augmen commented Aug 3, 2017

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
Copy link
Owner

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants