From: tuti plain on 5 Feb 2010 12:21 Hello all, I am trying out Rails using JRuby. I set up a Rails app using netbeans, and installed all the necessary gems, including activerecord-jdbc-adapter, and rake. However, whenever I try to run a migration using "rake db:migrate, I get a message saying: Error opening script file: C:/jruby/projects/RecetaDB/rake (The system cannot fi nd the file specified) It is obvious that rake is not in that folder, although the rake file is, but how can I fix it? Note that I also use ruby one click instaler on this same machine. Could it be an environment variable problem? -- Posted via http://www.ruby-forum.com/.
From: Nick Sieger on 5 Feb 2010 13:01 On Fri, Feb 5, 2010 at 11:21 AM, tuti plain <hypermeister(a)yahoo.com> wrote: > Hello all, > > I am trying out Rails using JRuby. I set up a Rails app using > netbeans, and installed all the necessary gems, including > activerecord-jdbc-adapter, and rake. However, whenever I try to run a > migration using "rake db:migrate, I get a message saying: > > Error opening script file: C:/jruby/projects/RecetaDB/rake (The system > cannot fi > nd the file specified) > > It is obvious that rake is not in that folder, although the rake file > is, but how can I fix it? Note that I also use ruby one click instaler > on this same machine. Could it be an environment variable problem? Could be a number of things, PATH environment variable, bug in JRuby launcher scripts, etc. What about "jruby -S rake"? Maybe you're picking up a different rake than you expected. /Nick
From: tuti plain on 5 Feb 2010 14:48 Hi, I was solve to do the migration by explicitly specifying the path of rake: jruby c:\jruby\bin\rake db:migrate I had to install the jdbc adapter gem after that, but it worked. -- Posted via http://www.ruby-forum.com/.
From: Charles Oliver Nutter on 5 Mar 2010 10:54 On Fri, Feb 5, 2010 at 1:48 PM, tuti plain <hypermeister(a)yahoo.com> wrote: > Hi, > > Â I was solve to do the migration by explicitly specifying the path of > rake: > > jruby c:\jruby\bin\rake db:migrate > I concur with Nick...something's strange about your PATH What do you get if you type dir C:\jruby\bin\*.bat ?? Is there a rake.bat there? What version of JRuby? - Charlie
|
Pages: 1 Prev: ANN: Ruby 1.8.6 pl399 released Next: [ANN] envjs rubygem 0.1.1 |