Version 1.40.0 simply doesn't compile on linux following the steps in the contributing wiki page.
Of course I installed git lfs and the obsolte python2, but once I try
yarn install --frozen-lockfile
It says
yarn install v1.22.10
[1/6] Validating package.json...
[2/6] Resolving packages...
[3/6] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/6] Linking dependencies...
warning " > [email protected]" has unmet peer dependency "prop-types@^15.0.0".
warning " > [email protected]" has unmet peer dependency "prop-types@^15.5.7".
warning " > [email protected]" has incorrect peer dependency "typescript@>=3.3.1 <3.10.0".
warning " > [email protected]" has incorrect peer dependency "grunt@~0.4.5".
[5/6] Building fresh packages...
[1/35] ⠐ @journeyapps/sqlcipher
[8/35] ⠐ ref-napi
[9/35] ⠐ core-js
[7/35] ⠐ ref-napi
error /home/stefan/Desktop/stuff/Signal-Desktop/node_modules/@journeyapps/sqlcipher: Command failed.
Exit code: 1
Command: node-pre-gyp install --build-from-source
Arguments:
Directory: /home/stefan/Desktop/stuff/Signal-Desktop/node_modules/@journeyapps/sqlcipher
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | linux | x64
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp info build requesting source compile
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info ok
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info find Python using Python version 2.7.18 found at "/usr/local/bin/python"
gyp info spawn /usr/local/bin/python
gyp info spawn args [
gyp info spawn args '/home/stefan/Desktop/stuff/Signal-Desktop/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/home/stefan/Desktop/stuff/Signal-Desktop/node_modules/@journeyapps/sqlcipher/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/stefan/Desktop/stuff/Signal-Desktop/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/stefan/.cache/node-gyp/12.18.3/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/stefan/.cache/node-gyp/12.18.3',
gyp info spawn args '-Dnode_gyp_dir=/home/stefan/Desktop/stuff/Signal-Desktop/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/home/stefan/.cache/node-gyp/12.18.3/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/home/stefan/Desktop/stuff/Signal-Desktop/node_modules/@journeyapps/sqlcipher',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info ok
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/home/stefan/Desktop/stuff/Signal-Desktop/node_modules/@journeyapps/sqlcipher/build'
CC(target) Release/obj.target/nothing/../../node-addon-api/nothing.o
AR(target) Release/obj.target/../../node-addon-api/nothing.a
COPY Release/nothing.a
ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlcipher-amalgamation-3033000/sqlite3.c
make: Leaving directory '/home/stefan/Desktop/stuff/Signal-Desktop/node_modules/@journeyapps/sqlcipher/build'
Failed to execute '/home/stefan/.npm-global/n/versions/node/12.18.3/bin/node /home/stefan/Desktop/stuff/Signal-Desktop/node_modules/node-gyp/bin/node-gyp.js build --build-from-source --module=/home/stefan/Desktop/stuff/Signal-Desktop/node_modules/@journeyapps/sqlcipher/lib/binding/napi-v6-linux-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/home/stefan/Desktop/stuff/Signal-Desktop/node_modules/@journeyapps/sqlcipher/lib/binding/napi-v6-linux-x64 --napi_version=6 --node_abi_napi=napi --napi_build_version=6 --node_napi_label=napi-v6' (1)
Traceback (most recent call last):
File "./extract.py", line 7, in <module>
tfile = tarfile.open(tarball,'r:gz');
File "/usr/lib/python2.7/tarfile.py", line 1693, in open
return func(name, filemode, fileobj, **kwargs)
File "/usr/lib/python2.7/tarfile.py", line 1751, in gzopen
raise ReadError("not a gzip file")
tarfile.ReadError: not a gzip file
make: *** [deps/action_before_build.target.mk:13: Release/obj/gen/sqlcipher-amalgamation-3033000/sqlite3.c] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/stefan/Desktop/stuff/Signal-Desktop/node_modules/node-gyp/lib/build.js:196:23)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 5.10.0-3-amd64
gyp ERR! command "/home/stefan/.npm-global/n/versions/node/12.18.3/bin/node" "/home/stefan/Desktop/stuff/Signal-Desktop/node_modules/node-gyp/bin/node-gyp.js" "build" "--build-from-source" "--module=/home/stefan/Desktop/stuff/Signal-Desktop/node_modules/@journeyapps/sqlcipher/lib/binding/napi-v6-linux-x64/node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=/home/stefan/Desktop/stuff/Signal-Desktop/node_modules/@journeyapps/sqlcipher/lib/binding/napi-v6-linux-x64" "--napi_version=6" "--node_abi_napi=napi" "--napi_build_version=6" "--node_napi_label=napi-v6"
gyp ERR! cwd /home/stefan/Desktop/stuff/Signal-Desktop/node_modules/@journeyapps/sqlcipher
gyp ERR! node -v v12.18.3
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/home/stefan/.npm-global/n/versions/node/12.18.3/bin/node /home/stefan/Desktop/stuff/Signal-Desktop/node_modules/node-gyp/bin/node-gyp.js build --build-from-source --module=/home/stefan/Desktop/stuff/Signal-Desktop/node_modules/@journeyapps/sqlcipher/lib/binding/napi-v6-linux-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/home/stefan/Desktop/stuff/Signal-Desktop/node_modules/@journeyapps/sqlcipher/lib/binding/napi-v6-linux-x64 --napi_version=6 --node_abi_napi=napi --napi_build_version=6 --node_napi_label=napi-v6' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/home/stefan/Desktop/stuff/Signal-Desktop/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1021:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
node-pre-gyp ERR! System Linux 5.10.0-3-amd64
node-pre-gyp ERR! command "/home/stefan/.npm-global/n/versions/node/12.18.3/bin/node" "/home/stefan/Desktop/stuff/Signal-Desktop/node_modules/@journeyapps/sqlcipher/node_modules/.bin/node-pre-gyp" "install" "--build-from-source"
node-pre-gyp ERR! cwd /home/stefan/Desktop/stuff/Signal-Desktop/node_modules/@journeyapps/sqlcipher
You need to install git-lfs to install our sqlcipher dependency. Once you've done that, remove the node_modules directory, then run yarn cache clean, then try again.
Thank you so much, I can not contain my happyness UwU
Most helpful comment
Thank you so much, I can not contain my happyness UwU