Hey, I''ve checked my gems env, appears to be fine. Is there anything else I can check to see why it is not recognising the Rails command? I have read a number of post and they all seem to point back to PATH. BTW: Using Ubuntu OS. Cheers, James -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.
Rvm or apt-get install? 2011/12/4 James Star <jamess.developer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> Hey, > > I''ve checked my gems env, appears to be fine. > > Is there anything else I can check to see why it is not recognising the > Rails command? > > I have read a number of post and they all seem to point back to PATH. > > BTW: Using Ubuntu OS. > > Cheers, > James > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.
Do you have RVM (or rb-env) installed? Or you use system ruby? On Dec 4, 2011, at 11:27 PM, James Star wrote:> Hey, > > I''ve checked my gems env, appears to be fine. > > Is there anything else I can check to see why it is not recognising the Rails command? > > I have read a number of post and they all seem to point back to PATH. > > BTW: Using Ubuntu OS. > > Cheers, > James > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.
On 4 December 2011 21:27, James Star <jamess.developer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hey, > > I''ve checked my gems env, appears to be fine. > > Is there anything else I can check to see why it is not recognising the > Rails command? > > I have read a number of post and they all seem to point back to PATH. > > BTW: Using Ubuntu OS.Have you installed rails itself? If so how? What do you see if do gem list Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.
are u in the folder on terminal? probally u not in your folder app... Enviado via iPad Em 04/12/2011, às 18:46, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> escreveu:> On 4 December 2011 21:27, James Star <jamess.developer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> Hey, >> >> I''ve checked my gems env, appears to be fine. >> >> Is there anything else I can check to see why it is not recognising the >> Rails command? >> >> I have read a number of post and they all seem to point back to PATH. >> >> BTW: Using Ubuntu OS. > > Have you installed rails itself? If so how? > > What do you see if do > gem list > > Colin > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.
rails command does not depend on the folder. Only if he is trying to use rails server (for example) within a non rails-app directory. And even though, the exception raised is another... 2011/12/4 Leoncio Caminha <leoncio.sobreira-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> are u in the folder on terminal? probally u not in your folder app... > > Enviado via iPad > > Em 04/12/2011, às 18:46, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> escreveu: > > > On 4 December 2011 21:27, James Star <jamess.developer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> Hey, > >> > >> I''ve checked my gems env, appears to be fine. > >> > >> Is there anything else I can check to see why it is not recognising the > >> Rails command? > >> > >> I have read a number of post and they all seem to point back to PATH. > >> > >> BTW: Using Ubuntu OS. > > > > Have you installed rails itself? If so how? > > > > What do you see if do > > gem list > > > > Colin > > > > -- > > You received this message because you are subscribed to the Google > Groups "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > For more options, visit this group at > groups.google.com/group/rubyonrails-talk?hl=en. > > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.
On 4 December 2011 21:51, Leoncio Caminha <leoncio.sobreira-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> are u in the folder on terminal? probally u not in your folder app...That should not matter when using the rails command, for example to make a new app using ''rails new'' one must not be in an existing app. It does matter if using rake. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.
Hey everyone, I am in terminal Rails 2.3.8 is installed Rake 0.9.2.2 is installed I used sudo apt-get install Yes, I am inside the app directory :) I did check echo $PATH and noticed it was pointing to a games directory, so I changed it with export PATH=$PATH:"var/lib/gems/1.8/bin" (example) then I could access rails -v, to get version, but then script/server was not available. Any ideas? Looks like its something to do with PATH, I also checked bash.bashrc, although I don''t quite understand bashrc. PS: I tried to open Gmail inside Ubuntu, but I''m using it through XenCenter, it''s quite slow. So having to re-type everything out :/ Cheers, James On Mon, Dec 5, 2011 at 10:46 AM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 4 December 2011 21:27, James Star <jamess.developer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hey, > > > > I''ve checked my gems env, appears to be fine. > > > > Is there anything else I can check to see why it is not recognising the > > Rails command? > > > > I have read a number of post and they all seem to point back to PATH. > > > > BTW: Using Ubuntu OS. > > Have you installed rails itself? If so how? > > What do you see if do > gem list > > Colin > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.
what the problem? ruby script console wont work? if you tryin this whit a rails 2.3.8 its wont work...explain more the problem please, paste the error appears on terminal ok? Enviado via iPad Em 04/12/2011, às 20:02, James Star <jamess.developer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> escreveu:> Hey everyone, > > I am in terminal > > Rails 2.3.8 is installed > Rake 0.9.2.2 is installed > > I used sudo apt-get install > > Yes, I am inside the app directory :) > > I did check echo $PATH and noticed it was pointing to a games directory, > so I changed it with export PATH=$PATH:"var/lib/gems/1.8/bin" (example) > > then I could access rails -v, to get version, but then script/server was not available. > > Any ideas? Looks like its something to do with PATH, I also checked bash.bashrc, although I don''t quite understand bashrc. > > PS: I tried to open Gmail inside Ubuntu, but I''m using it through XenCenter, it''s quite slow. > So having to re-type everything out :/ > > Cheers, > James > > On Mon, Dec 5, 2011 at 10:46 AM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > On 4 December 2011 21:27, James Star <jamess.developer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hey, > > > > I''ve checked my gems env, appears to be fine. > > > > Is there anything else I can check to see why it is not recognising the > > Rails command? > > > > I have read a number of post and they all seem to point back to PATH. > > > > BTW: Using Ubuntu OS. > > Have you installed rails itself? If so how? > > What do you see if do > gem list > > Colin > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en. > > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.
On 4 December 2011 23:02, James Star <jamess.developer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hey everyone, > > I am in terminal > > Rails 2.3.8 is installed > Rake 0.9.2.2 is installed > > I used sudo apt-get installThat is not the best way of installing rails on Ubuntu. I think you are best to use rvm. See beginrescueend.com Then install all the stuff you need for rails development, something like # dependencies for ruby build sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev autoconf # extras for mysql gem build sudo apt-get install libmysql-ruby libmysqlclient-dev # for nokigiri if required sudo apt-get install libxslt-dev libxml2-dev Then install the version of ruby you want within rvm, for example rvm install 1.9.2 and finally rails gem install rails Note the you should not use sudo gem install when using rvm. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.
Thanks Colin, great stuff :) Will give it a go :) On Mon, Dec 5, 2011 at 8:43 PM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 4 December 2011 23:02, James Star <jamess.developer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hey everyone, > > > > I am in terminal > > > > Rails 2.3.8 is installed > > Rake 0.9.2.2 is installed > > > > I used sudo apt-get install > > That is not the best way of installing rails on Ubuntu. I think you > are best to use rvm. > See beginrescueend.com > Then install all the stuff you need for rails development, something like > > # dependencies for ruby build > sudo apt-get install build-essential bison openssl libreadline6 > libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev > libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev autoconf > # extras for mysql gem build > sudo apt-get install libmysql-ruby libmysqlclient-dev > # for nokigiri if required > sudo apt-get install libxslt-dev libxml2-dev > > Then install the version of ruby you want within rvm, for example > rvm install 1.9.2 > > and finally rails > gem install rails > > Note the you should not use sudo gem install when using rvm. > Colin > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.