Forum: JRuby rail3 and rake.

Posted by Msan Msan (msan)
on 2010-08-24 13:24
(Received via mailing list)
I'm trying rails 3.
I've installed postgres jdbc adapter, run jruby -S rails new myapp -m
http://jruby.org/rails3.rb and it's ok.
Then jruby -S rake -T and I have this error:

Could not find gem 'jdbc-sqlite3 (>= 0, runtime)' in any of the gem 
sources.
Try running `bundle install.
If I want to use postgres and I have installed it why rake asks for 
sqlite3?
Has anyone the same problem?

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Posted by Michael Johann (malagant)
on 2010-08-24 13:33
(Received via mailing list)
Hi Mauro,

this is a problem with rails not knowing that you would like to use a 
JDBC driver.

Open config/Gemfile and remove the line:

gem 'sqlit3-ruby'

and replace it with

gem 'activerecord-jdbc-adapter'
gem 'activerecord-jdbcsqlite3-adapter'
gem 'jdbc-sqlite3'

then bundle install

Cheers
Michael Johann

-----Ursprüngliche Nachricht-----
Von: Mauro [mailto:mrsanna1@gmail.com]
Gesendet: Dienstag, 24. August 2010 13:24
An: user@jruby.codehaus.org
Betreff: [jruby-user] rail3 and rake.

I'm trying rails 3.
I've installed postgres jdbc adapter, run jruby -S rails new myapp -m 
http://jruby.org/rails3.rb and it's ok.
Then jruby -S rake -T and I have this error:

Could not find gem 'jdbc-sqlite3 (>= 0, runtime)' in any of the gem 
sources.
Try running `bundle install.
If I want to use postgres and I have installed it why rake asks for 
sqlite3?
Has anyone the same problem?

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Posted by Msan Msan (msan)
on 2010-08-24 13:42
(Received via mailing list)
Thanks.
I've modified Gemfile like this:

gem 'activerecord-jdbc-adapter'
gem 'activerecord-jdbcpostgresql-adapter'
gem 'jdbc-postgres'

as I'm using postgres.
I've had installed activerecord-jdbcpostgresql-adapter so I don't
think I have to run bundle install.



On 24 August 2010 13:33, Michael Johann <mjohann@rails-experts.com> 
wrote:
> gem 'activerecord-jdbc-adapter'
> Gesendet: Dienstag, 24. August 2010 13:24
> Has anyone the same problem?
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.