欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費電子書(shū)等14項超值服

開(kāi)通VIP
RubyGems簡(jiǎn)介
RubyGems是一個(gè)方便而強大的Ruby程序包管理器( package manager),類(lèi)似RedHat的RPM.它將一個(gè)Ruby應用程序打包到一個(gè)gem里,作為一個(gè)安裝單元。
當前最新版本為0.8.3
下載地址:http://rubyforge.org/frs/?group_id=126
主頁(yè):http://rubygems.rubyforge.org/wiki/wiki.pl
最新的Ruby版本已經(jīng)包含RubyGems了。


特點(diǎn):
能遠程安裝包
包之間依賴(lài)關(guān)系的管理
簡(jiǎn)單可靠的卸載(uninstallation)
查詢(xún)機制,能查詢(xún)本地和遠程服務(wù)器的包信息
能保持一個(gè)包的不同版本
基于Web的查看接口,能查看你安裝的gem的信息。


安裝RubyGems
首先從rubyforge下載它的源文件 ,然后解壓縮到一個(gè)地方,比如C:rubygems-0.8.3

C:rubygems-0.8.3>ruby setup.rb
---> bin
<--- bin
---> lib
---> lib/rubygems
<--- lib/rubygems
<--- lib
---> bin
<--- bin
---> lib
---> lib/rubygems
<--- lib/rubygems
<--- lib
rm -f InstalledFiles
---> bin
mkdir -p c:/ruby/bin/
install gem c:/ruby/bin/
install gem_server c:/ruby/bin/
install generate_yaml_index.rb c:/ruby/bin/
install update_rubygems c:/ruby/bin/
<--- bin
---> lib
mkdir -p c:/ruby/lib/ruby/site_ruby/1.8/
install rubygems.rb c:/ruby/lib/ruby/site_ruby/1.8/
install ubygems.rb c:/ruby/lib/ruby/site_ruby/1.8/
---> lib/rubygems
mkdir -p c:/ruby/lib/ruby/site_ruby/1.8/rubygems
install builder.rb c:/ruby/lib/ruby/site_ruby/1.8/rubygems
install cmd_manager.rb c:/ruby/lib/ruby/site_ruby/1.8/rubygems
install command.rb c:/ruby/lib/ruby/site_ruby/1.8/rubygems
install config_file.rb c:/ruby/lib/ruby/site_ruby/1.8/rubygems
install doc_manager.rb c:/ruby/lib/ruby/site_ruby/1.8/rubygems
install format.rb c:/ruby/lib/ruby/site_ruby/1.8/rubygems
install gem_commands.rb c:/ruby/lib/ruby/site_ruby/1.8/rubygems
install gem_runner.rb c:/ruby/lib/ruby/site_ruby/1.8/rubygems
install installer.rb c:/ruby/lib/ruby/site_ruby/1.8/rubygems
install loadpath_manager.rb c:/ruby/lib/ruby/site_ruby/1.8/rubygems
install old_format.rb c:/ruby/lib/ruby/site_ruby/1.8/rubygems
install open-uri.rb c:/ruby/lib/ruby/site_ruby/1.8/rubygems
install package.rb c:/ruby/lib/ruby/site_ruby/1.8/rubygems
install remote_installer.rb c:/ruby/lib/ruby/site_ruby/1.8/rubygems
install rubygems_version.rb c:/ruby/lib/ruby/site_ruby/1.8/rubygems
install source_index.rb c:/ruby/lib/ruby/site_ruby/1.8/rubygems
install specification.rb c:/ruby/lib/ruby/site_ruby/1.8/rubygems
install user_interaction.rb c:/ruby/lib/ruby/site_ruby/1.8/rubygems
install validator.rb c:/ruby/lib/ruby/site_ruby/1.8/rubygems
install version.rb c:/ruby/lib/ruby/site_ruby/1.8/rubygems
<--- lib/rubygems
<--- lib

As of RubyGems 0.8.0, library stubs are no longer needed.
Searching $LOAD_PATH for stubs to optionally delete (may take a while)...
...done.
No library stubs found.

