dep icon indicating copy to clipboard operation
dep copied to clipboard

Strange error using `dep install`

Open austinfrey opened this issue 7 years ago • 2 comments

Summary

Write here. Getting an error when installing packages. Packages seem to have installed properly but the error is a bit misleading.

Steps to reproduce behavior

Write here.

$ dep i hypercore

Expected behavior

Write here. Successful installs should exit silently.

$ dep i hypercore
Resolving dependencies
Installing dependencies
Building dependencies
Installed 105 packages in 4.175s

Actual behavior

Write here.

$ dep i hypercore
Resolving dependencies
Installing dependencies
Building dependencies
In file included from ../binding.cc:4:0:
../libsodium/src/libsodium/include/sodium.h:5:10: fatal error: sodium/version.h: No such file or directory
 #include "sodium/version.h"
          ^~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Release/obj.target/sodium/binding.o] Error 1
Installed 107 packages in 4.333s

austinfrey avatar May 21 '18 16:05 austinfrey

Digging deeper, the error is specific to the above hypercore package, but since I'd added it to package.jsonthe error was appearing in subsequent package installs since it looks like dep will iterate through all packages listed in package.json even when installing a single package. Is that expected?

austinfrey avatar May 21 '18 20:05 austinfrey

Thank you for your investigation! I just thought that can be related to native-build and that was about sodium-native. Probably, the order is glitched a bit around here, will figure out.

$ dep install sodium-native
Resolving dependencies
Installing dependencies
Building dependencies
In file included from ../binding.cc:4:
../libsodium/src/libsodium/include/sodium.h:5:10: fatal error: 'sodium/version.h' file not found
#include "sodium/version.h"
         ^~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [Release/obj.target/sodium/binding.o] Error 1
Installed 143 packages in 11.674s

watilde avatar May 28 '18 02:05 watilde