build, i18n: improve Intl build, add "--with-intl"
[platform/upstream/nodejs.git] / README.md
1 Evented I/O for V8 javascript.
2 ===
3
4 ### To build:
5
6 Prerequisites (Unix only):
7
8     * GCC 4.2 or newer
9     * G++ 4.2 or newer
10     * Python 2.6 or 2.7
11     * GNU Make 3.81 or newer
12     * libexecinfo (FreeBSD and OpenBSD only)
13
14 Unix/Macintosh:
15
16 ```sh
17 ./configure
18 make
19 make install
20 ```
21
22 If your python binary is in a non-standard location or has a
23 non-standard name, run the following instead:
24
25 ```sh
26 export PYTHON=/path/to/python
27 $PYTHON ./configure
28 make
29 make install
30 ```
31
32 Prerequisites (Windows only):
33
34     * Python 2.6 or 2.7
35     * Visual Studio 2010 or 2012
36
37 Windows:
38
39 ```sh
40 vcbuild nosign
41 ```
42
43 You can download pre-built binaries for various operating systems from
44 [http://nodejs.org/download/](http://nodejs.org/download/).  The Windows
45 and OS X installers will prompt you for the location in which to install.
46 The tarballs are self-contained; you can extract them to a local directory
47 with:
48
49 ```sh
50 tar xzf /path/to/node-<version>-<platform>-<arch>.tar.gz
51 ```
52
53 Or system-wide with:
54
55 ```sh
56 cd /usr/local && tar --strip-components 1 -xzf \
57                     /path/to/node-<version>-<platform>-<arch>.tar.gz
58 ```
59
60 ### To run the tests:
61
62 Unix/Macintosh:
63
64 ```sh
65 make test
66 ```
67
68 Windows:
69
70 ```sh
71 vcbuild test
72 ```
73
74 ### To build the documentation:
75
76 ```sh
77 make doc
78 ```
79
80 ### To read the documentation:
81
82 ```sh
83 man doc/node.1
84 ```
85
86 ### To build `Intl` (ECMA-402) support:
87
88 *Note:* more docs, including how to reduce disk footprint, are on
89 [the wiki](https://github.com/joyent/node/wiki/Intl).
90
91 #### Use existing installed ICU (Unix/Macintosh only):
92
93 ```sh
94 pkg-config --modversion icu-i18n && ./configure --with-intl=system-icu
95 ```
96
97 #### Build ICU from source:
98
99 First: Unpack latest ICU
100   [icu4c-**##.#**-src.tgz](http://icu-project.org/download) (or `.zip`)
101   as `deps/icu` (You'll have: `deps/icu/source/...`)
102
103 Unix/Macintosh:
104
105 ```sh
106 ./configure --with-intl=full-icu
107 ```
108
109 Windows:
110
111 ```sh
112 vcbuild full-icu
113 ```
114
115 Resources for Newcomers
116 ---
117   - [The Wiki](https://github.com/joyent/node/wiki)
118   - [nodejs.org](http://nodejs.org/)
119   - [how to install node.js and npm (node package manager)](http://www.joyent.com/blog/installing-node-and-npm/)
120   - [list of modules](https://github.com/joyent/node/wiki/modules)
121   - [searching the npm registry](http://npmjs.org/)
122   - [list of companies and projects using node](https://github.com/joyent/node/wiki/Projects,-Applications,-and-Companies-Using-Node)
123   - [node.js mailing list](http://groups.google.com/group/nodejs)
124   - irc chatroom, [#node.js on freenode.net](http://webchat.freenode.net?channels=node.js&uio=d4)
125   - [community](https://github.com/joyent/node/wiki/Community)
126   - [contributing](https://github.com/joyent/node/wiki/Contributing)
127   - [big list of all the helpful wiki pages](https://github.com/joyent/node/wiki/_pages)