`
xiayw
  • 浏览: 11075 次
  • 来自: ...
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
Rails Ready Ruby and Rails setup script for Linux and OSX Distros supported:     Ubuntu 10.04 LTS, 10.10 and 11.04     CentOS 5 (utilizes the Fedora EPEL repo)     OSX (requires XCode to be installed) Run this on a fresh install. It WILL update your system! To run: Linux     wget --no-check-certif ...
jruby -S rails new vm_mgmt -d mysql jruby -S rails generate scaffold User  name:string password:string team:string datastore:string vmhost:string folder:string db: create database vm_mgmt_test; create database vm_mgmt_development; create database vm_mgmt_production; grant all on vm_mgmt_development ...
如何开发JRuby+MySQL+Rails 3程序? 安装JDK 1.6 -------------------------- 下载jdk-6u25-linux-x64.bin chmod 700 jdk-6u25-linux-x64.bin ./jdk-6u25-linux-x64.bin 安装JRuby -------------------------- 下载jruby-bin-1.6.2.tar.gz tar xvfz jruby-bin-1.6.2.tar.gz 安装GlassFish ------------------------- 下载glassfish-3.1-web-ml ...
Start to use capistrano 1 add " gem 'capistrano'" a new line to Gemfile 2 run:  bundle install 3 # apt-get install openssh-server [/color] ssh yourname@localhost The authenticity of host 'localhost (::1)' can't be established. RSA key fingerprint is 07:f7:49:20:90:37:9e:54:c0:9e:a1:ca:0f ...
其实很简单,不过自己 没有弄明白罢了 首先 jruby -S gem install active_record jruby -S gem install activerecord-jdbcmysql-adapter 一般你装 rails 得时候yong bundle 就会装一坨东西了。 呵呵 然后 在你得 Gemfile  ( Rails application in /somewhere) platforms :jruby do   gem 'activerecord-jdbc-adapter', :require => false end # Productio ...
Install environment: sudo aptitude install build-essential libopenssl-ruby libfcgi-dev sudo aptitude install ruby irb rubygems ruby1.8-dev sudo aptitude install sqlite3 libsqlite3-dev Using the gem update system: sudo gem update --system • Using the gem designed to update troublesome systems: sudo ...

Screen

Install : sudo apt-get install screen 在终端中输入 screen 就启动 Screen 了。按照提示按空格键或回车键开始我们的 Screen 快乐之旅吧。现在,你可以随便执行某些命令来测试,如:ls -l。接着,我们就用 Screen 来孵化一个新的 Shell,同时按组合键 ctrl-a c,同样的,你能够在这里执行命令,我们假如是 ps aux。加上最初的,那么现在在 Screen 中就有两个 Shell 了。可是,如何在这两个 Shell 间切换呢?试试 ctrl-a ctrl-a 看?是不是很方便地切换回来了呢。假如你要退出,甚至关掉终端,那么 ...
[list] [step jruby script/generate model Customer jruby script/generate model Order jruby script/generate model OrderLine jruby script/generate model User jruby -S rake db:migrate (in /home/xia/worktest/shoplet) rake aborted! An error has occurred, all later migrations canceled: Table users does ...
先留着等我搞明白了 再写
老郁闷了 以前很简单的功能现在不成了 [Couldn't find Product with ID=list RAILS_ROOT: /home/xia/worktest/shoplet Application Trace | Framework Trace | Full Trace /home/xia/jruby-1.5.0/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/base.rb:1616:in `find_one' /home/xia/jruby-1.5.0/lib/ruby/gems/1.8/gems/a ...
1  ActiveRecord-JDBC 已经过时了 删除 jruby -S gem remove ActiveRecord-JDBC 2  安装新的包 jruby -S gem list mysql jruby -S gem install mysql -- --with-mysql-lib=/usr/lib/mysql --with-mysql-include=/usr/share/mysql jruby -S gem install activerecord-jdbc-adapter jruby -S gem remove ActiveRecord-JDBC 3  更新 gme jrub ...
1 准备:   Pratical JRuby on Rails Web 2.0 Project   这本书很老了所以跟着作出老多问题   我用了很多时间才把基本功能搞地。 先说环境: jruby -S gem list -l *** LOCAL GEMS *** actionmailer (2.3.8) actionpack (2.3.8) activerecord (2.3.8) activerecord-jdbc-adapter (0.9.7 java) activerecord-jdbcmysql-adapter (0.9.7 java) activeresource (2.3.8) ...
昨天鼓捣了一整天 sqlite 驱动装完了,建我第一个rails的时侯出错了 require_frameworks': no such file to load -- openssl (RuntimeError 我在网上搜了一下这个错 报的很多但是解决的很少,后来发现很多结局不了的是 redhat 下开发的, 后来 看到 通过 rpm -qa|grep 可以查询自己缺失的东西 我知道自己没有装 openssl-devel 但是 gem list --system 里查了没有 好在网上搜到 安装 方法 yum install openssl-devel  它列出来  这些都要装 ,那就装吧, 傻 ...
Global site tag (gtag.js) - Google Analytics