RVM是Ruby Version Manager的缩写,是管理Ruby版本的工具,方便在开发、部署的时候于多个Ruby环境中切换与使用
关于RVM的信息,请参考官方网站的最新资料为准
以bash为例
| # | |
| # Automatically generated file; DO NOT EDIT. | |
| # Linux/x86_64 3.7.10-gentoo Kernel Configuration | |
| # | |
| CONFIG_64BIT=y | |
| CONFIG_X86_64=y | |
| CONFIG_X86=y | |
| CONFIG_INSTRUCTION_DECODER=y | |
| CONFIG_OUTPUT_FORMAT="elf64-x86-64" | |
| CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" |
| (defun shift-text (distance) | |
| (if (use-region-p) | |
| (let ((mark (mark))) | |
| (save-excursion | |
| (indent-rigidly (region-beginning) | |
| (region-end) | |
| distance) | |
| (push-mark mark t t) | |
| (setq deactivate-mark nil))) | |
| (indent-rigidly (line-beginning-position) |
| ; | |
| ( | |
| function () { | |
| 'use strict' | |
| var root = this | |
| var b64 | |
| if (typeof exports !== 'undefined') { |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # Copyright (c) 2012 - AleiPhoenix <aleiphoenix@gmail.com> | |
| import amqplib.client_0_8 as amqp | |
| # This is the function that basic_consume will send messages to | |
| def process_message( message ): | |
| """ Callback function used by channel.basic_consume """ | |
| print 'Received: %s' % message.body |
RVM是Ruby Version Manager的缩写,是管理Ruby版本的工具,方便在开发、部署的时候于多个Ruby环境中切换与使用
关于RVM的信息,请参考官方网站的最新资料为准
以bash为例
| /home/evans/.rvm/gems/ruby-1.9.3-p392@fluentd-master/gems/fluentd-0.10.33/lib/fluent/event.rb:34: [BUG] Segmentation fault | |
| ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-linux] | |
| -- Control frame information ----------------------------------------------- | |
| c:0057 p:---- s:0212 b:0212 l:000211 d:000211 CFUNC :to_msgpack | |
| c:0056 p:0019 s:0208 b:0208 l:0021d0 d:000207 BLOCK /home/evans/.rvm/gems/ruby-1.9.3-p392@fluentd-master/gems/fluentd-0.10.33/lib/fluent/event.rb:34 | |
| c:0055 p:---- s:0204 b:0204 l:000203 d:000203 FINISH | |
| c:0054 p:---- s:0202 b:0202 l:000201 d:000201 CFUNC :call | |
| c:0053 p:0027 s:0197 b:0197 l:000188 d:000196 BLOCK /home/evans/.rvm/gems/ruby-1.9.3-p392@fluentd-master/gems/fluentd-0.10.33/lib/fluent/event.rb:107 | |
| c:0052 p:---- s:0194 b:0194 l:000193 d:000193 FINISH |
http://cateee.net/lkddb/web-lkddb/BLOCK.html
关闭这个选项可能会引起一些block filesystem例如ext3不可用,建议Y
When compiling ruby from source tarball by hand, if you got executable host ruby is required. use --with-baseruby option. Then this can be the reason.
make distclean (assume you configure'ed once) then configure and make, got
executable host ruby is required. use --with-baseruby option
distclean cleans out some file generated from erb, which requiring a existing ruby.
| # -*- coding: utf-8 -*- | |
| from flask import Flask | |
| from sqlalchemy import SQLAlchemy | |
| app.config['SQLALCHEMY_DATABASE_URI'] = "mysql+oursql://foo:bar@localhost/test1" | |
| # binds multiple database definition | |
| app.config['SQLALCHEMY_BINDS'] = { | |
| "db1": "mysql+oursql://foo:bar@localhost/test1", |
| --- a/drivers/video/backlight/apple_bl.c | |
| +++ b/drivers/video/backlight/apple_bl.c | |
| @@ -31,6 +31,8 @@ struct hw_data { | |
| /* I/O resource to allocate. */ | |
| unsigned long iostart; | |
| unsigned long iolen; | |
| + unsigned long io_1_start; | |
| + unsigned long io_1_len; | |
| /* Backlight operations structure. */ | |
| const struct backlight_ops backlight_ops; |