blob: 1e9bae7e0c96d3d3258f6a57add3cc19bc2f9310 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
|
# Rubyã¨ã¯
Rubyã¯ã·ã³ãã«ãã¤å¼·åãªãªãã¸ã§ã¯ãæåã¹ã¯ãªããè¨èªã§ãï¼ Rubyã¯ç´ç²ãªãªãã¸ã§ã¯ãæåè¨èªã¨ãã¦è¨è¨ããã¦ããã®ã§ï¼
ãªãã¸ã§ã¯ãæåããã°ã©ãã³ã°ãæ軽ã«è¡ãäºãåºæ¥ã¾ãï¼ãã¡ããæ®éã®æç¶ãåã®ããã°ã©ãã³ã°ãå¯è½ã§ãï¼
Rubyã¯ããã¹ãå¦çé¢ä¿ã®è½åãªã©ã«åªãï¼Perlã¨åããããå¼·åã§ãï¼ããã«ã·ã³ãã«ãªææ³ã¨ï¼
ä¾å¤å¦çãã¤ãã¬ã¼ã¿ãªã©ã®æ©æ§ã«ãã£ã¦ï¼ããåãããããããã°ã©ãã³ã°ãåºæ¥ã¾ãï¼
## Rubyã®ç¹é·
* ã·ã³ãã«ãªææ³
* æ®éã®ãªãã¸ã§ã¯ãæåæ©è½(ã¯ã©ã¹ï¼ã¡ã½ããã³ã¼ã«ãªã©)
* ç¹æ®ãªãªãã¸ã§ã¯ãæåæ©è½(Mixin, ç¹ç°ã¡ã½ãããªã©)
* æ¼ç®åãªã¼ãã¼ãã¼ã
* ä¾å¤å¦çæ©è½
* ã¤ãã¬ã¼ã¿ã¨ã¯ãã¼ã¸ã£
* ã¬ã¼ãã¼ã¸ã³ã¬ã¯ã¿
* ãã¤ãããã¯ãã¼ãã£ã³ã° (ã¢ã¼ããã¯ãã£ã«ãã)
* 移æ¤æ§ãé«ãï¼å¤ãã®Unix-like/POSIXäºæãã©ãããã©ã¼ã ä¸ã§åãã ãã§ãªãï¼Windowsï¼ Mac OS
Xï¼BeOSãªã©ã®ä¸ã§ãåã cf.
http://bugs.ruby-lang.org/projects/ruby-trunk/wiki/SupportedPlatformsJa
## å
¥ææ³
### FTPã§
以ä¸ã®å ´æã«ããã¦ããã¾ãï¼
ftp://ftp.ruby-lang.org/pub/ruby/
### Subversionã§
éçºå
端ã®ã½ã¼ã¹ã³ã¼ãã¯æ¬¡ã®ã³ãã³ãã§åå¾ã§ãã¾ãï¼
$ svn co http://svn.ruby-lang.org/repos/ruby/trunk/ ruby
ä»ã«éçºä¸ã®ãã©ã³ãã®ä¸è¦§ã¯æ¬¡ã®ã³ãã³ãã§è¦ããã¾ãï¼
$ svn ls http://svn.ruby-lang.org/repos/ruby/branches/
### Gitã§
Subversionã®ãã©ã¼ãGitHubã«å
¬éãã¦ãã¾ãï¼ ä»¥ä¸ã®ã³ãã³ãã§ãªãã¸ããªãåå¾ã§ãã¾ãï¼
$ git clone git://github.com/ruby/ruby.git
## ãã¼ã ãã¼ã¸
Rubyã®ãã¼ã ãã¼ã¸ã®URLã¯
http://www.ruby-lang.org/
ã§ãï¼
## ã¡ã¼ãªã³ã°ãªã¹ã
Rubyã®ã¡ã¼ãªã³ã°ãªã¹ããããã¾ããåå å¸æã®æ¹ã¯
mailto:ruby-list-request@ruby-lang.org
ã¾ã§æ¬æã«
subscribe
ã¨æ¸ãã¦éã£ã¦ä¸ããã
Rubyéçºè
åãã¡ã¼ãªã³ã°ãªã¹ããããã¾ãããã¡ãã§ã¯rubyã®ãã°ãå°æ¥ã®ä»æ§æ¡å¼µãªã©å®è£
ä¸ã®åé¡ã«ã¤ãã¦è°è«ããã¦ãã¾ãã åå å¸æã®æ¹ã¯
mailto:ruby-dev-request@ruby-lang.org
ã¾ã§ruby-listã¨åæ§ã®æ¹æ³ã§ã¡ã¼ã«ãã¦ãã ããã
Rubyæ¡å¼µã¢ã¸ã¥ã¼ã«ã«ã¤ãã¦è©±ãåãruby-extã¡ã¼ãªã³ã°ãªã¹ãã¨æ°å¦é¢ä¿ã®è©±é¡ã«ã¤ãã¦è©±ãåãruby-mathã¡ã¼ãªã³ã°ãªã¹ãã¨
è±èªã§rubyã«ã¤ãã¦è©±ãåãruby-talkã¡ã¼ãªã³ã°ãªã¹ããããã¾ããåå æ¹æ³ã¯ã©ããåãã§ãã
## ã³ã³ãã¤ã«ã»ã¤ã³ã¹ãã¼ã«
以ä¸ã®æé ã§è¡ã£ã¦ãã ããï¼
1. ãã `configure` ãã¡ã¤ã«ãè¦ã¤ãããªããããã㯠`configure.in` ããå¤ããããªãã `autoconf` ãå®è¡ãã¦
æ°ãã `configure` ãçæãã
2. `configure` ãå®è¡ã㦠`Makefile` ãªã©ãçæãã
ç°å¢ã«ãã£ã¦ã¯ããã©ã«ãã®Cã³ã³ãã¤ã©ç¨ãªãã·ã§ã³ãä»ãã¾ãï¼ `configure` ãªãã·ã§ã³ã§ `optflags=..`
`warnflags=..` çã§ä¸æ¸ãã§ãã¾ãï¼
3. (å¿
è¦ãªãã°)`defines.h` ãç·¨éãã
å¤åï¼å¿
è¦ç¡ãã¨æãã¾ãï¼
4. (å¿
è¦ãªãã°)`ext/Setup` ã«éçã«ãªã³ã¯ããæ¡å¼µã¢ã¸ã¥ã¼ã«ãæå®ãã
`ext/Setup` ã«è¨è¿°ããã¢ã¸ã¥ã¼ã«ã¯éçã«ãªã³ã¯ããã¾ãï¼
ãã¤ãããã¯ãã¼ãã£ã³ã°ããµãã¼ããã¦ããªãã¢ã¼ããã¯ãã£ã§ã¯ `Setup` ã®1è¡ç®ã®ã`option nodynamic`ãã¨ããè¡ã®ã³
ã¡ã³ããå¤ãå¿
è¦ãããã¾ãï¼ã¾ãï¼ãã®ã¢ã¼ããã¯ãã£ã§æ¡å¼µã¢ã¸ã¥ã¼ã«ãå©ç¨ããããã«ã¯ï¼ãããããéçã«ãªã³ã¯ããã¦ããå¿
è¦ãããã¾ãï¼
5. `make` ãå®è¡ãã¦ã³ã³ãã¤ã«ãã
6. `make check`ã§ãã¹ããè¡ãï¼
ã`check succeeded`ãã¨è¡¨ç¤ºãããã°æåã§ãï¼ãã ããã¹ãã«æåãã¦ãå®ç§ã ã¨ä¿è¨¼ããã¦ãã訳ã§ã¯ããã¾ããï¼
7. `make install`
以ä¸ã®ãã£ã¬ã¯ããªãä½ã£ã¦ï¼ããã«ãã¡ã¤ã«ãã¤ã³ã¹ãã¼ ã«ãã¾ãï¼
* `${DESTDIR}${prefix}/bin`
* `${DESTDIR}${prefix}/include/ruby-${MAJOR}.${MINOR}.${TEENY}`
* `${DESTDIR}${prefix}/include/ruby-${MAJOR}.${MINOR}.${TEENY}/${PLATFOR
M}`
* `${DESTDIR}${prefix}/lib`
* `${DESTDIR}${prefix}/lib/ruby`
* `${DESTDIR}${prefix}/lib/ruby/${MAJOR}.${MINOR}.${TEENY}`
* `${DESTDIR}${prefix}/lib/ruby/${MAJOR}.${MINOR}.${TEENY}/${PLATFORM}`
* `${DESTDIR}${prefix}/lib/ruby/site_ruby`
* `${DESTDIR}${prefix}/lib/ruby/site_ruby/${MAJOR}.${MINOR}.${TEENY}`
* `${DESTDIR}${prefix}/lib/ruby/site_ruby/${MAJOR}.${MINOR}.${TEENY}/${P
LATFORM}`
* `${DESTDIR}${prefix}/lib/ruby/vendor_ruby`
* `${DESTDIR}${prefix}/lib/ruby/vendor_ruby/${MAJOR}.${MINOR}.${TEENY}`
* `${DESTDIR}${prefix}/lib/ruby/vendor_ruby/${MAJOR}.${MINOR}.${TEENY}/$
{PLATFORM}`
* `${DESTDIR}${prefix}/lib/ruby/gems/${MAJOR}.${MINOR}.${TEENY}`
* `${DESTDIR}${prefix}/share/man/man1`
* `${DESTDIR}${prefix}/share/ri/${MAJOR}.${MINOR}.${TEENY}/system`
Rubyã®APIãã¼ã¸ã§ã³ã'*x.y.z*'ã§ããã°ï¼`${MAJOR}`ã¯
'*x*'ã§ï¼`${MINOR}`ã¯'*y*'ï¼`${TEENY}`ã¯'*z*'ã§ãï¼
**注æ**: APIãã¼ã¸ã§ã³ã® `teeny` ã¯ï¼Rubyããã°ã©ã ã®ãã¼ã¸ã§ã³ã¨ã¯ç°ãªããã¨ãããã¾ãï¼
`root` ã§ä½æ¥ããå¿
è¦ãããããããã¾ããï¼
ããï¼ã³ã³ãã¤ã«æã«ã¨ã©ã¼ãçºçããå ´åã«ã¯ã¨ã©ã¼ã®ãã°ã¨ãã·ã³ï¼OSã®ç¨®é¡ãå«ãã§ããã ã詳ããã¬ãã¼ããä½è
ã«éã£ã¦ä¸ããã¨ä»ã®æ¹ã®ããã«ããªãã¾ãï¼
## 移æ¤
UNIXã§ããã° `configure` ãã»ã¨ãã©ã®å·®ç°ãå¸åãã¦ãããã¯ãã§ããï¼æãã¬è¦è½ã¨ãããã£ãå ´å(ããäºãå¤ã)ï¼ä½è
ã«ãã®
ãã¨ãå ±åããã°ï¼è§£æ±ºã§ããå¯è½æ§ãããã¾ãï¼
ã¢ã¼ããã¯ãã£ã«ãã£ã¨ãä¾åããã®ã¯GCé¨ã§ãï¼Rubyã®GCã¯å¯¾è±¡
ã®ã¢ã¼ããã¯ãã£ã`setjmp()`ã¾ãã¯`getcontext()`ã«ãã£ã¦å
¨ã¦ã®ã¬ã¸ã¹ã¿ã `jmp_buf` ã `ucontext_t`
ã«æ ¼ç´ãããã¨ã¨ï¼ `jmp_buf` ã `ucontext_t` ã¨ã¹ã¿ãã¯ã32bitã¢ã©ã¤ã³ã¡ã³ãããã¦ãããã¨ãä»®å®
ãã¦ãã¾ãï¼ç¹ã«åè
ãæç«ããªãå ´åã®å¯¾å¿ã¯é常ã«å°é£ã§ãããï¼ å¾è
ã®è§£æ±ºã¯æ¯è¼çç°¡åã§ï¼ `gc.c` ã§ã¹ã¿ãã¯ããã¼ã¯ãã¦ãã
é¨åã«ã¢ã©ã¤ã³ã¡ã³ãã®ãã¤ãæ°ã ããããã¦ãã¼ã¯ããã³ã¼ãã追å ããã ãã§æ¸ã¿ã¾ãï¼`defined(_\*mc68000*\_)`ã§æ¬ããã¦ã
ãé¨åãåèã«ãã¦ãã ããï¼
ã¬ã¸ã¹ã¿ã¦ã£ã³ãã¦ãæã¤CPUã§ã¯ï¼ã¬ã¸ã¹ã¿ã¦ã£ã³ãã¦ãã¹ã¿ãã¯ã«ãã©ãã·ã¥ããã¢ã»ã³ãã©ã³ã¼ãã追å ããå¿
è¦ãããããããã¾ããï¼
## é
å¸æ¡ä»¶
`COPYING.ja` ãã¡ã¤ã«ãåç
§ãã¦ãã ããã
## èè
ã³ã¡ã³ãï¼ãã°ã¬ãã¼ããã®ä»ã¯ mailto:matz@ruby-lang.org ã¾ã§ï¼
---
created at: Thu Aug 3 11:57:36 JST 1995
|