Atom build and install but doesn't run


Hi, I was able to build and install atom however I can’t run it. How can I debug what is happening?

josexavier@WFMQ118:~/development/atom$ uname -a
Linux WFMQ118 4.4.0-93-generic #116~14.04.1-Ubuntu SMP Mon Aug 14 16:06:01 UTC 2017 i686 i686 i686 GNU/Linux

josexavier@WFMQ118:~/development/atom$ sudo script/build --install
[sudo] password for josexavier: 
Node:	v6.11.4
Npm:	v5.3.0
Installing script dependencies
Installing apm
apm  1.18.8
npm  3.10.10
node 6.9.5 ia32
python 2.7.6
git 1.9.1
Installing modules ✓
Wrote Dependencies Fingerprint: /home/josexavier/development/atom/node_modules/.dependencies-fingerprint f766804f87442a55af462981be1576707774af56
Cleaning /home/josexavier/development/atom/out
Copying assets to /home/josexavier/development/atom/out/app
Transpiling packages with custom transpiler configurations in /home/josexavier/development/atom/out/app
 transpiling for package github
Installing modules ✓
Transpiling Babel paths in /home/josexavier/development/atom/out/app
Transpiling CoffeeScript paths in /home/josexavier/development/atom/out/app
Transpiling CSON paths in /home/josexavier/development/atom/out/app
Transpiling PEG.js paths in /home/josexavier/development/atom/out/app
Generating module cache for /home/josexavier/development/atom/out/app
Generating pre-built less cache in /home/josexavier/development/atom/out/app/less-compile-cache
Generating metadata for /home/josexavier/development/atom/out/app/package.json
Generating API docs at /home/josexavier/development/atom/docs/output/atom-api.json
Dumping symbols in /home/josexavier/development/atom/out/symbols
Running electron-packager on /home/josexavier/development/atom/out/app with app name "atom"
Packaging app for platform linux ia32 using electron v1.6.15
Changing permissions for node files in /home/josexavier/development/atom/out/atom-1.23.0-dev-1fe2548-i386
Copying non-ASAR resources to /home/josexavier/development/atom/out/atom-1.23.0-dev-1fe2548-i386/resources
Writing to /home/josexavier/development/atom/out/atom-1.23.0-dev-1fe2548-i386/resources
Application bundle created at /home/josexavier/development/atom/out/atom-1.23.0-dev-1fe2548-i386

Verifying if snapshot can be executed via `mksnapshot`
Generating startup blob at "/home/josexavier/development/atom/out/snapshot_blob.bin"
Moving generated startup blob into "/home/josexavier/development/atom/out/atom-1.23.0-dev-1fe2548-i386/snapshot_blob.bin"
Skipping creating debian package. Specify the --create-debian-package option to create it.
Skipping creating rpm package. Specify the --create-rpm-package option to create it.
Skipping artifacts compression. Specify the --compress-artifacts option to compress Atom binaries (and symbols on macOS)
Installing "atom-1.23.0-dev-1fe2548-i386" at "/usr/local/share/atom"
Writing desktop entry file at "/usr/local/share/applications/atom.desktop"
Copying to "/usr/local/bin/atom"
Symlinking apm to "/usr/local/bin/apm"
Changing permissions to 755 for "/usr/local/share/atom"
josexavier@WFMQ118:~/development/atom$ ato
atobm  atom   
josexavier@WFMQ118:~/development/atom$ atom


Is /usr/local/bin in your PATH? If so, you might have to restart your shell before the changes take effect.


If find atom as you can see in the log above.


Is there any output if you start Atom in the foreground?

atom -f


There is some error, I’m going to search about it.

josexavier@WFMQ118:~$ atom -f
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Cannot find module '…/build/Release/nslog.node’
at Module._resolveFilename (module.js:470:15)
at Function.Module._resolveFilename (/usr/local/share/atom/resources/electron.asar/common/reset-search-paths.js:35:12)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (/usr/local/share/atom/resources/app.asar/node_modules/nslog/lib/nslog.js:5:11)
at Object. (/usr/local/share/atom/resources/app.asar/node_modules/nslog/lib/nslog.js:15:4)
at Object. (/usr/local/share/atom/resources/app.asar/node_modules/nslog/lib/nslog.js:17:3)
at Module._compile (module.js:571:32)
at Object.Module._extensions…js (module.js:580:10)


Whenever I have build issues, I do a ./script/clean before building again. Did you already give that a try?