Pomelo development environment under Ubuntu12.04

Source: Internet
Author: User
I have been working on Pomelo under Win7 before development. Recently I decided to migrate it to Ubuntu. I used Ubuntu12.04. I personally think that building a Pomelo development environment under Ubuntu, the most important task is to install Nodejs, which is half done. Next, let's take a look at the specific steps. Pomelo fill Note 1: cocos2dx using libpomelo cannot connect to the server http://www.linuxidc.com/Linux/2014-03/

I have been working on Pomelo under Win7 before development. Recently I decided to migrate it to Ubuntu. I used Ubuntu 12.04. I personally think that building a Pomelo development environment under Ubuntu, the most important task is to install Nodejs, which is half done. Next, let's take a look at the specific steps.

Pomelo fill Note 1: cocos2dx using libpomelo cannot connect to the server http://www.linuxidc.com/Linux/2014-03/98486.htm

Building a Pomelo deployment environment http://www.linuxidc.com/Linux/2014-03/98485.htm in CentOS 6.3

Open source framework of game server based on Node. js: Pomelo http://www.linuxidc.com/Linux/2014-05/101951.htm of Netease

1. Install the dependency package. Specifically, ensure that the system is installed with python, gcc, and g ++.

Sudo apt-get install python2.7
Sudo apt-get install build-essential
Sudo apt-get install gcc
Sudo apt-get install g ++

Note: The python version must be 2.7. Run python:/usr/bin/python to view the version number. After viewing the version number, press Ctrl + D to exit, if the python version is higher, you can use sudo apt-get install python2.7 to downgrade it back. If the build-essential package cannot be found after sudo apt-get install build-essential is executed, run sudo apt-get update and run sudo apt-get install build-essential again.

2, download node, go to the official website directly download: http://nodejs.org, to node-v0.10.15.tar.gz

Enter the directory of node-v0.10.15.tar.gz and decompress it.

Tar-zxf node-v0.10.15.tar.gz

Enter the decompressed folder

Cd node-v0.10.15

3. Specify the installation path. For example, install nodejs in the/usr/local/node directory.

./Configure -- prefix =/usr/local/node

Run the make command to compile the source code, and then run the make install command to install nodejs.

Make

Sudo make install

4. Set environment variables, edit the current user's configuration file. bashrc, and add the following script to the end of the file:

PATH = "/usr/local/node/bin: $ PATH"

Note: If you use the graphic interface, open the file browser and press ctrl + h to display the hidden file. Then you can find the. bashrc file.

5. Run the following command to test whether the installation is successful:

Node-v

If the version is displayed, the installation is successful.

6. File Permission settings (Note: it is for a non-root account)

Enter the local directory

Cd/usr/local

Read and write permissions for the node folder

Sudo chmod-R 777 node/

Now nodejs is basically installed.

7. Install pomelo and run

Sudo npm pomelo-g

Wait until the installation is complete. Note that the installation may fail due to the network or various reasons. You can try multiple times one by one.

8. Verify whether pomelo is successfully installed. Run the following command:

Pomelo -- version

If the version number is displayed, the installation is successful!

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2014-09/106396.htm

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.