Fedora 20 Install fails while build-process


#1

Hello all,

i installed all required packages and updated npm to 1.4
then i tried to build the application as mentioned in the GitHub Tutorial. The result is this:

[root@localhost atom-master]# script/build
Node: v0.10.29
npm: v1.4.23
Installing build modules...
Installing apm...
Installing modules ✗
> scrollbar-style@1.0.2 install /home/VoidByte/Schreibtisch/atom-master/node_modules/scrollbar-style
> node-gyp rebuild


> nslog@1.0.1 install /home/VoidByte/Schreibtisch/atom-master/node_modules/nslog
> node-gyp rebuild


> pathwatcher@2.0.6 install /home/VoidByte/Schreibtisch/atom-master/node_modules/pathwatcher
> node-gyp rebuild


> runas@1.0.1 install /home/VoidByte/Schreibtisch/atom-master/node_modules/runas
> node-gyp rebuild


> oniguruma@3.0.3 install /home/VoidByte/Schreibtisch/atom-master/node_modules/oniguruma
> node-gyp rebuild


> git-utils@2.1.3 install /home/VoidByte/Schreibtisch/atom-master/node_modules/git-utils
> node-gyp rebuild


npm WARN cannot run in wd atom@0.121.0 node -e 'process.exit(0)' (wd=/home/VoidByte/Schreibtisch/atom-master)
npm WARN deprecated guid@0.0.10: Please use node-uuid instead. It is much better.
npm WARN engine specificity@0.1.3: wanted: {"node":"~0.8.x"} (current: {"node":"v0.10.26","npm":"1.4.4"})
Traceback (most recent call last):
  File "/home/VoidByte/Schreibtisch/atom-master/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 18, in <module>
    sys.exit(gyp.script_main())
AttributeError: 'module' object has no attribute 'script_main'
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/home/VoidByte/Schreibtisch/atom-master/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/lib/configure.js:337:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.15.6-200.fc20.i686+PAE
gyp ERR! command "node" "/home/VoidByte/Schreibtisch/atom-master/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/VoidByte/Schreibtisch/atom-master/node_modules/scrollbar-style
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok 

Traceback (most recent call last):
  File "/home/VoidByte/Schreibtisch/atom-master/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 18, in <module>
    sys.exit(gyp.script_main())
AttributeError: 'module' object has no attribute 'script_main'
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/home/VoidByte/Schreibtisch/atom-master/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/lib/configure.js:337:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.15.6-200.fc20.i686+PAE
gyp ERR! command "node" "/home/VoidByte/Schreibtisch/atom-master/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/VoidByte/Schreibtisch/atom-master/node_modules/nslog
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok 
npm ERR! scrollbar-style@1.0.2 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the scrollbar-style@1.0.2 install script.
npm ERR! This is most likely a problem with the scrollbar-style package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls scrollbar-style
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.15.6-200.fc20.i686+PAE
npm ERR! command "/home/VoidByte/Schreibtisch/atom-master/apm/node_modules/atom-package-manager/bin/node" "/home/VoidByte/Schreibtisch/atom-master/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/VoidByte/Schreibtisch/atom-master/apm/node_modules/atom-package-manager/.apmrc" "--userconfig" "/root/.atom/.apmrc" "install" "--target=0.11.13" "--arch=ia32" "--quiet"
npm ERR! cwd /home/VoidByte/Schreibtisch/atom-master
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! code ELIFECYCLE
Traceback (most recent call last):
  File "/home/VoidByte/Schreibtisch/atom-master/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 18, in <module>
    sys.exit(gyp.script_main())
AttributeError: 'module' object has no attribute 'script_main'
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/home/VoidByte/Schreibtisch/atom-master/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/lib/configure.js:337:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.15.6-200.fc20.i686+PAE
gyp ERR! command "node" "/home/VoidByte/Schreibtisch/atom-master/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/VoidByte/Schreibtisch/atom-master/node_modules/pathwatcher
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok 
Traceback (most recent call last):
  File "/home/VoidByte/Schreibtisch/atom-master/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 18, in <module>
    sys.exit(gyp.script_main())
AttributeError: 'module' object has no attribute 'script_main'
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/home/VoidByte/Schreibtisch/atom-master/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/lib/configure.js:337:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.15.6-200.fc20.i686+PAE
gyp ERR! command "node" "/home/VoidByte/Schreibtisch/atom-master/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/VoidByte/Schreibtisch/atom-master/node_modules/runas
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok 
npm WARN engine specificity@0.1.3: wanted: {"node":"~0.8.x"} (current: {"node":"v0.10.26","npm":"1.4.4"})
Traceback (most recent call last):
  File "/home/VoidByte/Schreibtisch/atom-master/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 18, in <module>
    sys.exit(gyp.script_main())
AttributeError: 'module' object has no attribute 'script_main'
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/home/VoidByte/Schreibtisch/atom-master/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/lib/configure.js:337:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.15.6-200.fc20.i686+PAE
gyp ERR! command "node" "/home/VoidByte/Schreibtisch/atom-master/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/VoidByte/Schreibtisch/atom-master/node_modules/oniguruma
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok 
Traceback (most recent call last):
  File "/home/VoidByte/Schreibtisch/atom-master/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 18, in <module>
    sys.exit(gyp.script_main())
AttributeError: 'module' object has no attribute 'script_main'
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/home/VoidByte/Schreibtisch/atom-master/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/lib/configure.js:337:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.15.6-200.fc20.i686+PAE
gyp ERR! command "node" "/home/VoidByte/Schreibtisch/atom-master/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/VoidByte/Schreibtisch/atom-master/node_modules/git-utils
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok 
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/VoidByte/Schreibtisch/atom-master/npm-debug.log
npm ERR! not ok code 0

so what is going wrong? Does anyone have an idea to make it work?

Greting, BS


#2

This issue on the repo seems to be your issue, or at least closely related.
Do any of the suggestions there help by any chance?


#3

Ok Thank you that brought me a step further.
After reinstalling these node-thing straight from the tarball and removing gyp via "sudo yum remove gyp"
i come so far:

[VoidByte@localhost atom-master]$ sudo script/build
Node: v0.10.29
npm: v1.4.23
Installing build modules...
Installing apm...
Installing modules ✓
Installing atom-dark-syntax@0.19.0 ✓
Installing atom-dark-ui@0.33.0 ✓
Installing atom-light-syntax@0.20.0 ✓
Installing atom-light-ui@0.29.0 ✓
Installing base16-tomorrow-dark-theme@0.20.0 ✓
Installing base16-tomorrow-light-theme@0.4.0 ✓
Installing solarized-dark-syntax@0.22.0 ✓
Installing solarized-light-syntax@0.12.0 ✓
Installing archive-view@0.35.0 ✓
Installing autocomplete@0.29.0 ✓
Installing autoflow@0.17.0 ✓
Installing autosave@0.14.0 ✓
Installing background-tips@0.15.0 ✓
Installing bookmarks@0.27.0 ✓
Installing bracket-matcher@0.51.0 ✓
Installing command-palette@0.24.0 ✓
Installing deprecation-cop@0.7.0 ✓
Installing dev-live-reload@0.33.0 ✓
Installing exception-reporting@0.19.0 ✓
Installing feedback@0.33.0 ✓
Installing find-and-replace@0.127.0 ✓
Installing fuzzy-finder@0.57.0 ✓
Installing git-diff@0.37.0 ✓
Installing go-to-line@0.23.0 ✓
Installing grammar-selector@0.27.0 ✓
Installing image-view@0.36.0 ✓
Installing incompatible-packages@0.5.0 ✓
Installing keybinding-resolver@0.18.0 ✓
Installing link@0.25.0 ✓
Installing markdown-preview@0.95.0 ✓
Installing metrics@0.33.0 ✓
Installing open-on-github@0.29.0 ✓
Installing package-generator@0.31.0 ✓
Installing release-notes@0.36.0 ✓
Installing settings-view@0.137.0 ✓
Installing snippets@0.51.0 ✓
Installing spell-check@0.40.0 ✓
Installing status-bar@0.42.0 ✓
Installing styleguide@0.29.0 ✓
Installing symbols-view@0.63.0 ✓
Installing tabs@0.48.0 ✓
Installing timecop@0.22.0 ✓
Installing tree-view@0.112.0 ✓
Installing update-package-dependencies@0.6.0 ✓
Installing welcome@0.17.0 ✓
Installing whitespace@0.25.0 ✓
Installing wrap-guide@0.21.0 ✓
Installing language-c@0.26.0 ✓
Installing language-coffee-script@0.28.0 ✓
Installing language-css@0.17.0 ✓
Installing language-gfm@0.45.0 ✓
Installing language-git@0.9.0 ✓
Installing language-go@0.16.0 ✓
Installing language-html@0.22.0 ✓
Installing language-hyperlink@0.10.0 ✓
Installing language-java@0.11.0 ✓
Installing language-javascript@0.39.0 ✓
Installing language-json@0.8.0 ✓
Installing language-less@0.13.0 ✓
Installing language-make@0.10.0 ✓
Installing language-objective-c@0.11.0 ✓
Installing language-perl@0.9.0 ✓
Installing language-php@0.15.0 ✓
Installing language-property-list@0.7.0 ✓
Installing language-python@0.18.0 ✓
Installing language-ruby@0.33.0 ✓
Installing language-ruby-on-rails@0.15.0 ✓
Installing language-sass@0.14.0 ✓
Installing language-shellscript@0.8.0 ✓
Installing language-source@0.8.0 ✓
Installing language-sql@0.9.0 ✓
Installing language-text@0.6.0 ✓
Installing language-todo@0.10.0 ✓
Installing language-toml@0.12.0 ✓
Installing language-xml@0.17.0 ✓
Installing language-yaml@0.14.0 ✓
Deduping modules ✓
Running "download-atom-shell" task

