Compile and install the Atom editor in Ubuntu

Source: Internet
Author: User

This article describes how to compile and install the Atom editor in Ubuntu, including the installation process and installation FAQ for your reference.

Directory

Before installation
Officially recommended Environment
Installation FAQ
No such option-no-parallel Error
Atom installation location
Atom running error cannot open shared object file libudev. so.0
Reference

You can see the message () that the Atom editor can download and use. Open the installation package that only provides the Mac version. So I went to Github and looked at it and found that I could compile and install it on the Linux platform. The steps were quite simple, so I decided to try it out on Ubuntu.

First, run the following code:

Before installation

Officially recommended Environment
  • Ubuntu12.04 LTS 64 bit
  • 64-bit Operating System
  • Nodejs v0.10.x
  • Npm v1.4.x
  • sudo apt-get install libgnome-keyring-dev
  • npm config set python /usr/bin/python2 -gMake sure to use Python2

Then execute the following code in sequence according to the official tutorial.

Git clone https://github.com/atom/atom
Cd atom
Script/build // Creates application at/tmp/atom-build/Atom
Sudo script/grunt install // installcommand to/usr/local/bin/atom

The entire source file has more than 200 MB, and the download speed varies with the network. After the download is completed, the file will be compiled. If nothing happens, you will be able to use atom in about 20 minutes.
EnteratomYou can.

Installation FAQ

My Ubuntu is 14.04 64bit, which has some minor problems during installation.

No such option-no-parallel Error

The solution is to directlyatom/build/node_modules/npm/node_modules/node-gyp/lib/configure.jsThe file contains about 316 rows.//argv.push('--no-parallel')Comment out; or upgradegyp. Recommend the former

Atom installation location

Atom is installed on/user/local/binTo modify the installation location, you can addINSTALL_PREFIXEnvironment variables to modify the installation location or directly modifybuild/Gruntfile.coffeeAbout 68 rows in the fileinstallDir = process.env.INSTALL_PREFIX ? '/usr/local'.

Atom running error cannot open shared object file libudev.so.0

I encountered this error while running and found a solution through Google:

For 32-bit systems:

Sudo ln-sf/lib/i386-linux-gnu/libudev. so.1/lib/i386-linux-gnu/libudev. so.0

For 64-bit systems:

Sudo ln-sf/lib/x86_64-linux-gnu/libudev. so.1/lib/x86_64-linux-gnu/libudev. so.0

The above are some problems I encountered during the installation process, which are for reference only.

Enjoy!

Reference
  • How do I resolve a "Cannot open shared object file libudev. so.0" error?

  • Gyp_main.py: error: no such option:-no-parallel

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.