madebyhiro / codem-transcode

Offline video transcoder written in node.js
Other
153 stars 68 forks source link

sqlite3 installation error #22

Closed kusmayadi closed 10 years ago

kusmayadi commented 10 years ago

I tried to install codem-transcode using npm on OS X Mavericks: sudo npm install -g codem-transcode but I got this following errors:

> sqlite3@2.1.19 install /usr/local/lib/node_modules/sqlite3 > node build.js

[sqlite3]: Checking for http://node-sqlite3.s3.amazonaws.com/Release/node_sqlite3-v2.1.a-node-v11-darwin-x64.tar.gz [sqlite3]: Error: ENOENT, open '/Users/koes/tmp/node-sqlite3-Release/node_sqlite3-v2.1.a-node-v11-darwin-x64.tar.gz' npm ERR! sqlite3@2.1.19 install: node build.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sqlite3@2.1.19 install script. npm ERR! This is most likely a problem with the sqlite3 package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node build.js npm ERR! You can get their info via: npm ERR! npm owner ls sqlite3 npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.0.0 npm ERR! command "/usr/local/Cellar/node/0.10.22/bin/node" "/usr/local/bin/npm" "install" "-g" "sqlite3" "--production" npm ERR! cwd /Users/koes npm ERR! node -v v0.10.22 npm ERR! npm -v 1.3.14 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /Users/koes/npm-debug.log npm ERR! not ok code 0

I understand that this is sqlite3 issue, but is there any way to bypass this? I successfully installed sqlite3 using: sudo npm install -g sqlite3 --build-from-source

tieleman commented 10 years ago

Hi, I'm able to install node and codem-transcode just fine on a clean Mavericks install:

# brew install node
[...]
# npm install codem-transcode
[...]
> sqlite3@2.1.19 install /Users/tieleman/node_modules/codem-transcode/node_modules/sqlite3
> node build.js

[sqlite3]: Checking for http://node-sqlite3.s3.amazonaws.com/Release/node_sqlite3-v2.1.a-node-v11-darwin-x64.tar.gz
[sqlite3]: Downloaded to: /var/folders/v_/tk2k380d055cf8lzrt4lqr740000gn/T/node-sqlite3-Release/node_sqlite3-v2.1.a-node-v11-darwin-x64.tar.gz
[sqlite3]: Checking for http://node-sqlite3.s3.amazonaws.com/Release/node_sqlite3-v2.1.a-node-v11-darwin-x64.sha1.txt
[sqlite3]: Sha1sum matches! b0026584c7663896a22afd8ec26d2c868f09f4c1
[sqlite3]: Extracting to lib/binding/Release
[sqlite3]: Sweet: "node_sqlite3.node" is valid, node-sqlite3 is now installed!
[...]

The Error: ENOENT, open '/Users/koes/tmp/node-sqlite3-Release/node_sqlite3-v2.1.a-node-v11-darwin-x64.tar.gz' error seems to imply that the install script can't open the downloaded sqlite3 file. Have you checked it is there and downloaded correctly? It might be that it's a failed download from AWS or something.

Mind you, I have not tried installing it globally (as it is not recommended by npm). Does it work if you do not use the -g flag? Make sure to remove any tmp files before reinstalling.

tieleman commented 10 years ago

Hi @kusmayadi, any luck with this? Otherwise I'm going to close the issue. I don't seem to have any issues with getting sqlite3 installed on Mavericks.

lamuertepeluda commented 10 years ago

I had to wget (curl -O) it manually on Lion. I won't assume it as fixed, though it seems a minor problem.