Clang error


#1

Hi, encountered an error after installing linter and clang packages. Have seen couple of topics on github, but they didn’t help me. This is what i get after opening an atom:


/home/bejanchik/.atom/packages/linter/lib/linter-registry.js:159 [Linter]
Error running clang Error: Failed to spawn command clang. Make sure clang is installed and on your PATH(…)
(anonymous function) @ /home/bejanchik/.atom/packages/linter/lib/linter-registry.js:159


#2

Is clang installed? If so, where is it? Downloading an Atom package is often insufficient when the package relies on an external program.


#3

Following error occurred while installing clang:


(synaptic:9929): GLib-CRITICAL **: g_child_watch_add_full: assertion ‘pid > 0’ failed
The gtk frontend needs a working python-gtk2 and python-glade2.
Those imports can not be found. Falling back to pager.
The error is: No module named glade
Setting up install-info (5.2.0.dfsg.1-6) …
/usr/sbin/update-info-dir: 1: /etc/environment: PATH: not found
dpkg: error processing package install-info (–configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up install-info (5.2.0.dfsg.1-6) …
/usr/sbin/update-info-dir: 1: /etc/environment: PATH: not found
dpkg: error processing package install-info (–configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
install-info


#4

Thanks for help, i solved an error by purging contents of /etc/environment.