-
Notifications
You must be signed in to change notification settings - Fork 40
Installation
Pomelo is based on Node.js, now it has been full supported for Windows, Linux, Mac, etc..
-
During the process of installation, it will download dependency npm modules for pomelo from the Internet via npm, so make sure your machine can access Internet;
-
Make sure your system has installed Node.js. You can install Node using the latest precompiled binary package, Node provides the binary for Windows, Mac and Linux, [here] (http://nodejs.org/download/ " Download Node installation package " ) is the download linkage. You can also use the traditional way to install Node from source code, but it may be more complex.
-
Make sure your system has installed python (2.5 <version <3.0) and a C++ compiler. The Node's source code is mainly written in C++ and JavaScript, but it use [gyp] (http://code.google.com/p/gyp/ "gyp") tool to do the project management, and gyp is written in Python, so python is required. For non-Windows platform, python has been pre-installed generally, so does C++ compiler; But for Windows, make sure your Windows has installed the source code compiler, Visaul Studio is recommended. Node.js uses gyp to generate Visual Studio Solution File, and then use the VC++ to compile it to binary.
-
Pomelo is written in Javascript, but there are some pomelo dependencies written in C++, so the installation of pomelo will use the C++ compiler. Therefore, please make sure the following two conditions be met if you are on Windows:
- [Python] (http://python.org/) (2.5 <version <3.0).
- VC++ compiler, included in the [Visual Studio 2010] (http://msdn.microsoft.com/en-us/vstudio/hh388567)(VC++ 2010 Express also be ok).
-
for Mac, you should install Xcode Command Line Tools or full [Xcode] (https://developer.apple.com/xcode/) and make firstly.
Using npm (node package management tool) to install pomelo globally:
$ npm install pomelo -g
You can also download the source code to install pomelo using the following command:
$ git clone https://github.com/NetEase/pomelo.git
$ cd pomelo
$ npm install -g
Where -g option means the global installation. For more infomation on npm, please refer to npm documentation.
If the installation does not report any error, that means you have a successful installation.
Next, we will test our installation was successful or not by a HelloWorld project.