自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

透過Ruby source了解Ruby真理

開發(fā) 開發(fā)工具
Ruby source是一個可以幫助我們理解Ruby語言實質(zhì)性能的幫助工具。在這里我們將會通過對Ruby source的理解來進(jìn)一步提高對Ruby語言的認(rèn)知程度。

Ruby語言的出現(xiàn),為編程人員提供了一個愉悅的編程環(huán)境。在這里我們就通過一段簡單的Ruby source,來看看Ruby語言的基本概念。#t#

1 從rubyforge下載1.85版的src,解壓縮文件到指定目錄下。

2 環(huán)境準(zhǔn)備:我是WindowXp(sp2 jp)+ Cygwin

3 然后打開指定目錄下解壓縮的readme文件,按照步驟運(yùn)行命令。
 

  1. * How to compile and install  
  2. This is what you need to do to compile 
    and install Ruby:  
  3.  
  4. 1. If ./configure does not exist or is older 
    than configure.in,  
  5. run autoconf to (re)generate configure.  
  6.  
  7. 2. Run ./configure, which will generate 
    config.h and Makefile.  
  8.  
  9. 3. Edit defines.h if you need. Usually 
    this step will not be needed.  
  10.  
  11. 4. Remove comment mark(#) before the 
    module names from ext/Setup (or  
  12. add module names if not present), 
    if you want to link modules  
  13. statically.  
  14. If you don't want to compile non 
    static extension modules  
  15. (probably on architectures which does 
    not allow dynamic loading),  
  16. remove comment mark from the
     line "#option nodynamic" in  
  17. ext/Setup.  
  18.  
  19. 5. Run make.  
  20.  
  21. 6. Optionally, run 'make test' to check
     whether the compiled Ruby  
  22. interpreter works well. If you see 
    the message "test succeeded",  
  23. your ruby works as it should (hopefully).  
  24.  
  25. 7. Run 'make install'  
  26. You may have to be a super user to install ruby. 

 

編譯成功,在usr/local/下面生成了編譯后的文件。
 

責(zé)任編輯:曹凱 來源: 博客園
相關(guān)推薦

2009-12-18 11:37:54

Ruby關(guān)鍵字yiel

2009-12-15 17:28:11

Ruby自動化腳本框架

2022-02-23 09:36:11

GoRuby編程語言

2009-08-27 10:21:22

Ruby on Rai

2011-04-18 09:53:08

Ruby

2014-11-05 11:05:15

Ruby

2009-09-09 17:45:25

Ruby的blocks

2009-12-14 15:04:32

Ruby性能特點(diǎn)

2009-12-14 13:47:28

Ruby簡單語法

2009-12-14 09:33:04

Ruby安裝

2012-11-07 09:41:30

2009-12-14 13:56:12

Ruby特點(diǎn)

2009-12-15 14:16:13

Ruby Contin

2009-12-15 11:01:31

Ruby數(shù)組

2009-12-16 14:51:26

Ruby nil

2009-12-15 15:28:22

Ruby重載

2009-12-15 15:35:56

Ruby symbol

2009-12-15 10:23:23

Ruby應(yīng)用技巧

2009-08-06 09:13:36

Ruby on Rai

2009-12-14 11:12:55

Ruby運(yùn)行
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號