Closed ferranalma3d closed 3 years ago
Hi, can you post your os, node and npm version please? It looks like you are on linux and normally there should be preinstall available (but maybe not for the node version you have installed). Please note that npm 7 currently has an issue installing from prebuild, see https://github.com/npm/cli/issues/2861 (but this doesn't seem to be the issue here). Cheers
Update: for the build issue please also post your cmake version. It might be an issue with using an older cmake version.
On Thu, Mar 25, 2021 at 3:10 PM ferranalma3d @.***> wrote:
Error while
npm install of the project
@.**:/home/alma-dicomweb-proxy# npm install npm ERR! code 1 npm ERR! path /home/alma-dicomweb-proxy/node_modules/dicom-dimse-native* npm ERR! command failed npm ERR! command sh -c npx prebuild-install -r napi || npx cmake-js compile npm ERR! [ npm ERR! '/usr/bin/node', npm ERR! '/root/.npm/_npx/df44183e4145658d/node_modules/.bin/cmake-js', npm ERR! 'compile' npm ERR! ] npm ERR! info TOOL Using Unix Makefiles generator. npm ERR! info REP Build has been failed, trying to do a full rebuild. npm ERR! ERR! OMG CMake executable is not found. Please use your system's package manager to install it, or you can get installers from there: http://cmake.org.
npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2021-03-25T14_08_59_150Z-debug.log
node_modules/node_addon_api
**https://www.npmjs.com/package/dicom-dimse-native
Already tryied both of this...**
This package uses prebuild to fetch precompiled binaries, so provided your platform is supported, all you need to do is:
npm i -s dicom-native-addon
Otherwise install will try to compile the sources for your platform, you will need:
CMake installed and in path a working c++ compiler (vs 2015+ or g++5.3+)
Error then
npm ERR! info RUN cmake "/home/alma-dicomweb-proxy/node_modules/dicom-dimse-native" --no-warn-unused-cli -G"Unix Makefiles" -DCMAKE_JS_VERSION="6.1.0" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_LIBRARY_OUTPUT_DIRECTORY="/home/alma-dicomweb-proxy/node_modules/dicom-dimse-native/build/Release" -DCMAKE_JS_INC="/root/.cmake-js/node-x64/v15.12.0/include/node" -DCMAKE_JS_SRC="" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="15.12.0" -DNODE_ARCH="x64" npm ERR! CMake Error at dcmdata/CMakeLists.txt:9 (add_subdirectory): npm ERR! add_subdirectory given source "data" which is not an existing directory. npm ERR! npm ERR! npm ERR! CMake Error at dcmimgle/CMakeLists.txt:9 (add_subdirectory): npm ERR! add_subdirectory given source "data" which is not an existing directory. npm ERR! npm ERR! npm ERR! info REP Build has been failed, trying to do a full rebuild. npm ERR! info CMD CLEAN npm ERR! info RUN cmake -E remove_directory "/home/alma-dicomweb-proxy/node_modules/dicom-dimse-native/build" npm ERR! info CMD CONFIGURE npm ERR! info RUN cmake "/home/alma-dicomweb-proxy/node_modules/dicom-dimse-native" --no-warn-unused-cli -G"Unix Makefiles" -DCMAKE_JS_VERSION="6.1.0" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_LIBRARY_OUTPUT_DIRECTORY="/home/alma-dicomweb-proxy/node_modules/dicom-dimse-native/build/Release" -DCMAKE_JS_INC="/root/.cmake-js/node-x64/v15.12.0/include/node" -DCMAKE_JS_SRC="" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="15.12.0" -DNODE_ARCH="x64" npm ERR! CMake Error at dcmdata/CMakeLists.txt:9 (add_subdirectory): npm ERR! add_subdirectory given source "data" which is not an existing directory. npm ERR! npm ERR! npm ERR! CMake Error at dcmimgle/CMakeLists.txt:9 (add_subdirectory): npm ERR! add_subdirectory given source "data" which is not an existing directory. npm ERR! npm ERR! npm ERR! ERR! OMG Process terminated: 1
npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2021-03-25T14_06_10_492Z-debug.log
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/knopkem/dicomweb-proxy/issues/21, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHSZXQVEMOH42RJNX2WCS3TFM76XANCNFSM4ZZN3AFQ .
root@visorweb:/home/ferran# cd .. root@visorweb:/home# cd .. root@visorweb:/# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.2 LTS Release: 20.04 Codename: focal root@visorweb:/# node -v v15.12.0 root@visorweb:/# npm -v 7.7.4 root@visorweb:/#
cmake --version cmake version 3.16.3
ok, thanks, will try to reproduce. I suspect that when downgrading to npm 6 it would just take the prebuild version (without you having to actually compile anything) but this might not be an option. So regarding the build, the CMake version you use should be recent enough and is not the issue. I can see why it fails: The version installed through dicomweb-proxy misses a directory (which I don't yet know why but will find out). You can try to compile the actual sources first to make sure it would run through: https://github.com/knopkem/dicom-dimse-native
Ive downgrade npm to 6
Result:
bin config LICENSE node_modules package.json package-lock.json public README.md src root@visorweb:/home/alma-dicomweb-proxy# npm install
chromedriver@89.0.0 install /home/alma-dicomweb-proxy/node_modules/chromedriver node install.js
ChromeDriver binary exists. Validating...
Current existing ChromeDriver binary is unavailable, proceeding with download and extraction.
Downloading from file: https://chromedriver.storage.googleapis.com/89.0.4389.23/chromedriver_linux64.zip
Saving to file: /tmp/89.0.4389.23/chromedriver/chromedriver_linux64.zip
Received 1040K...
Received 2080K...
Received 3120K...
Received 4160K...
Received 5200K...
Received 5708K total.
Extracting zip contents to /tmp/89.0.4389.23/chromedriver.
Copying to target path /home/alma-dicomweb-proxy/node_modules/chromedriver/lib/chromedriver
ChromeDriver installation failed Error: EACCES: permission denied, mkdir '/home/alma-dicomweb-proxy/node_modules/chromedriver/lib/chromedriver'
at Object.mkdirSync (node:fs:1023:3)
at copyIntoPlace (/home/alma-dicomweb-proxy/node_modules/chromedriver/install.js:302:6)
at runMicrotasks (
dicom-dimse-native@1.2.5 install /home/alma-dicomweb-proxy/node_modules/dicom-dimse-native npx prebuild-install -r napi || npx cmake-js compile
prebuild-install WARN install EACCES: permission denied, access '/root/.npm' EACCES: permission denied, unlink '/root/.npm/_npx/145688/bin' /usr/lib/node_modules/npm/node_modules/rimraf/rimraf.js:321 throw er ^
Error: EACCES: permission denied, unlink '/root/.npm/_npx/145688'
at Object.unlinkSync (node:fs:1263:3)
at Function.rimrafSync [as sync] (/usr/lib/node_modules/npm/node_modules/rimraf/rimraf.js:314:17)
at process.node install.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! dicom-dimse-native@1.2.5 install: npx prebuild-install -r napi || npx cmake-js compile
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the dicom-dimse-native@1.2.5 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! /root/.npm/_logs/2021-03-25T15_10_18_577Z-debug.log root@visorweb:/home/alma-dicomweb-proxy#
back to 7
i'll tried:
npm i -s dicom-native-addon
Im here now
root@visorweb:/home/alma-dicomweb-proxy# npm install
up to date, audited 479 packages in 2s
found 0 vulnerabilities root@visorweb:/home/alma-dicomweb-proxy# npm start
dicomweb-proxy@1.0.15 start node src/app.js
/home/alma-dicomweb-proxy/node_modules/bindings/bindings.js:135 throw err; ^
Error: Could not locate the bindings file. Tried:
→ /home/alma-dicomweb-proxy/node_modules/dicom-dimse-native/build/dcmtk.node
→ /home/alma-dicomweb-proxy/node_modules/dicom-dimse-native/build/Debug/dcmtk.node
→ /home/alma-dicomweb-proxy/node_modules/dicom-dimse-native/build/Release/dcmtk.node
→ /home/alma-dicomweb-proxy/node_modules/dicom-dimse-native/out/Debug/dcmtk.node
→ /home/alma-dicomweb-proxy/node_modules/dicom-dimse-native/Debug/dcmtk.node
→ /home/alma-dicomweb-proxy/node_modules/dicom-dimse-native/out/Release/dcmtk.node
→ /home/alma-dicomweb-proxy/node_modules/dicom-dimse-native/Release/dcmtk.node
→ /home/alma-dicomweb-proxy/node_modules/dicom-dimse-native/build/default/dcmtk.node
→ /home/alma-dicomweb-proxy/node_modules/dicom-dimse-native/compiled/15.12.0/linux/x64/dcmtk.node
→ /home/alma-dicomweb-proxy/node_modules/dicom-dimse-native/addon-build/release/install-root/dcmtk.node
→ /home/alma-dicomweb-proxy/node_modules/dicom-dimse-native/addon-build/debug/install-root/dcmtk.node
→ /home/alma-dicomweb-proxy/node_modules/dicom-dimse-native/addon-build/default/install-root/dcmtk.node
→ /home/alma-dicomweb-proxy/node_modules/dicom-dimse-native/lib/binding/node-v88-linux-x64/dcmtk.node
at bindings (/home/alma-dicomweb-proxy/node_modules/bindings/bindings.js:126:9)
at Object.
ok, the first issue about the chromedrivers seems to come from the unit testing libraries, I'll change this. About the build, could you try to clone the repository: git clone https://github.com/knopkem/dicom-dimse-native.git and run npm install there?
root@visorweb:/home/alma-dicomweb-proxy# cd .. root@visorweb:/home# git clone https://github.com/knopkem/dicom-dimse-native.git Cloning into 'dicom-dimse-native'... remote: Enumerating objects: 12, done. remote: Counting objects: 100% (12/12), done. remote: Compressing objects: 100% (9/9), done. remote: Total 2711 (delta 3), reused 7 (delta 3), pack-reused 2699 Receiving objects: 100% (2711/2711), 144.87 MiB | 3.63 MiB/s, done. Resolving deltas: 100% (1232/1232), done. root@visorweb:/home# ls alma-dicomweb-proxy dicom-dimse-native ferran visor-web-login-back web-viewer-2d root@visorweb:/home# cd dicom-dimse-native/ root@visorweb:/home/dicom-dimse-native# npm install npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
dicom-dimse-native@1.2.6 install npx prebuild-install -r napi || npx cmake-js compile
[ '/usr/bin/node', '/home/dicom-dimse-native/node_modules/.bin/cmake-js', 'compile' ] info TOOL Using Unix Makefiles generator. info REP Build has been failed, trying to do a full rebuild. ERR! OMG CMake executable is not found. Please use your system's package manager to install it, or you can get installers from there: http://cmake.org. npm ERR! code 1 npm ERR! path /home/dicom-dimse-native npm ERR! command failed npm ERR! command sh -c npx prebuild-install -r napi || npx cmake-js compile
npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2021-03-25T15_55_23_657Z-debug.log root@visorweb:/home/dicom-dimse-native#
trying with cmake now
It seems that CMake was not found in your path. CMake-js needs this to work, see: https://www.npmjs.com/package/cmake-js
Ok, it installs correct this https://github.com/knopkem/dicom-dimse-native
But when i tried with your project npm install
root@visorweb:/home# cd dicomweb-proxy/
root@visorweb:/home/alma-dicomweb-proxy# npm install
npm ERR! code 1
npm ERR! path /home/alma-dicomweb-proxy/node_modules/dicom-dimse-native
npm ERR! command failed
npm ERR! command sh -c npx prebuild-install -r napi || npx cmake-js compile
npm ERR! [
npm ERR! '/usr/bin/node',
npm ERR! '/root/.npm/_npx/df44183e4145658d/node_modules/.bin/cmake-js',
npm ERR! 'compile'
npm ERR! ]
npm ERR! Not searching for unused variables given on the command line.
npm ERR! -- The C compiler identification is GNU 9.3.0
npm ERR! -- The CXX compiler identification is GNU 9.3.0
npm ERR! -- Check for working C compiler: /usr/bin/cc
npm ERR! -- Check for working C compiler: /usr/bin/cc -- works
npm ERR! -- Detecting C compiler ABI info
npm ERR! -- Detecting C compiler ABI info - done
npm ERR! -- Detecting C compile features
npm ERR! -- Detecting C compile features - done
npm ERR! -- Check for working CXX compiler: /usr/bin/c++
npm ERR! -- Check for working CXX compiler: /usr/bin/c++ -- works
npm ERR! -- Detecting CXX compiler ABI info
npm ERR! -- Detecting CXX compiler ABI info - done
npm ERR! -- Detecting CXX compile features
npm ERR! -- Detecting CXX compile features - done
npm ERR! -- Could NOT find WRAP (missing: WRAP_LIBRARY WRAP_INCLUDE_DIR)
npm ERR! -- Warning: WRAP support will be disabled because libwrap was not found.
npm ERR! -- Could NOT find OPENJPEG (missing: OPENJPEG_LIBRARY OPENJPEG_INCLUDE_DIR)
npm ERR! -- Warning: OpenJPEG support will be disabled because the OpenJPEG library was not found.
npm ERR! -- Performing Test WITH_STDLIBC_ICONV
npm ERR! -- Performing Test WITH_STDLIBC_ICONV - Success
npm ERR! -- Info: found builtin ICONV support inside the C standard library.
npm ERR! -- Performing Test LIBICONV_SECOND_ARGUMENT_CONST
npm ERR! -- Performing Test LIBICONV_SECOND_ARGUMENT_CONST - Failed
npm ERR! -- Info: DCMTK will compile with built-in (compiled-in) dictionary
npm ERR! -- Info: DCMTK will try to load external dictionary from default path on startup
npm ERR! -- Info: DCMTK's builtin private dictionary support will be disabled
npm ERR! -- Info: Thread support will be enabled
npm ERR! -- Info: Wide char file I/O functions will be disabled
npm ERR! -- Info: Wide char main function for command line tools will be disabled
npm ERR! -- Info: Building DCMTK with character set conversion support using builtin iconv functions from the C standard library
npm ERR! -- Looking for sys/types.h
npm ERR! -- Looking for sys/types.h - found
npm ERR! -- Looking for stdint.h
npm ERR! -- Looking for stdint.h - found
npm ERR! -- Looking for stddef.h
npm ERR! -- Looking for stddef.h - found
npm ERR! -- Check size of char
npm ERR! -- Check size of char - done
npm ERR! -- Check size of double
npm ERR! -- Check size of double - done
npm ERR! -- Check size of float
npm ERR! -- Check size of float - done
npm ERR! -- Check size of int
npm ERR! -- Check size of int - done
npm ERR! -- Check size of long
npm ERR! -- Check size of long - done
npm ERR! -- Check size of short
npm ERR! -- Check size of short - done
npm ERR! -- Check size of void
npm ERR! -- Check size of void - done
npm ERR! -- Looking for FUNCTION
npm ERR! -- Looking for FUNCTION - found
npm ERR! -- Looking for FUNCTION
npm ERR! -- Looking for FUNCTION - found
npm ERR! -- Looking for PRETTY_FUNCTION
npm ERR! -- Looking for PRETTY_FUNCTION - found
npm ERR! -- Looking for PRETTY_FUNCTION
npm ERR! -- Looking for PRETTY_FUNCTION - found
npm ERR! -- Looking for func
npm ERR! -- Looking for func - found
npm ERR! -- Looking for func
npm ERR! -- Looking for func - found
npm ERR! -- Looking for C++ include errno.h
npm ERR! -- Looking for C++ include errno.h - found
npm ERR! -- Looking for C++ include dirent.h
npm ERR! -- Looking for C++ include dirent.h - found
npm ERR! -- Looking for C++ include fcntl.h
npm ERR! -- Looking for C++ include fcntl.h - found
npm ERR! -- Looking for C++ include fstream
npm ERR! -- Looking for C++ include fstream - found
npm ERR! -- Looking for C++ include fstream.h
npm ERR! -- Looking for C++ include fstream.h - not found
npm ERR! -- Looking for C++ include fnmatch.h
npm ERR! -- Looking for C++ include fnmatch.h - found
npm ERR! -- Looking for C++ include float.h
npm ERR! -- Looking for C++ include float.h - found
npm ERR! -- Looking for C++ include grp.h
npm ERR! -- Looking for C++ include grp.h - found
npm ERR! -- Looking for C++ include malloc.h
npm ERR! -- Looking for C++ include malloc.h - found
npm ERR! -- Looking for C++ include math.h
npm ERR! -- Looking for C++ include math.h - found
npm ERR! -- Looking for C++ include cmath
npm ERR! -- Looking for C++ include cmath - found
npm ERR! -- Looking for C++ include ieeefp.h
npm ERR! -- Looking for C++ include ieeefp.h - not found
npm ERR! -- Looking for C++ include inttypes.h
npm ERR! -- Looking for C++ include inttypes.h - found
npm ERR! -- Looking for C++ include iomanip
npm ERR! -- Looking for C++ include iomanip - found
npm ERR! -- Looking for C++ include iomanip.h
npm ERR! -- Looking for C++ include iomanip.h - not found
npm ERR! -- Looking for C++ include iostream
npm ERR! -- Looking for C++ include iostream - found
npm ERR! -- Looking for C++ include iostream.h
npm ERR! -- Looking for C++ include iostream.h - not found
npm ERR! -- Looking for C++ include io.h
npm ERR! -- Looking for C++ include io.h - not found
npm ERR! -- Looking for C++ include iso646.h
npm ERR! -- Looking for C++ include iso646.h - found
npm ERR! -- Looking for C++ include png.h
npm ERR! -- Looking for C++ include png.h - not found
npm ERR! -- Looking for C++ include limits.h
npm ERR! -- Looking for C++ include limits.h - found
npm ERR! -- Looking for C++ include climits
npm ERR! -- Looking for C++ include climits - found
npm ERR! -- Looking for C++ include locale.h
npm ERR! -- Looking for C++ include locale.h - found
npm ERR! -- Looking for C++ include ndir.h
npm ERR! -- Looking for C++ include ndir.h - not found
npm ERR! -- Looking for C++ include netdb.h
npm ERR! -- Looking for C++ include netdb.h - found
npm ERR! -- Looking for C++ include new.h
npm ERR! -- Looking for C++ include new.h - not found
npm ERR! -- Looking for C++ include pwd.h
npm ERR! -- Looking for C++ include pwd.h - found
npm ERR! -- Looking for C++ include semaphore.h
npm ERR! -- Looking for C++ include semaphore.h - found
npm ERR! -- Looking for C++ include setjmp.h
npm ERR! -- Looking for C++ include setjmp.h - found
npm ERR! -- Looking for C++ include sstream
npm ERR! -- Looking for C++ include sstream - found
npm ERR! -- Looking for C++ include sstream.h
npm ERR! -- Looking for C++ include sstream.h - not found
npm ERR! -- Looking for C++ include stat.h
npm ERR! -- Looking for C++ include stat.h - not found
npm ERR! -- Looking for C++ include stdbool.h
npm ERR! -- Looking for C++ include stdbool.h - found
npm ERR! -- Looking for C++ include cstddef
npm ERR! -- Looking for C++ include cstddef - found
npm ERR! -- Looking for C++ include cstdint
npm ERR! -- Looking for C++ include cstdint - found
npm ERR! -- Looking for C++ include stdio.h
npm ERR! -- Looking for C++ include stdio.h - found
npm ERR! -- Looking for C++ include cstdio
npm ERR! -- Looking for C++ include cstdio - found
npm ERR! -- Looking for C++ include streambuf.h
npm ERR! -- Looking for C++ include streambuf.h - not found
npm ERR! -- Looking for C++ include strings.h
npm ERR! -- Looking for C++ include strings.h - found
npm ERR! -- Looking for C++ include string.h
npm ERR! -- Looking for C++ include string.h - found
npm ERR! -- Looking for C++ include strstream.h
npm ERR! -- Looking for C++ include strstream.h - not found
npm ERR! -- Looking for C++ include strstream
npm ERR! -- Looking for C++ include strstream - found
npm ERR! -- Looking for C++ include strstrea.h
npm ERR! -- Looking for C++ include strstrea.h - not found
npm ERR! -- Looking for C++ include synch.h
npm ERR! -- Looking for C++ include synch.h - not found
npm ERR! -- Looking for C++ include syslog.h
npm ERR! -- Looking for C++ include syslog.h - found
npm ERR! -- Looking for C++ include sys/errno.h
npm ERR! -- Looking for C++ include sys/errno.h - found
npm ERR! -- Looking for C++ include sys/dir.h
npm ERR! -- Looking for C++ include sys/dir.h - found
npm ERR! -- Looking for C++ include sys/file.h
npm ERR! -- Looking for C++ include sys/file.h - found
npm ERR! -- Looking for C++ include sys/ndir.h
npm ERR! -- Looking for C++ include sys/ndir.h - not found
npm ERR! -- Looking for C++ include sys/param.h
npm ERR! -- Looking for C++ include sys/param.h - found
npm ERR! -- Looking for C++ include sys/resource.h
npm ERR! -- Looking for C++ include sys/resource.h - found
npm ERR! -- Looking for C++ include sys/select.h
npm ERR! -- Looking for C++ include sys/select.h - found
npm ERR! -- Looking for C++ include sys/syscall.h
npm ERR! -- Looking for C++ include sys/syscall.h - found
npm ERR! -- Looking for C++ include sys/systeminfo.h
npm ERR! -- Looking for C++ include sys/systeminfo.h - not found
npm ERR! -- Looking for C++ include sys/time.h
npm ERR! -- Looking for C++ include sys/time.h - found
npm ERR! -- Looking for C++ include sys/timeb.h
npm ERR! -- Looking for C++ include sys/timeb.h - found
npm ERR! -- Looking for C++ include sys/utime.h
npm ERR! -- Looking for C++ include sys/utime.h - not found
npm ERR! -- Looking for C++ include sys/utsname.h
npm ERR! -- Looking for C++ include sys/utsname.h - found
npm ERR! -- Looking for C++ include sys/wait.h
npm ERR! -- Looking for C++ include sys/wait.h - found
npm ERR! -- Looking for C++ include sys/socket.h
npm ERR! -- Looking for C++ include sys/socket.h - found
npm ERR! -- Looking for C++ include thread.h
npm ERR! -- Looking for C++ include thread.h - not found
npm ERR! -- Looking for C++ include process.h
npm ERR! -- Looking for C++ include process.h - not found
npm ERR! -- Looking for C++ include sys/stat.h
npm ERR! -- Looking for C++ include sys/stat.h - found
npm ERR! -- Looking for C++ include time.h
npm ERR! -- Looking for C++ include time.h - found
npm ERR! -- Looking for C++ include unistd.h
npm ERR! -- Looking for C++ include unistd.h - found
npm ERR! -- Looking for C++ include unix.h
npm ERR! -- Looking for C++ include unix.h - not found
npm ERR! -- Looking for C++ include utime.h
npm ERR! -- Looking for C++ include utime.h - found
npm ERR! -- Looking for C++ include wchar.h
npm ERR! -- Looking for C++ include wchar.h - found
npm ERR! -- Looking for C++ include wctype.h
npm ERR! -- Looking for C++ include wctype.h - found
npm ERR! -- Looking for C++ include alloca.h
npm ERR! -- Looking for C++ include alloca.h - found
npm ERR! -- Looking for C++ include arpa/inet.h
npm ERR! -- Looking for C++ include arpa/inet.h - found
npm ERR! -- Looking for C++ include ctype.h
npm ERR! -- Looking for C++ include ctype.h - found
npm ERR! -- Looking for C++ include memory.h
npm ERR! -- Looking for C++ include memory.h - found
npm ERR! -- Looking for C++ include pthread.h
npm ERR! -- Looking for C++ include pthread.h - found
npm ERR! -- Looking for C++ include libc.h
npm ERR! -- Looking for C++ include libc.h - not found
npm ERR! -- Looking for C++ include stdlib.h
npm ERR! -- Looking for C++ include stdlib.h - found
npm ERR! -- Looking for C++ include stdarg.h
npm ERR! -- Looking for C++ include stdarg.h - found
npm ERR! -- Looking for C++ include cstdarg
npm ERR! -- Looking for C++ include cstdarg - found
npm ERR! -- Looking for C++ include signal.h
npm ERR! -- Looking for C++ include signal.h - found
npm ERR! -- Looking for C++ include fenv.h
npm ERR! -- Looking for C++ include fenv.h - found
npm ERR! -- Looking for C++ include iterator
npm ERR! -- Looking for C++ include iterator - found
npm ERR! -- Looking for C++ include poll.h
npm ERR! -- Looking for C++ include poll.h - found
npm ERR! -- Looking for include files sys/types.h, netinet/in_systm.h
npm ERR! -- Looking for include files sys/types.h, netinet/in_systm.h - found
npm ERR! -- Looking for 3 include files sys/types.h, ..., netinet/in.h
npm ERR! -- Looking for 3 include files sys/types.h, ..., netinet/in.h - found
npm ERR! -- Looking for 4 include files sys/types.h, ..., netinet/tcp.h
npm ERR! -- Looking for 4 include files sys/types.h, ..., netinet/tcp.h - found
npm ERR! -- Looking for C++ include libpng/png.h
npm ERR! -- Looking for C++ include libpng/png.h - not found
npm ERR! -- Looking for connect
npm ERR! -- Looking for connect - found
npm ERR! -- Looking for accept
npm ERR! -- Looking for accept - found
npm ERR! -- Looking for access
npm ERR! -- Looking for access - found
npm ERR! -- Looking for atoll
npm ERR! -- Looking for atoll - found
npm ERR! -- Looking for bcmp
npm ERR! -- Looking for bcmp - found
npm ERR! -- Looking for bcopy
npm ERR! -- Looking for bcopy - found
npm ERR! -- Looking for bind
npm ERR! -- Looking for bind - found
npm ERR! -- Looking for bzero
npm ERR! -- Looking for bzero - found
npm ERR! -- Looking for cuserid
npm ERR! -- Looking for cuserid - found
npm ERR! -- Looking for _doprnt
npm ERR! -- Looking for _doprnt - not found
npm ERR! -- Looking for finite
npm ERR! -- Looking for finite - found
npm ERR! -- Looking for flock
npm ERR! -- Looking for flock - found
npm ERR! -- Looking for fork
npm ERR! -- Looking for fork - found
npm ERR! -- Looking for fseeko
npm ERR! -- Looking for fseeko - found
npm ERR! -- Looking for ftime
npm ERR! -- Looking for ftime - found
npm ERR! -- Looking for getaddrinfo
npm ERR! -- Looking for getaddrinfo - found
npm ERR! -- Looking for getenv
npm ERR! -- Looking for getenv - found
npm ERR! -- Looking for geteuid
npm ERR! -- Looking for geteuid - found
npm ERR! -- Looking for getgrnam
npm ERR! -- Looking for getgrnam - found
npm ERR! -- Looking for gethostbyname
npm ERR! -- Looking for gethostbyname - found
npm ERR! -- Looking for gethostbyname_r
npm ERR! -- Looking for gethostbyname_r - found
npm ERR! -- Looking for gethostbyaddr_r
npm ERR! -- Looking for gethostbyaddr_r - found
npm ERR! -- Looking for gethostname
npm ERR! -- Looking for gethostname - found
npm ERR! -- Looking for gethostid
npm ERR! -- Looking for gethostid - found
npm ERR! -- Looking for getlogin
npm ERR! -- Looking for getlogin - found
npm ERR! -- Looking for getlogin_r
npm ERR! -- Looking for getlogin_r - found
npm ERR! -- Looking for getpid
npm ERR! -- Looking for getpid - found
npm ERR! -- Looking for getpwnam
npm ERR! -- Looking for getpwnam - found
npm ERR! -- Looking for getrusage
npm ERR! -- Looking for getrusage - found
npm ERR! -- Looking for getsockname
npm ERR! -- Looking for getsockname - found
npm ERR! -- Looking for getsockopt
npm ERR! -- Looking for getsockopt - found
npm ERR! -- Looking for gettimeofday
npm ERR! -- Looking for gettimeofday - found
npm ERR! -- Looking for getuid
npm ERR! -- Looking for getuid - found
npm ERR! -- Looking for gmtime_r
npm ERR! -- Looking for gmtime_r - found
npm ERR! -- Looking for index
npm ERR! -- Looking for index - found
npm ERR! -- Looking for isinf
npm ERR! -- Looking for isinf - found
npm ERR! -- Looking for isnan
npm ERR! -- Looking for isnan - found
npm ERR! -- Looking for itoa
npm ERR! -- Looking for itoa - not found
npm ERR! -- Looking for listen
npm ERR! -- Looking for listen - found
npm ERR! -- Looking for localtime_r
npm ERR! -- Looking for localtime_r - found
npm ERR! -- Looking for lockf
npm ERR! -- Looking for lockf - found
npm ERR! -- Looking for lstat
npm ERR! -- Looking for lstat - found
npm ERR! -- Looking for malloc_debug
npm ERR! -- Looking for malloc_debug - not found
npm ERR! -- Looking for mbstowcs
npm ERR! -- Looking for mbstowcs - found
npm ERR! -- Looking for wcstombs
npm ERR! -- Looking for wcstombs - found
npm ERR! -- Looking for memmove
npm ERR! -- Looking for memmove - found
npm ERR! -- Looking for mkstemp
npm ERR! -- Looking for mkstemp - found
npm ERR! -- Looking for mktemp
npm ERR! -- Looking for mktemp - found
npm ERR! -- Looking for rindex
npm ERR! -- Looking for rindex - found
npm ERR! -- Looking for select
npm ERR! -- Looking for select - found
npm ERR! -- Looking for setsockopt
npm ERR! -- Looking for setsockopt - found
npm ERR! -- Looking for setuid
npm ERR! -- Looking for setuid - found
npm ERR! -- Looking for sleep
npm ERR! -- Looking for sleep - found
npm ERR! -- Looking for socket
npm ERR! -- Looking for socket - found
npm ERR! -- Looking for stat
npm ERR! -- Looking for stat - found
npm ERR! -- Looking for strchr
npm ERR! -- Looking for strchr - found
npm ERR! -- Looking for strdup
npm ERR! -- Looking for strdup - found
npm ERR! -- Looking for strerror
npm ERR! -- Looking for strerror - found
npm ERR! -- Looking for strlcat
npm ERR! -- Looking for strlcat - not found
npm ERR! -- Looking for strlcpy
npm ERR! -- Looking for strlcpy - not found
npm ERR! -- Looking for strstr
npm ERR! -- Looking for strstr - found
npm ERR! -- Looking for strtoul
npm ERR! -- Looking for strtoul - found
npm ERR! -- Looking for sysinfo
npm ERR! -- Looking for sysinfo - found
npm ERR! -- Looking for tempnam
npm ERR! -- Looking for tempnam - found
npm ERR! -- Looking for tmpnam
npm ERR! -- Looking for tmpnam - found
npm ERR! -- Looking for uname
npm ERR! -- Looking for uname - found
npm ERR! -- Looking for usleep
npm ERR! -- Looking for usleep - found
npm ERR! -- Looking for wait3
npm ERR! -- Looking for wait3 - found
npm ERR! -- Looking for waitpid
npm ERR! -- Looking for waitpid - found
npm ERR! -- Looking for _findfirst
npm ERR! -- Looking for _findfirst - not found
npm ERR! -- Looking for nanosleep
npm ERR! -- Looking for nanosleep - found
npm ERR! -- Looking for prototype of feenableexcept
npm ERR! -- Looking for prototype of feenableexcept - found
npm ERR! -- Looking for prototype of isinf(0.)
npm ERR! -- Looking for prototype of isinf(0.) - found
npm ERR! -- Looking for prototype of isnan(0.)
npm ERR! -- Looking for prototype of isnan(0.) - found
npm ERR! -- Looking for prototype of finite
npm ERR! -- Looking for prototype of finite - found
npm ERR! -- Looking for prototype of std::isinf(0.)
npm ERR! -- Looking for prototype of std::isinf(0.) - found
npm ERR! -- Looking for prototype of std::isnan(0.)
npm ERR! -- Looking for prototype of std::isnan(0.) - found
npm ERR! -- Looking for prototype of std::finite
npm ERR! -- Looking for prototype of std::finite - not found.
npm ERR! -- Looking for prototype of flock
npm ERR! -- Looking for prototype of flock - found
npm ERR! -- Looking for prototype of gethostbyname
npm ERR! -- Looking for prototype of gethostbyname - found
npm ERR! -- Looking for prototype of gethostbyname_r
npm ERR! -- Looking for prototype of gethostbyname_r - found
npm ERR! -- Looking for prototype of gethostbyaddr_r
npm ERR! -- Looking for prototype of gethostbyaddr_r - found
npm ERR! -- Looking for prototype of gethostid
npm ERR! -- Looking for prototype of gethostid - found
npm ERR! -- Looking for prototype of bzero
npm ERR! -- Looking for prototype of bzero - found
npm ERR! -- Looking for prototype of gethostname
npm ERR! -- Looking for prototype of gethostname - found
npm ERR! -- Looking for prototype of waitpid
npm ERR! -- Looking for prototype of waitpid - found
npm ERR! -- Looking for prototype of wait3
npm ERR! -- Looking for prototype of wait3 - found
npm ERR! -- Looking for prototype of usleep
npm ERR! -- Looking for prototype of usleep - found
npm ERR! -- Looking for prototype of accept
npm ERR! -- Looking for prototype of accept - found
npm ERR! -- Looking for prototype of bind
npm ERR! -- Looking for prototype of bind - found
npm ERR! -- Looking for prototype of getsockname
npm ERR! -- Looking for prototype of getsockname - found
npm ERR! -- Looking for prototype of getsockopt
npm ERR! -- Looking for prototype of getsockopt - found
npm ERR! -- Looking for prototype of setsockopt
npm ERR! -- Looking for prototype of setsockopt - found
npm ERR! -- Looking for prototype of socket
npm ERR! -- Looking for prototype of socket - found
npm ERR! -- Looking for prototype of listen
npm ERR! -- Looking for prototype of listen - found
npm ERR! -- Looking for prototype of _vsnprintf_s
npm ERR! -- Looking for prototype of _vsnprintf_s - not found.
npm ERR! -- Looking for prototype of vfprintf_s
npm ERR! -- Looking for prototype of vfprintf_s - not found.
npm ERR! -- Looking for prototype of vprintf
npm ERR! -- Looking for prototype of vprintf - found
npm ERR! -- Looking for prototype of vsnprintf
npm ERR! -- Looking for prototype of vsnprintf - found
npm ERR! -- Looking for prototype of vsprintf_s
npm ERR! -- Looking for prototype of vsprintf_s - not found.
npm ERR! -- Looking for prototype of std::vfprintf
npm ERR! -- Looking for prototype of std::vfprintf - found
npm ERR! -- Looking for prototype of std::vsnprintf
npm ERR! -- Looking for prototype of std::vsnprintf - found
npm ERR! -- Looking for prototype of _stricmp
npm ERR! -- Looking for prototype of _stricmp - not found.
npm ERR! -- Looking for prototype of socklen_t definition
npm ERR! -- Looking for prototype of socklen_t definition - found
npm ERR! -- Looking for prototype of gettimeofday
npm ERR! -- Looking for prototype of gettimeofday - found
npm ERR! -- Looking for prototype of connect
npm ERR! -- Looking for prototype of connect - found
npm ERR! -- Looking for prototype of mkstemp
npm ERR! -- Looking for prototype of mkstemp - found
npm ERR! -- Looking for prototype of mktemp
npm ERR! -- Looking for prototype of mktemp - found
npm ERR! -- Looking for prototype of memcmp
npm ERR! -- Looking for prototype of memcmp - found
npm ERR! -- Looking for prototype of memcpy
npm ERR! -- Looking for prototype of memcpy - found
npm ERR! -- Looking for prototype of memset
npm ERR! -- Looking for prototype of memset - found
npm ERR! -- Looking for prototype of select
npm ERR! -- Looking for prototype of select - found
npm ERR! -- Looking for prototype of strcasecmp
npm ERR! -- Looking for prototype of strcasecmp - found
npm ERR! -- Looking for prototype of strncasecmp
npm ERR! -- Looking for prototype of strncasecmp - found
npm ERR! -- Looking for prototype of strerror_r
npm ERR! -- Looking for prototype of strerror_r - found
npm ERR! -- Looking for prototype of SYS_gettid
npm ERR! -- Looking for prototype of SYS_gettid - found
npm ERR! -- Looking for prototype of std::ios_base::openmode definition
npm ERR! -- Looking for prototype of std::ios_base::openmode definition - not found.
npm ERR! -- Looking for prototype of pthread_rwlock_init
npm ERR! -- Looking for prototype of pthread_rwlock_init - found
npm ERR! -- Looking for prototype of sync_add_and_fetch((int)0,0)
npm ERR! -- Looking for prototype of __sync_add_and_fetch((int)0,0) - found
npm ERR! -- Looking for prototype of sync_sub_and_fetch((int)0,0)
npm ERR! -- Looking for prototype of __sync_sub_and_fetch((int)0,0) - found
npm ERR! -- Looking for prototype of InterlockedIncrement((long)0)
npm ERR! -- Looking for prototype of InterlockedIncrement((long)0) - not found.
npm ERR! -- Looking for prototype of InterlockedDecrement((long)0)
npm ERR! -- Looking for prototype of InterlockedDecrement((long)0) - not found.
npm ERR! -- Looking for prototype of _fpclassf(0.0f)
npm ERR! -- Looking for prototype of _fpclassf(0.0f) - not found.
npm ERR! -- Looking for prototype of getgrnam_r((char)0,(group)0,(char*)0,0,(group)0)
npm ERR! -- Looking for prototype of getgrnam_r((char)0,(group)0,(char*)0,0,(group*)0) - found
npm ERR! -- Looking for prototype of getpwnam_r((char)0,(passwd)0,(char)0,0,(passwd)0)
npm ERR! -- Looking for prototype of getpwnam_r((char)0,(passwd)0,(char*)0,0,(passwd)0) - found
npm ERR! -- Looking for prototype of readdir_r((DIR)0,(dirent)0,(dirent)0)
npm ERR! -- Looking for prototype of readdir_r((DIR)0,(dirent)0,(dirent*)0) - found
npm ERR! -- Looking for prototype of readdir_r((DIR)0,(dirent)0)
npm ERR! -- Looking for prototype of readdir_r((DIR)0,(dirent)0) - not found.
npm ERR! -- Looking for prototype of nanosleep
npm ERR! -- Looking for prototype of nanosleep - found
npm ERR! -- Looking for prototype of &passwd::pw_gecos
npm ERR! -- Looking for prototype of &passwd::pw_gecos - found
npm ERR! -- Looking for prototype of TryAcquireSRWLockShared((PSRWLOCK)0)
npm ERR! -- Looking for prototype of TryAcquireSRWLockShared((PSRWLOCK)0) - not found.
npm ERR! -- Looking for prototype of uchar definition
npm ERR! -- Looking for prototype of uchar definition - not found.
npm ERR! -- Looking for prototype of ushort definition
npm ERR! -- Looking for prototype of ushort definition - found
npm ERR! -- Looking for prototype of uint definition
npm ERR! -- Looking for prototype of uint definition - found
npm ERR! -- Looking for prototype of ulong definition
npm ERR! -- Looking for prototype of ulong definition - found
npm ERR! -- Looking for prototype of longlong definition
npm ERR! -- Looking for prototype of longlong definition - not found.
npm ERR! -- Looking for prototype of ulonglong definition
npm ERR! -- Looking for prototype of ulonglong definition - not found.
npm ERR! -- Looking for prototype of long long definition
npm ERR! -- Looking for prototype of long long definition - found
npm ERR! -- Looking for prototype of unsigned long long definition
npm ERR! -- Looking for prototype of unsigned long long definition - found
npm ERR! -- Looking for prototype of int64_t definition
npm ERR! -- Looking for prototype of int64_t definition - found
npm ERR! -- Looking for prototype of uint64_t definition
npm ERR! -- Looking for prototype of uint64_t definition - found
npm ERR! -- Looking for prototype of char16_t definition
npm ERR! -- Looking for prototype of char16_t definition - found
npm ERR! -- Looking for prototype of fpos64_t definition
npm ERR! -- Looking for prototype of fpos64_t definition - found
npm ERR! -- Looking for prototype of off64_t definition
npm ERR! -- Looking for prototype of off64_t definition - found
npm ERR! -- Looking for prototype of popen
npm ERR! -- Looking for prototype of popen - found
npm ERR! -- Looking for prototype of pclose
npm ERR! -- Looking for prototype of pclose - found
npm ERR! -- Looking for prototype of sigjmp_buf definition
npm ERR! -- Looking for prototype of sigjmp_buf definition - found
npm ERR! -- Checking whether
npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2021-03-25T16_08_22_765Z-debug.log root@visorweb:/home/alma-dicomweb-proxy#
Yes, as written before:
So regarding the build, the CMake version you use should be recent enough and is not the issue. I can see why it fails: The version installed through dicomweb-proxy misses a directory (which I don't yet know why but will find out). You can try to compile the actual sources first to make sure it would run through: https://github.com/knopkem/dicom-dimse-native
So basically npm publish skipped the data directory in dcmdata (probably due to my .gitignore file), will publish a new version soon.
Ok, thx a lot i'll check
Hi, a couple of news: I published a new version of the dicom-dimse-native project that should fix the build issue hopefully for you. Also a new version of dicomweb-proxy is live that should also fix the issue you had when installing from prebuild using npm 6. (I removed keycloak authentication which I suspect nobody uses anyway and just adds problems). Let me know if this helped. Cheers.
Working!!! :D Thx a lot man!
Error while
npm install of the project
root@visorweb:/home/alma-dicomweb-proxy# npm install npm ERR! code 1 npm ERR! path /home/alma-dicomweb-proxy/node_modules/dicom-dimse-native npm ERR! command failed npm ERR! command sh -c npx prebuild-install -r napi || npx cmake-js compile npm ERR! [ npm ERR! '/usr/bin/node', npm ERR! '/root/.npm/_npx/df44183e4145658d/node_modules/.bin/cmake-js', npm ERR! 'compile' npm ERR! ] npm ERR! info TOOL Using Unix Makefiles generator. npm ERR! info REP Build has been failed, trying to do a full rebuild. npm ERR! ERR! OMG CMake executable is not found. Please use your system's package manager to install it, or you can get installers from there: http://cmake.org.
npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2021-03-25T14_08_59_150Z-debug.log
node_modules/node_addon_api
https://www.npmjs.com/package/dicom-dimse-native
Already tryied both of this...
This package uses prebuild to fetch precompiled binaries, so provided your platform is supported, all you need to do is:
npm i -s dicom-native-addon
Otherwise install will try to compile the sources for your platform, you will need:
CMake installed and in path a working c++ compiler (vs 2015+ or g++5.3+)
Error then
npm ERR! info RUN cmake "/home/alma-dicomweb-proxy/node_modules/dicom-dimse-native" --no-warn-unused-cli -G"Unix Makefiles" -DCMAKE_JS_VERSION="6.1.0" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_LIBRARY_OUTPUT_DIRECTORY="/home/alma-dicomweb-proxy/node_modules/dicom-dimse-native/build/Release" -DCMAKE_JS_INC="/root/.cmake-js/node-x64/v15.12.0/include/node" -DCMAKE_JS_SRC="" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="15.12.0" -DNODE_ARCH="x64" npm ERR! CMake Error at dcmdata/CMakeLists.txt:9 (add_subdirectory): npm ERR! add_subdirectory given source "data" which is not an existing directory. npm ERR! npm ERR! npm ERR! CMake Error at dcmimgle/CMakeLists.txt:9 (add_subdirectory): npm ERR! add_subdirectory given source "data" which is not an existing directory. npm ERR! npm ERR! npm ERR! info REP Build has been failed, trying to do a full rebuild. npm ERR! info CMD CLEAN npm ERR! info RUN cmake -E remove_directory "/home/alma-dicomweb-proxy/node_modules/dicom-dimse-native/build" npm ERR! info CMD CONFIGURE npm ERR! info RUN cmake "/home/alma-dicomweb-proxy/node_modules/dicom-dimse-native" --no-warn-unused-cli -G"Unix Makefiles" -DCMAKE_JS_VERSION="6.1.0" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_LIBRARY_OUTPUT_DIRECTORY="/home/alma-dicomweb-proxy/node_modules/dicom-dimse-native/build/Release" -DCMAKE_JS_INC="/root/.cmake-js/node-x64/v15.12.0/include/node" -DCMAKE_JS_SRC="" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="15.12.0" -DNODE_ARCH="x64" npm ERR! CMake Error at dcmdata/CMakeLists.txt:9 (add_subdirectory): npm ERR! add_subdirectory given source "data" which is not an existing directory. npm ERR! npm ERR! npm ERR! CMake Error at dcmimgle/CMakeLists.txt:9 (add_subdirectory): npm ERR! add_subdirectory given source "data" which is not an existing directory. npm ERR! npm ERR! npm ERR! ERR! OMG Process terminated: 1
npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2021-03-25T14_06_10_492Z-debug.log
THX FOR THE HELP!