jruby gems

JRuby · datamapper/do Wiki

 jruby --version
jruby 1.3.1 (ruby 1.8.6p287) (2009-07-10 6586) (Java HotSpot(TM) Client VM 1.6.0_15) [i386-java]

Install Rake, full JRuby-OpenSSL support, RSpec and ZenTest:

 

jruby -S gem update --system
jruby -S gem install rake
jruby -S gem install jruby-openssl
jruby -S gem install rspec ZenTest

JRuby · datamapper/do Wiki

sudo jruby -S gem install jdbc-[DBNAME]
jdbc-derby
jdbc-h2
jdbc-hsqldb
jdbc-mysql
jdbc-postgres
jdbc-sqlite3

ActiveRecord JDBC: Wiki: Home — Project Kenai

Inside Rails

 

To use activerecord-jdbc-adapter with JRuby on Rails:

1. Choose the adapter you wish to gem install. The following pre-packaged adapters are available:

  • base jdbc (activerecord-jdbc-adapter). Supports all available databases via JDBC, but requires you to download and manually install the database vendor's JDBC driver .jar file.
  • mysql (activerecord-jdbcmysql-adapter)
  • postgresql (activerecord-jdbcpostgresql-adapter)
  • derby (activerecord-jdbcderby-adapter)
  • hsqldb (activerecord-jdbchsqldb-adapter)
  • h2 (activerecord-jdbch2-adapter)

2. Run the "jdbc" generator to prepare your Rails application for JDBC.

    jruby script/generate jdbc

uninstall all gems

uninstall all gems

31. May 2008
edit

To perform batch operations in MacPorts you can use the predefined pseudo-portnames. RubyGems has no such thing, but instead it can handle regular expressions. So to uninstall all gems of your default RubyGems installation you can simply issue the following command.

sudo gem uninstall --a --ignore-dependencies .+
posted on 2012-05-24 16:24  lexus 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/lexus/archive/2012/05/24/2516704.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值