Successfully built RubyGem
Name: sources
Version: 0.0.1
File: sources-0.0.1.gem

C:rubygems-0.8.3>gem -v
0.8.3

安裝其實(shí)很簡(jiǎn)單。使用也簡(jiǎn)單,不帶參數運行g(shù)em則顯示使用方法:

C:rubygems-0.8.3>gem

RubyGems is a sophisticated package manager for Ruby. This is a
basic help message containing pointers to more information.

Usage:
gem -h/--help
gem -v/--version
gem command [arguments...] [options...]

Examples:
gem install rake
gem list --local
gem build package.gemspec
gem help install

Further help:
gem help commands list all ‘gem‘ commands
gem help examples show some examples of usage
gem help show help on COMMAND
(e.g. ‘gem help install‘)
Further information:
http://rubygems.rubyforge.org

安裝Rails

C:rubygems-0.8.3>gem install rails
Attempting local installation of ‘rails‘
Local gem file not found: rails*.gem
Attempting remote installation of ‘rails‘
Install required dependency rake? [Yn] y
Install required dependency activerecord? [Yn] y
Install required dependency actionpack? [Yn] y
Install required dependency actionmailer? [Yn] y
Successfully installed rails, version 0.9.1
Installing RDoc documentation for rails-0.9.1...
WARNING: Generating RDoc on .gem that may not have RDoc.

lib/binding_of_caller.rb:4:25: Couldn‘t find Continuation. Assuming it‘s a mod
e

lib/binding_of_caller.rb:36:21: Couldn‘t find Binding. Assuming it‘s a module

lib/rails_generator.rb:34:46: Skipping require of dynamic string: "#{path}/#{n
e}_generator.rb"
Installing RDoc documentation for rake-0.4.12...
Installing RDoc documentation for activerecord-1.2.0...
Installing RDoc documentation for actionpack-1.0.1...

lib/action_controller/scaffolding.rb:87:37: Skipping require of dynamic string
"#{model_id.id2name}"
Installing RDoc documentation for actionmailer-0.5.0...

C:rubygems-0.8.3>gem query --local

*** LOCAL GEMS ***

actionmailer (0.5.0)
Service layer for easy email delivery and testing.

actionpack (1.0.1)
Web-flow and rendering framework putting the VC in MVC.

activerecord (1.2.0)
Implements the ActiveRecord pattern for ORM.

rails (0.9.1)
Web-application framework with template engine, control-flow layer,
and ORM.

rake (0.4.12)
Ruby based make-like utility.

sources (0.0.1)
This package provides download sources for remote gem installation


如果命令沒(méi)有指明是從本地還是遠程安裝,則默認先從本地安裝,因為找不到rails*.gem文件,所以,所以再從遠程安裝。
遇到Rails依賴(lài)的包,我們也需要安裝。
默認得,這些gems都被安裝到了RUBY_HOMElibrubygems1.8gems下了(各個(gè)平臺,版本都可能不同)
你可以用--dir選項覆蓋這個(gè)默認值。


RubyGems還自帶了一個(gè)基于
WEBrick的web服務(wù)器程序gem_server,使得你可以通過(guò)web來(lái)查看生成的RDoc文檔。
C:rubygems-0.8.3>gem_server
[2004-12-19 13:06:12] INFO WEBrick 1.3.1
[2004-12-19 13:06:12] INFO ruby 1.8.2 (2004-11-06) [i386-mswin32]
[2004-12-19 13:06:12] INFO WEBrick::HTTPServer#start: pid=624 port=8808
127.0.0.1 - - [19/Dec/2004:13:06:26 中國標準時(shí)間] "GET / HTTP/1.1" 200 2248
本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請點(diǎn)擊舉報。
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
CentOS 5安裝ROR
gollum筆記
如何創(chuàng )建自己的ruby gem包
redmine在windows上安裝初體驗
在Windows下配置Ruby on Rails開(kāi)發(fā)環(huán)境
創(chuàng )建你的第一個(gè)Gem
更多類(lèi)似文章 >>
生活服務(wù)
分享 收藏 導長(cháng)圖 關(guān)注 下載文章
綁定賬號成功
后續可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服

欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久