Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

403 fetching precompiled binary #918

Closed
jpillora opened this issue Dec 10, 2017 · 20 comments
Closed

403 fetching precompiled binary #918

jpillora opened this issue Dec 10, 2017 · 20 comments

Comments

@jpillora
Copy link

> sqlite3@3.1.11 install /Users/jp/app/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.11/node-v59-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for sqlite3@3.1.11 and node@9.2.1 (node-v59 ABI) (falling back to source compile with node-gyp)
  ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3150000/sqlite3.c
  TOUCH Release/obj.target/deps/action_before_build.stamp
  CC(target) Release/obj.target/sqlite3/gen/sqlite-autoconf-3150000/sqlite3.o
  LIBTOOL-STATIC Release/sqlite3.a
  CXX(target) Release/obj.target/node_sqlite3/src/database.o

And compile from source failed

@jacklau88
Copy link

i got the same problem too,how to fix it?

@DelboyDylan
Copy link

I was getting the same issue. To workaround it I've downgraded my NodeJS installation from 9, back to 8 for the time being (https://nodejs.org/dist/latest-v8.x/).

@slavarazum
Copy link

@springmeyer
The same issue. Looks like sqlite3 currently hasn't binary file for latest node and npm versions.
On any device
NPM version: 5.5.1
Node version: v9.2.1

Please, take attention, thanks.

@springmeyer
Copy link
Contributor

I've just posted binaries for node v9 for the latest node-sqlite3@3.1.13 release. So if you install v3.1.13 this should work now (binaries will be installed and no source compile will need to happen).

@slavarazum
Copy link

@springmeyer Huge thanks for operative solution! Think this issue can be closed.

@songzhj
Copy link

songzhj commented Jan 8, 2018

403 https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.1/node-v48-darwin-x64.tar.gz
node v6.9.2 has the same problem too

@vincent7128
Copy link

@nZeus
Copy link

nZeus commented Mar 6, 2018

Hi, I have the latest node (v9.7.1) installed on my RaspberryPi3 and still have this issue. I also tried with node v4, the same error:

pi@IT-Raspberry:~/pimatic-app $ sudo npm install sqlite3 --unsafe-perm

> sqlite3@3.1.13 install /home/pi/pimatic-app/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v59-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for sqlite3@3.1.13 and node@9.5.0 (node-v59 ABI) (falling back to source compile with node-gyp)
make: Entering directory '/home/pi/pimatic-app/node_modules/sqlite3/build'
  ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3150000/sqlite3.c
  TOUCH Release/obj.target/deps/action_before_build.stamp
  CC(target) Release/obj.target/sqlite3/gen/sqlite-autoconf-3150000/sqlite3.o

Can someone help me how to fix this?

@vincent7128
Copy link

@nZeus I run node-sqlite3 on the raspberry pi, it will install build from src.
The process take about 6 min on the raspberry pi 3.

$ uname -a
Linux raspberrypi 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l GNU/Linux
$ node -v
v9.7.1
$ npm -v
5.7.1

@nZeus
Copy link

nZeus commented Mar 6, 2018

This is what I have:

image

after an hour it's still the same >_<

@rzr
Copy link
Contributor

rzr commented Apr 10, 2018

@nZeus

I am able to build on pi3 but it's rather slow:

#942

@jyy1082
Copy link

jyy1082 commented Apr 24, 2018

Is there anyone know how to fix it?

@kevXZY
Copy link

kevXZY commented Apr 24, 2018

it works for me now

export LDFLAGS="-L/usr/local/lib"
export CPPFLAGS="-I/usr/local/include -I/usr/local/include/sqlcipher"
export CXXFLAGS="$CPPFLAGS"
npm install sqlite3 --build-from-source --sqlite_libname=sqlcipher --sqlite=/usr/local --verbose

node -e 'require("sqlite3")'

and then as root

npm install --only=production

@fmuntean
Copy link

fmuntean commented May 19, 2018

Can we please get it to work without the need to compile?
Not everybody has the full development tools needed to do this.
I am currently getting the same issue on a Raspberry PI Zero.
node -v v8.11.1
node-pre-gyp -v v0.9.0
node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v57-linux-arm.tar.gz
node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.0.0/node-v57-linux-arm.tar.gz

@oppih
Copy link

oppih commented May 27, 2018

node-sqlite3 does not support node v10 yet

see it here: #977

@crazyyi
Copy link

crazyyi commented Jun 21, 2018

@oppih Yes I have to revert back to node v9.5.0. Thanks for the info.

@springmeyer
Copy link
Contributor

The errors reported here are all various and from different issues. Anyone hitting this please:

  • use latest node-sqlite@4.0.1
  • use latest npm@6
  • create a new issue if you are still having problems

If you are on ARM, we don't support binaries yet for easy install, so see #418

@answerquest
Copy link

use latest node-sqlite@4.0.1
use latest npm@6

@springmeyer Could you give exact nvm commands to do so?

@bbrzoska
Copy link

bbrzoska commented Apr 2, 2021

This keeps happening again with latest node v14.

node-pre-gyp WARN Tried to download(403): mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v83-linux-x64.tar.gz 

@chrisgrounds
Copy link

Happens on node v15 too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests