question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ubuntu 16.04 LTS install failed

See original GitHub issue

global install

sudo npm i run-rs -g

/usr/local/bin/run-rs -> /usr/local/lib/node_modules/run-rs/index.js

> kerberos@1.1.2 install /usr/local/lib/node_modules/run-rs/node_modules/kerberos
> prebuild-install || node-gyp rebuild

prebuild-install WARN install No prebuilt binaries found (target=11.6.0 runtime=node arch=x64 libc= platform=linux)
gyp ERR! configure error 
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/run-rs/node_modules/kerberos/build'
gyp ERR! System Linux 4.15.0-46-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/run-rs/node_modules/kerberos
gyp ERR! node -v v11.6.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! kerberos@1.1.2 install: `prebuild-install || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the kerberos@1.1.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/dtboy/.npm/_logs/2019-03-28T01_19_53_661Z-debug.log

install

npm i run-rs

kerberos@1.1.2 install /home/dtboy/node_modules/kerberos
> prebuild-install || node-gyp rebuild

prebuild-install WARN install No prebuilt binaries found (target=11.6.0 runtime=node arch=x64 libc= platform=linux)
make: Entering directory '/home/dtboy/node_modules/kerberos/build'
  CXX(target) Release/obj.target/kerberos/src/kerberos.o
In file included from ../src/kerberos_common.h:7:0,
                 from ../src/kerberos.h:5,
                 from ../src/kerberos.cc:1:
../src/unix/kerberos_gss.h:18:31: fatal error: gssapi/gssapi.h: 没有那个文件或目录
compilation terminated.
kerberos.target.mk:104: recipe for target 'Release/obj.target/kerberos/src/kerberos.o' failed
make: *** [Release/obj.target/kerberos/src/kerberos.o] Error 1
make: Leaving directory '/home/dtboy/node_modules/kerberos/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:188:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
gyp ERR! System Linux 4.15.0-46-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/dtboy/node_modules/kerberos
gyp ERR! node -v v11.6.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
npm WARN enoent ENOENT: no such file or directory, open '/home/dtboy/package.json'
npm WARN dtboy No description
npm WARN dtboy No repository field.
npm WARN dtboy No README data
npm WARN dtboy No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! kerberos@1.1.2 install: `prebuild-install || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the kerberos@1.1.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/dtboy/.npm/_logs/2019-03-28T01_20_48_156Z-debug.log

I wonder if there is a problem with my system configuration or with this library. thanks a lot

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
andreialecucommented, Apr 1, 2019

Fixed with sudo apt-get install libkrb5-dev, you might want to add it to the README.

0reactions
jnosornovcommented, Oct 17, 2019

It also happened to me, what I did downgrade the node version to 10, and it worked. Have not tried the @andreialecu solution yet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error in Ubuntu 16.04 installation
Only the classic wallpaper of the Ubuntu and one message error which is hidden after some seconds.
Read more >
Installation fails at make install on Ubuntu 16.04 LTS #506
Hi, im trying to install ceres-solver following this guide. I´m running Ubuntu 16.04.5 LTS, dependencies are all installed and up-to-date.
Read more >
Bug #1817358 “Ubuntu 16.04 netboot installation failed ...
I try to install Ubuntu 16.04 on a Citrix Xenserver. I use http://de.archive.ubuntu.com/ubuntu/ as install url in XenCenter.
Read more >
Installation error on Ubuntu 16.04 & 18.04 LTS - ERPNext Forum
Hello, I have tried to install ERPnext through easy install on clean install Ubuntu 16.04 and Ubuntu 18.04 LTS as well.
Read more >
Question - Ubuntu 16.04 LTS install error | Plesk Forum
Looks like this is related to some enabled third-party repositories on your Ubuntu server. Try to use only default repositories.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found