When i run the command in jagtarsingh@MacBook-Air-3 ~/diaspora (master)
RIALS_ENV=development bundle exec rake db:create
rbenv: version `2.4’ is not installed (set by /Users/jagtarsingh/diaspora/.ruby-version
If that doesn’t work you might need to check the PATH= settings in your .bash_profile or .bashrc file. Someone else would probably need to help you with that as I get a bit confused there! But try correcting the typo first and see if that works.
OK, I don’t think I’ll be able to help any further, sorry. One of the tech wizards will sort you out.
The first error response makes me wonder whether you’d installed RVM incorrectly, or whether your .bash_profile or .bashrc file is incorrectly set up. But I wouldn’t be able to advise how to identify or correct that, and I’m having trouble with my own dev setup, and haven’t been able to solve that!
Good luck, and I hope someone gets you there soon.
It looks like you’re using rbenv instead of rvm (which is usually used with our setups), but I think it theoretically should work. I never used rbenv so I don’t know how it works. You can either try to install rvm (I have no idea if that conflicts with rbenv in some way?), or try to fix rbenv. Maybe rbenv doesn’t detect 2.4.1 as 2.4 (which is configured in our .ruby-version to automatically select the latest 2.4.x version with rvm), so you maybe can just select 2.4.1 manually, but I don’t know how to do this with rbenv.
Why shouldn’t it be compatible? It works perfectly on many pods and in our tests on travis.
Oh, looks like script/configure_bundler doesn’t work on mac (my bad, but I created a fix for that here), probably the reason why it isn’t in the mac guide. But you can do everything the script does by hand. So when you want to install a development installation with postgresql you can run this (everything else the script does is only relevant for production):
This version of this instructions assumes you’re using Postgres; if you’re using another database, you’ll need to select that.
Also, you’re on the master branch. For a development setup, you should pull the develop branch.
If you are trying to set up a production pod, you’ll need to alter the command to include RAILS_ENV=production. (The command in the installation instructions is slightly different to what is in your opening post; RAILS_ENV=production bin/rake db:create db:migrate. What you have written looks familiar, but I can’t find it in the installations instructions.)