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.

Error preventing install with sodium

See original GitHub issue

Hi,

I’m trying to install your plugin to test and am getting the following error in terminal when I run the install command. It’s struggling with sodium 2.0.3 during install.

Could there be a dependency I’m missing? I’ve tried installing it separately, but this has had no impact on my ability to successfully install your plugin.

In reading your instructions, I am running NodeJS 9.10.1, which I believe should work.

Any help or guidance is appreciated. Thanks!


Static libsodium was not found at /usr/local/lib/node_modules/homebridge-apple-tv/node_modules/sodium/deps/build/lib/libsodium so compiling libsodium from source. libtool is required, but wasn’t found on this system make: *** [libsodium] Error 1 /usr/local/lib/node_modules/homebridge-apple-tv/node_modules/sodium/install.js:287 throw new Error(cmdLine + ’ exited with code ’ + code); ^

Error: make libsodium exited with code 2 at ChildProcess.<anonymous> (/usr/local/lib/node_modules/homebridge-apple-tv/node_modules/sodium/install.js:287:19) at ChildProcess.emit (events.js:180:13) at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sodium@2.0.3 preinstall: node install.js --preinstall npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sodium@2.0.3 preinstall 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! /root/.npm/_logs/2018-04-15T21_08_58_421Z-debug.log

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:7

github_iconTop GitHub Comments

22reactions
MrDrache333commented, Apr 17, 2018

On Linux you can install it by install some tools first… apt-get install autoconf automake g++ libtool

5reactions
mdimai666commented, Jun 30, 2020

try sudo apt-get install build-essential

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error while installing libsodium in PHP 7.1 - Stack Overflow
I needed to run sudo apt install libsodium-dev and then sudo pecl install libsodium , and then it told me 'You should add...
Read more >
Installation - Libsodium documentation - GitBook
Projects willing to statically link Sodium must define a macro named SODIUM_STATIC . This will prevent symbol definitions from being referenced with __dllexport ......
Read more >
How To Download & Install Sodium in Minecraft 1.19.3
Sodium is the best way to increase FPS and overall performance in Minecraft 1.19.3. In this video, we will cover all of the...
Read more >
Minecraft Java 1.18 Sodium Extra (Fabric Mod 1.18 ... - YouTube
In this Minecraft Java Mods Tutorial, I show you how to get/download and install Sodium and Sodium Extra Mod for Minecraft Java 1.18...
Read more >
How to Install the Sodium Cryptographic Library (libsodium ...
Step 1 - Installing The Base Sodium Library (libsodium) · Step 2 - Install the PHP Extension for ea-php74 and Newer via WHM....
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