converge / instapy-dashboard

(discontinued) InstaPy Dashboard developed using React.js and Node.js
GNU Affero General Public License v3.0
218 stars 44 forks source link

sqlite3 install fails on raspberry pi3 #19

Open GaWr26 opened 5 years ago

GaWr26 commented 5 years ago

Hey guys,

would really love to get this working but the installation of sqlit3 fails on my raspberry pi3.

Anybody got this to work?

sudo npm install npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor. npm WARN deprecated kleur@2.0.2: Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit https://github.com/lukeed/kleur/releases/tag/v3.0.0\ for migration path(s).

sqlite3@4.0.6 install /home/pi/InstaPy/instapy-dashboard/node_modules/sqlite3 node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using request for node-pre-gyp https download node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.0.6/node-v57-linux-arm.tar.gz node-pre-gyp WARN Pre-built binaries not found for sqlite3@4.0.6 and node@8.11.1 (node-v57 ABI, glibc) (falling back to source compile with node-gyp) gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/8.11.1" gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/pi/InstaPy/instapy-dashboard/node_modules/sqlite3/.node-gyp" make: Verzeichnis „/home/pi/InstaPy/instapy-dashboard/node_modules/sqlite3/build“ wird betreten make: ** Keine Regel vorhanden, um das Ziel „../.node-gyp/8.11.1/include/node/common.gypi“, benötigt von „Makefile“, zu erstellen. Schluss. make: Verzeichnis „/home/pi/InstaPy/instapy-dashboard/node_modules/sqlite3/build“ wird verlassen 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 emitTwo (events.js:126:13) gyp ERR! stack at ChildProcess.emit (events.js:214:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12) gyp ERR! System Linux 4.14.98-v7+ gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/pi/InstaPy/instapy-dashboard/node_modules/sqlite3/lib/binding/node-v57-linux-arm/node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=/home/pi/InstaPy/instapy-dashboard/node_modules/sqlite3/lib/binding/node-v57-linux-arm" "--napi_version=1" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v57" gyp ERR! cwd /home/pi/InstaPy/instapy-dashboard/node_modules/sqlite3 gyp ERR! node -v v8.11.1 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/pi/InstaPy/instapy-dashboard/node_modules/sqlite3/lib/binding/node-v57-linux-arm/node_sqlite3.node --module_name=node_sqlite3 --module_path=/home/pi/InstaPy/instapy-dashboard/node_modules/sqlite3/lib/binding/node-v57-linux-arm --napi_version=1 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v57' (1) node-pre-gyp ERR! stack at ChildProcess. (/home/pi/InstaPy/instapy-dashboard/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at emitTwo (events.js:126:13) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:214:7) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:925:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) node-pre-gyp ERR! System Linux 4.14.98-v7+ node-pre-gyp ERR! command "/usr/bin/node" "/home/pi/InstaPy/instapy-dashboard/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /home/pi/InstaPy/instapy-dashboard/node_modules/sqlite3 node-pre-gyp ERR! node -v v8.11.1 node-pre-gyp ERR! node-pre-gyp -v v0.11.0 node-pre-gyp ERR! not ok Failed to execute '/usr/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/pi/InstaPy/instapy-dashboard/node_modules/sqlite3/lib/binding/node-v57-linux-arm/node_sqlite3.node --module_name=node_sqlite3 --module_path=/home/pi/InstaPy/instapy-dashboard/node_modules/sqlite3/lib/binding/node-v57-linux-arm --napi_version=1 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v57' (1) npm WARN ts-pnp@1.0.1 requires a peer of typescript@ but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sqlite3@4.0.6 install: node-pre-gyp install --fallback-to-build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sqlite3@4.0.6 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/2019-03-19T09_11_19_237Z-debug.log

converge commented 5 years ago

Hey,

I hope it can help you: https://github.com/mapbox/node-sqlite3/issues/933

GaWr26 commented 5 years ago

Thank you so much @converge!

sudo apt-get install libsqlite3-dev
npm install sqlite3 --build-from-source --sqlite=/usr

did the trick!