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 -g
Make 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.
Enteratom
You 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.js
The 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/bin
To modify the installation location, you can addINSTALL_PREFIX
Environment variables to modify the installation location or directly modifybuild/Gruntfile.coffee
About 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