>> gyp ERR! clean error 
>> gyp ERR! stack Error: EACCES, unlink 'build'
>> gyp ERR! System Linux 3.15.6-200.fc20.i686+PAE
>> gyp ERR! command "node" "/home/VoidByte/Schreibtisch/atom-master/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
>> gyp ERR! cwd /home/VoidByte/Schreibtisch/atom-master/node_modules/pathwatcher
>> gyp ERR! node -v v0.10.26
>> gyp ERR! node-gyp -v v0.12.2
>> gyp ERR! not ok 
>> 
>> npm ERR! pathwatcher@2.0.6 install: `node-gyp rebuild`
>> npm ERR! Exit status 1
>> npm ERR! 
>> npm ERR! Failed at the pathwatcher@2.0.6 install script.
>> npm ERR! This is most likely a problem with the pathwatcher package,
>> npm ERR! not with npm itself.
>> npm ERR! Tell the author that this fails on your system:
>> npm ERR!     node-gyp rebuild
>> npm ERR! You can get their info via:
>> npm ERR!     npm owner ls pathwatcher
>> npm ERR! There is likely additional logging output above.
>> npm ERR! System Linux 3.15.6-200.fc20.i686+PAE
>> npm ERR! command "/home/VoidByte/Schreibtisch/atom-master/apm/node_modules/atom-package-manager/bin/node" "/home/VoidByte/Schreibtisch/atom-master/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "rebuild" "--target=0.11.13" "--arch=ia32"
>> npm ERR! cwd /home/VoidByte/Schreibtisch/atom-master
>> npm ERR! node -v v0.10.26
>> npm ERR! npm -v 1.4.4
>> npm ERR! code ELIFECYCLE
>> npm ERR! 
>> npm ERR! Additional logging details can be found in:
>> npm ERR!     /home/VoidByte/Schreibtisch/atom-master/npm-debug.log
>> npm ERR! not ok code 0
>> 
Aborted due to warnings.

SOLVED EDIT:

Solved the problem now and got the editor installed.
Just after removing the gyp thing from the system i had to install it back from the tarball.
after this, the install works fine!