ruby on rails - How do I get Bundler gem to work without doing /bin/bash --login -


i've been following lot of instructions on how fix rails installation without understanding everything. can create new rails app now, if type

/bin/bash --login 

in terminal first. if don't first, the

rails new 

command fails when gets part with

bundle install 

this first line of error message when fails:

/usr/lib/ruby/2.2.0/rubygems.rb:243:in `bin_path': can't find gem bundler (>= 0) (gem::gemnotfoundexception) 

is there path setting or can fix can make new rails app in virgin terminal window? also, bin/bash --login do? doesn't change command prompt, , thought logged in when entered password start linux.

i recommend use:

rails <version> new <appname> 

... <version> rails version wish use (e.g. _4.2.0_) , <appname> name of app wish create. make sure @ root of workspace when run command.

/bin/bash --login invoke bash non-interactive shell , execute commands /etc/profile. after reading file, looks ~/.bash_profile, ~/.bash_login, , ~/.profile, in order, , reads , executes commands first 1 exists , readable. --noprofile option may used when shell started inhibit behavior. see detailed documentation here. so, when run this, possible setting environment variables when allow rails app created.


Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -