madebyhiro / codem-transcode

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

Error While Installing Codem Transcode #27

Closed vishnuprasad9633 closed 10 years ago

vishnuprasad9633 commented 10 years ago

Hi,

I got the following error while installing codem transcode. I have installed the dependencies succesfully.

[root@localhost cme]# npm install codem-transcode -g npm http GET https://registry.npmjs.org/codem-transcode npm http 304 https://registry.npmjs.org/codem-transcode npm http GET https://registry.npmjs.org/sequelize npm http GET https://registry.npmjs.org/express npm http GET https://registry.npmjs.org/sqlite3 npm http GET https://registry.npmjs.org/argsparser npm http GET https://registry.npmjs.org/async npm http GET https://registry.npmjs.org/mkdirp npm http 304 https://registry.npmjs.org/sqlite3 npm http 304 https://registry.npmjs.org/argsparser npm http 304 https://registry.npmjs.org/mkdirp npm http 304 https://registry.npmjs.org/sequelize npm http GET https://registry.npmjs.org/sqlite3/-/sqlite3-2.2.3.tgz npm http 304 https://registry.npmjs.org/async npm http 200 https://registry.npmjs.org/express npm http 200 https://registry.npmjs.org/sqlite3/-/sqlite3-2.2.3.tgz npm http GET https://registry.npmjs.org/connect npm http GET https://registry.npmjs.org/mime npm http GET https://registry.npmjs.org/qs npm http GET https://registry.npmjs.org/underscore npm http GET https://registry.npmjs.org/underscore.string npm http GET https://registry.npmjs.org/lingo npm http GET https://registry.npmjs.org/validator npm http GET https://registry.npmjs.org/moment npm http GET https://registry.npmjs.org/commander npm http GET https://registry.npmjs.org/generic-pool npm http GET https://registry.npmjs.org/dottie npm http 304 https://registry.npmjs.org/connect npm http 304 https://registry.npmjs.org/mime npm http 304 https://registry.npmjs.org/qs npm http GET https://registry.npmjs.org/formidable npm http 304 https://registry.npmjs.org/underscore.string npm http 304 https://registry.npmjs.org/lingo npm http 304 https://registry.npmjs.org/moment npm WARN deprecated lingo@0.0.5: This project is abandoned npm http 304 https://registry.npmjs.org/validator npm http 304 https://registry.npmjs.org/commander npm http 304 https://registry.npmjs.org/underscore

sqlite3@2.2.3 install /usr/local/lib/node_modules/codem-transcode/node_modules/sqlite3 node-pre-gyp install --fallback-to-build

node-pre-gyp http GET https://node-sqlite3.s3.amazonaws.com/Release/node_sqlite3-v2.2.3-node-v11-linux-x64.tar.gz node-pre-gyp http 200 https://node-sqlite3.s3.amazonaws.com/Release/node_sqlite3-v2.2.3-node-v11-linux-x64.tar.gz [sqlite3] Command failed: module.js:356 Module._extensions[extension](this, filename); ^ Error: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/lib/node_modules/codem-transcode/node_modules/sqlite3/lib/binding/node-v11-linux-x64/node_sqlite3.node) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at [eval]:1:1 at Object. ([eval]-wrapper:6:22) at Module._compile (module.js:456:26) at evalScript (node.js:536:25) at startup (node.js:80:7) at node.js:906:3

node-pre-gyp ERR! Testing pre-built binary failed, attempting to source compile Traceback (most recent call last): File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 18, in sys.exit(gyp.script_main()) AttributeError: 'module' object has no attribute 'script_main' gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:340:16) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:807:12) gyp ERR! System Linux 2.6.32-431.el6.x86_64 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--name=sqlite3" "--configuration=Release" "--module_name=node_sqlite3" "--version=2.2.3" "--major=2" "--minor=2" "--patch=3" "--runtime=node" "--node_abi=node-v11" "--platform=linux" "--arch=x64" "--target_arch=x64" "--module_main=./lib/sqlite3" "--host=https://node-sqlite3.s3.amazonaws.com/" "--module_path=/usr/local/lib/node_modules/codem-transcode/node_modules/sqlite3/lib/binding/node-v11-linux-x64" "--remote_path=./Release/" "--package_name=node_sqlite3-v2.2.3-node-v11-linux-x64.tar.gz" "--staged_tarball=build/stage/Release/node_sqlite3-v2.2.3-node-v11-linux-x64.tar.gz" "--hosted_path=https://node-sqlite3.s3.amazonaws.com/Release/" "--hosted_tarball=https://node-sqlite3.s3.amazonaws.com/Release/node_sqlite3-v2.2.3-node-v11-linux-x64.tar.gz" gyp ERR! cwd /usr/local/lib/node_modules/codem-transcode/node_modules/sqlite3 gyp ERR! node -v v0.10.28 gyp ERR! node-gyp -v v0.13.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node rebuild --name=sqlite3 --configuration=Release --module_name=node_sqlite3 --version=2.2.3 --major=2 --minor=2 --patch=3 --runtime=node --node_abi=node-v11 --platform=linux --arch=x64 --target_arch=x64 --module_main=./lib/sqlite3 --host=https://node-sqlite3.s3.amazonaws.com/ --module_path=/usr/local/lib/node_modules/codem-transcode/node_modules/sqlite3/lib/binding/node-v11-linux-x64 --remote_path=./Release/ --package_name=node_sqlite3-v2.2.3-node-v11-linux-x64.tar.gz --staged_tarball=build/stage/Release/node_sqlite3-v2.2.3-node-v11-linux-x64.tar.gz --hosted_path=https://node-sqlite3.s3.amazonaws.com/Release/ --hosted_tarball=https://node-sqlite3.s3.amazonaws.com/Release/node_sqlite3-v2.2.3-node-v11-linux-x64.tar.gz' (1) node-pre-gyp ERR! stack at ChildProcess. (/usr/local/lib/node_modules/codem-transcode/node_modules/sqlite3/node_modules/node-pre-gyp/lib/util/compile.js:76:29) node-pre-gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) node-pre-gyp ERR! stack at maybeClose (child_process.js:753:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:5) node-pre-gyp ERR! System Linux 2.6.32-431.el6.x86_64 node-pre-gyp ERR! command "node" "/usr/local/lib/node_modules/codem-transcode/node_modules/sqlite3/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /usr/local/lib/node_modules/codem-transcode/node_modules/sqlite3 node-pre-gyp ERR! node -v v0.10.28 node-pre-gyp ERR! node-pre-gyp -v v0.5.9 node-pre-gyp ERR! not ok npm http 304 https://registry.npmjs.org/generic-pool npm http 304 https://registry.npmjs.org/formidable npm http 304 https://registry.npmjs.org/dottie npm ERR! sqlite3@2.2.3 install: node-pre-gyp install --fallback-to-build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sqlite3@2.2.3 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-pre-gyp install --fallback-to-build 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 Linux 2.6.32-431.el6.x86_64 npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "codem-transcode" "-g" npm ERR! cwd /home/cme npm ERR! node -v v0.10.28 npm ERR! npm -v 1.4.9 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/cme/npm-debug.log npm ERR! not ok code 0

It would be appreciated if anyone could help me on this.

tieleman commented 10 years ago

It seems the npm sqlite3 package won't compile for your system. What happens when you try installing sqlite3 by hand?

npm install sqlite3 -g
vishnuprasad9633 commented 10 years ago

here is the output

[root@localhost cme]# npm install codem-transcode -g npm http GET https://registry.npmjs.org/codem-transcode npm http 304 https://registry.npmjs.org/codem-transcode npm http GET https://registry.npmjs.org/sequelize npm http GET https://registry.npmjs.org/express npm http GET https://registry.npmjs.org/sqlite3 npm http GET https://registry.npmjs.org/argsparser npm http GET https://registry.npmjs.org/async npm http GET https://registry.npmjs.org/mkdirp npm http 304 https://registry.npmjs.org/sqlite3 npm http 304 https://registry.npmjs.org/argsparser npm http 304 https://registry.npmjs.org/mkdirp npm http 304 https://registry.npmjs.org/sequelize npm http GET https://registry.npmjs.org/sqlite3/-/sqlite3-2.2.3.tgz npm http 304 https://registry.npmjs.org/async npm http 200 https://registry.npmjs.org/express npm http 200 https://registry.npmjs.org/sqlite3/-/sqlite3-2.2.3.tgz npm http GET https://registry.npmjs.org/connect npm http GET https://registry.npmjs.org/mime npm http GET https://registry.npmjs.org/qs npm http GET https://registry.npmjs.org/underscore npm http GET https://registry.npmjs.org/underscore.string npm http GET https://registry.npmjs.org/lingo npm http GET https://registry.npmjs.org/validator npm http GET https://registry.npmjs.org/moment npm http GET https://registry.npmjs.org/commander npm http GET https://registry.npmjs.org/generic-pool npm http GET https://registry.npmjs.org/dottie npm http 304 https://registry.npmjs.org/connect npm http 304 https://registry.npmjs.org/mime npm http 304 https://registry.npmjs.org/qs npm http GET https://registry.npmjs.org/formidable npm http 304 https://registry.npmjs.org/underscore.string npm http 304 https://registry.npmjs.org/lingo npm http 304 https://registry.npmjs.org/moment npm WARN deprecated lingo@0.0.5: This project is abandoned npm http 304 https://registry.npmjs.org/validator npm http 304 https://registry.npmjs.org/commander npm http 304 https://registry.npmjs.org/underscore

sqlite3@2.2.3 install /usr/local/lib/node_modules/codem-transcode/node_modules/sqlite3 node-pre-gyp install --fallback-to-build

node-pre-gyp http GET https://node-sqlite3.s3.amazonaws.com/Release/node_sqlite3-v2.2.3-node-v11-linux-x64.tar.gz node-pre-gyp http 200 https://node-sqlite3.s3.amazonaws.com/Release/node_sqlite3-v2.2.3-node-v11-linux-x64.tar.gz [sqlite3] Command failed: module.js:356 Module._extensions[extension](this, filename); ^ Error: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/lib/node_modules/codem-transcode/node_modules/sqlite3/lib/binding/node-v11-linux-x64/node_sqlite3.node) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at [eval]:1:1 at Object. ([eval]-wrapper:6:22) at Module._compile (module.js:456:26) at evalScript (node.js:536:25) at startup (node.js:80:7) at node.js:906:3

node-pre-gyp ERR! Testing pre-built binary failed, attempting to source compile Traceback (most recent call last): File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 18, in sys.exit(gyp.script_main()) AttributeError: 'module' object has no attribute 'script_main' gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:340:16) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:807:12) gyp ERR! System Linux 2.6.32-431.el6.x86_64 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--name=sqlite3" "--configuration=Release" "--module_name=node_sqlite3" "--version=2.2.3" "--major=2" "--minor=2" "--patch=3" "--runtime=node" "--node_abi=node-v11" "--platform=linux" "--arch=x64" "--target_arch=x64" "--module_main=./lib/sqlite3" "--host=https://node-sqlite3.s3.amazonaws.com/" "--module_path=/usr/local/lib/node_modules/codem-transcode/node_modules/sqlite3/lib/binding/node-v11-linux-x64" "--remote_path=./Release/" "--package_name=node_sqlite3-v2.2.3-node-v11-linux-x64.tar.gz" "--staged_tarball=build/stage/Release/node_sqlite3-v2.2.3-node-v11-linux-x64.tar.gz" "--hosted_path=https://node-sqlite3.s3.amazonaws.com/Release/" "--hosted_tarball=https://node-sqlite3.s3.amazonaws.com/Release/node_sqlite3-v2.2.3-node-v11-linux-x64.tar.gz" gyp ERR! cwd /usr/local/lib/node_modules/codem-transcode/node_modules/sqlite3 gyp ERR! node -v v0.10.28 gyp ERR! node-gyp -v v0.13.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node rebuild --name=sqlite3 --configuration=Release --module_name=node_sqlite3 --version=2.2.3 --major=2 --minor=2 --patch=3 --runtime=node --node_abi=node-v11 --platform=linux --arch=x64 --target_arch=x64 --module_main=./lib/sqlite3 --host=https://node-sqlite3.s3.amazonaws.com/ --module_path=/usr/local/lib/node_modules/codem-transcode/node_modules/sqlite3/lib/binding/node-v11-linux-x64 --remote_path=./Release/ --package_name=node_sqlite3-v2.2.3-node-v11-linux-x64.tar.gz --staged_tarball=build/stage/Release/node_sqlite3-v2.2.3-node-v11-linux-x64.tar.gz --hosted_path=https://node-sqlite3.s3.amazonaws.com/Release/ --hosted_tarball=https://node-sqlite3.s3.amazonaws.com/Release/node_sqlite3-v2.2.3-node-v11-linux-x64.tar.gz' (1) node-pre-gyp ERR! stack at ChildProcess. (/usr/local/lib/node_modules/codem-transcode/node_modules/sqlite3/node_modules/node-pre-gyp/lib/util/compile.js:76:29) node-pre-gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) node-pre-gyp ERR! stack at maybeClose (child_process.js:753:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:5) node-pre-gyp ERR! System Linux 2.6.32-431.el6.x86_64 node-pre-gyp ERR! command "node" "/usr/local/lib/node_modules/codem-transcode/node_modules/sqlite3/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /usr/local/lib/node_modules/codem-transcode/node_modules/sqlite3 node-pre-gyp ERR! node -v v0.10.28 node-pre-gyp ERR! node-pre-gyp -v v0.5.9 node-pre-gyp ERR! not ok npm http 304 https://registry.npmjs.org/generic-pool npm http 304 https://registry.npmjs.org/formidable npm http 304 https://registry.npmjs.org/dottie npm ERR! sqlite3@2.2.3 install: node-pre-gyp install --fallback-to-build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sqlite3@2.2.3 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-pre-gyp install --fallback-to-build 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 Linux 2.6.32-431.el6.x86_64 npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "codem-transcode" "-g" npm ERR! cwd /home/cme npm ERR! node -v v0.10.28 npm ERR! npm -v 1.4.9 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/cme/npm-debug.log npm ERR! not ok code 0 [root@localhost cme]# clear

[root@localhost cme]# npm install sqlite3 npm http GET https://registry.npmjs.org/sqlite3 npm http 304 https://registry.npmjs.org/sqlite3 npm http GET https://registry.npmjs.org/sqlite3/-/sqlite3-2.2.3.tgz npm http 200 https://registry.npmjs.org/sqlite3/-/sqlite3-2.2.3.tgz

sqlite3@2.2.3 install /home/cme/node_modules/sqlite3 node-pre-gyp install --fallback-to-build

node-pre-gyp http GET https://node-sqlite3.s3.amazonaws.com/Release/node_sqlite3-v2.2.3-node-v11-linux-x64.tar.gz node-pre-gyp http 200 https://node-sqlite3.s3.amazonaws.com/Release/node_sqlite3-v2.2.3-node-v11-linux-x64.tar.gz [sqlite3] Command failed: module.js:356 Module._extensions[extension](this, filename); ^ Error: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /home/cme/node_modules/sqlite3/lib/binding/node-v11-linux-x64/node_sqlite3.node) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at [eval]:1:1 at Object. ([eval]-wrapper:6:22) at Module._compile (module.js:456:26) at evalScript (node.js:536:25) at startup (node.js:80:7) at node.js:906:3

node-pre-gyp ERR! Testing pre-built binary failed, attempting to source compile Traceback (most recent call last): File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 18, in sys.exit(gyp.script_main()) AttributeError: 'module' object has no attribute 'script_main' gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:340:16) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:807:12) gyp ERR! System Linux 2.6.32-431.el6.x86_64 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--name=sqlite3" "--configuration=Release" "--module_name=node_sqlite3" "--version=2.2.3" "--major=2" "--minor=2" "--patch=3" "--runtime=node" "--node_abi=node-v11" "--platform=linux" "--arch=x64" "--target_arch=x64" "--module_main=./lib/sqlite3" "--host=https://node-sqlite3.s3.amazonaws.com/" "--module_path=/home/cme/node_modules/sqlite3/lib/binding/node-v11-linux-x64" "--remote_path=./Release/" "--package_name=node_sqlite3-v2.2.3-node-v11-linux-x64.tar.gz" "--staged_tarball=build/stage/Release/node_sqlite3-v2.2.3-node-v11-linux-x64.tar.gz" "--hosted_path=https://node-sqlite3.s3.amazonaws.com/Release/" "--hosted_tarball=https://node-sqlite3.s3.amazonaws.com/Release/node_sqlite3-v2.2.3-node-v11-linux-x64.tar.gz" gyp ERR! cwd /home/cme/node_modules/sqlite3 gyp ERR! node -v v0.10.28 gyp ERR! node-gyp -v v0.13.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node rebuild --name=sqlite3 --configuration=Release --module_name=node_sqlite3 --version=2.2.3 --major=2 --minor=2 --patch=3 --runtime=node --node_abi=node-v11 --platform=linux --arch=x64 --target_arch=x64 --module_main=./lib/sqlite3 --host=https://node-sqlite3.s3.amazonaws.com/ --module_path=/home/cme/node_modules/sqlite3/lib/binding/node-v11-linux-x64 --remote_path=./Release/ --package_name=node_sqlite3-v2.2.3-node-v11-linux-x64.tar.gz --staged_tarball=build/stage/Release/node_sqlite3-v2.2.3-node-v11-linux-x64.tar.gz --hosted_path=https://node-sqlite3.s3.amazonaws.com/Release/ --hosted_tarball=https://node-sqlite3.s3.amazonaws.com/Release/node_sqlite3-v2.2.3-node-v11-linux-x64.tar.gz' (1) node-pre-gyp ERR! stack at ChildProcess. (/home/cme/node_modules/sqlite3/node_modules/node-pre-gyp/lib/util/compile.js:76:29) node-pre-gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) node-pre-gyp ERR! stack at maybeClose (child_process.js:753:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:5) node-pre-gyp ERR! System Linux 2.6.32-431.el6.x86_64 node-pre-gyp ERR! command "node" "/home/cme/node_modules/sqlite3/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /home/cme/node_modules/sqlite3 node-pre-gyp ERR! node -v v0.10.28 node-pre-gyp ERR! node-pre-gyp -v v0.5.9 node-pre-gyp ERR! not ok npm ERR! sqlite3@2.2.3 install: node-pre-gyp install --fallback-to-build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sqlite3@2.2.3 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-pre-gyp install --fallback-to-build 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 Linux 2.6.32-431.el6.x86_64 npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "sqlite3" npm ERR! cwd /home/cme npm ERR! node -v v0.10.28 npm ERR! npm -v 1.4.9 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/cme/npm-debug.log npm ERR! not ok code 0

tieleman commented 10 years ago

Ok, so for your particular system (2.6.32-431.el6.x86_64) it seems the version of glibc (GNU C Library) is too old. The sqlite3 maintainers compiled it against 2.14, hence the error:

Error: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /home/cme/node_modules/sqlite3/lib/binding/node-v11-linux-x64/node_sqlite3.node)

I suggest you update glibc to a more recent version. It seems Red Hat Enterprise Linux 6 ships with 2.12 standard, which is apparently too old for sqlite3 (2.14 was released 2011-06-07).

vishnuprasad9633 commented 10 years ago

HI,

i have updated glibc using the command.

yum update glibc-*

and again i have the above issue

tieleman commented 10 years ago

I can't help you there unfortunately. And you should be extra careful when upgrading glibc as it may break compatibility with other software packages.

Maybe you should take it up with the sqlite3 maintainers and ask them how to install sqlite3 on your operating system (as it is an issue with sqlite3, not codem-transcode) or file a bug with them.

https://github.com/mapbox/node-sqlite3/issues

There appear to be several issues related to installation/compilation, see for example here:

https://github.com/mapbox/node-sqlite3/issues/244

This may also contain a solution to your problem, make sure you have a compiler installed and the required dev tools and it should recompile it for your system with your correct glibc version.

Hope this helps.

vishnuprasad9633 commented 10 years ago

I have tried to install codem-transcode in other system which have the same version of cent OS. i coud suucessfully install it and i checked glib, it shows it have version 2.12. i didnt get any issue while installing sqlite and codem.

tieleman commented 10 years ago

Then there is must be some other difference between those two OS installs. Make sure you have the same development packages installed on both systems. Like the issue (https://github.com/mapbox/node-sqlite3/issues/244) said: if you have the correct development tools installed, it will recompile sqlite3 even with an older glibc. I can't fix that for you. At the moment it seems that some compilation tools are missing from your system, so it won't recompile sqlite3.

vishnuprasad9633 commented 10 years ago

It is a newly installed OS :(

tieleman commented 10 years ago

Yes, and did you install the development tools?

# yum groupinstall 'Development Tools'
vishnuprasad9633 commented 10 years ago

I did . No change..

tieleman commented 10 years ago

I've tried to reproduce by performing a clean CentOS 6.5 64-bit install. Then I've followed the instructions here (https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager#rhelcentosscientific-linux-6) to perform the installation of NodeJS and NPM. After that I can simply say:

npm install codem-transcode -g

And it will install codem-transcode and build sqlite3. As can be seen:

npm list -g
[...]
├─┬ codem-transcode@0.5.4
│ ├── argsparser@0.0.6
│ ├── async@0.2.10
│ ├─┬ express@2.5.11
│ │ ├─┬ connect@1.9.2
│ │ │ └── formidable@1.0.14
│ │ ├── mime@1.2.4
│ │ ├── mkdirp@0.3.0
│ │ └── qs@0.4.2
[... etc ...]

So there might be something wrong with your install.

Have you contacted the sqlite3 developers for assistance? It is their package that is not building on your system.

vishnuprasad9633 commented 10 years ago

I have posted a new issue on their git account on the above error and waiting for their reply.

vishnuprasad9633 commented 10 years ago

HI,

Now the error is cleared.

They suggested me the post TooTallNate/node-gyp#363

And i tried this, Find the locally installed gyp python module that is causing problems 1) $ python -c 'import gyp; print gyp.file'

/usr/lib/python2.6/site-packages/gyp/init.pyc

Move or rename the folder so that python can't find it 2) $ mv /usr/lib/python2.6/site-packages/gyp /usr/lib/python2.6/site-packages/gyp_backup

Ensure that python can't find it 3) $ python -c 'import gyp; print gyp.file'

Traceback (most recent call last): File "", line 1, in ImportError: No module named gyp

Now its working

tieleman commented 10 years ago

Great!

angy4 commented 10 years ago

Begin forwarded message:

From: Sjoerd Tieleman notifications@github.com Subject: Re: [codem-transcode] Error While Installing Codem Transcode (#27) Date: May 21, 2014 at 9:17:18 AM GMT+2 To: madebyhiro/codem-transcode codem-transcode@noreply.github.com Reply-To: madebyhiro/codem-transcode reply@reply.github.com Return-Path: noreply@github.com Content-Type: multipart/alternative; boundary="--==_mimepart_537c52fed5885_287d3fa2b95172a05488e"; charset=UTF-8

Closed #27.

— Reply to this email directly or view it on GitHub.

eivind-gjertsen commented 8 years ago

Hello people. I ran into much the same problem, but was not able resolve this following your instructions. So, here is what I have so far.

I run ################################################################################## GOMACRED-ITTEST:~ User$ sudo npm install codem-transcode -g npm WARN deprecated sequelize@1.6.0: critical security fix in v3.0.0 npm WARN engine sqlite3@2.2.4: wanted: {"node":">= 0.8.0 < 0.13.0"} (current: {"node":"4.2.1","npm":"2.14.7"}) npm WARN deprecated lingo@0.0.5: This project is abandoned npm WARN deprecated set-immediate@0.1.1: Use setimmediate instead

sqlite3@2.2.4 install /usr/local/lib/node_modules/codem-transcode/node_modules/sqlite3 node-pre-gyp install --fallback-to-build

(node) child_process: options.customFds option is deprecated. Use options.stdio instead. xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3080500/sqlite3.c TOUCH Release/obj.target/deps/action_before_build.stamp CC(target) Release/obj.target/sqlite3/gen/sqlite-autoconf-3080500/sqlite3.o Release/obj/gen/sqlite-autoconf-3080500/sqlite3.c:8542:26: warning: unused variable 'sqlite3one' [-Wunused-const-variable] SQLITE_PRIVATE const int sqlite3one = 1; ^ 1 warning generated. LIBTOOL-STATIC Release/sqlite3.a CXX(target) Release/obj.target/node_sqlite3/src/database.o In file included from ../src/database.cc:5: In file included from ../src/database.h:11: ../node_modules/nan/nan.h:335:68: error: too many arguments to function call, expected at most 2, have 4 return v8::Signature::New(v8::Isolate::GetCurrent(), receiver, argc, argv);


/Users/user/.node-gyp/4.2.1/include/node/v8.h:4675:3: note: 'New' declared here
  static Local<Signature> New(
  ^
In file included from ../src/database.cc:5:
In file included from ../src/database.h:11:
../node_modules/nan/nan.h:417:3: error: redefinition of 'NanNew'
  NanNew<v8::StringObject, v8::Handle<v8::String> >(
  ^
../node_modules/nan/nan.h:410:3: note: previous definition is here
  NanNew<v8::StringObject, v8::Local<v8::String> >(
  ^
../node_modules/nan/nan.h:435:36: error: redefinition of 'NanNew'
  NAN_INLINE v8::Localv8::RegExp NanNew(
                                   ^
../node_modules/nan/nan.h:429:36: note: previous definition is here
  NAN_INLINE v8::Localv8::RegExp NanNew(
                                   ^
../node_modules/nan/nan.h:447:36: error: redefinition of 'NanNew'
  NAN_INLINE v8::Localv8::RegExp NanNew(
                                   ^
../node_modules/nan/nan.h:441:36: note: previous definition is here
  NAN_INLINE v8::Localv8::RegExp NanNew(
                                   ^
../node_modules/nan/nan.h:616:19: error: no type named
      'ExternalAsciiStringResource' in 'v8::String'; did you mean
      'ExternalStringResource'?
      v8::String::ExternalAsciiStringResource *resource) {
      ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
                  ExternalStringResource
/Users/user/.node-gyp/4.2.1/include/node/v8.h:2210:19: note: 
      'ExternalStringResource' declared here
  class V8_EXPORT ExternalStringResource
                  ^
In file included from ../src/database.cc:5:
In file included from ../src/database.h:11:
../node_modules/nan/nan.h:615:36: error: redefinition of 'NanNew'
  NAN_INLINE v8::Localv8::String NanNew(
                                   ^
../node_modules/nan/nan.h:610:36: note: previous definition is here
  NAN_INLINE v8::Localv8::String NanNew(
                                   ^
../node_modules/nan/nan.h:630:27: error: redefinition of '_NanEscapeScopeHelper'
  NAN_INLINE v8::Local<T> _NanEscapeScopeHelper(v8::Local<T> val) {
                          ^
../node_modules/nan/nan.h:625:27: note: previous definition is here
  NAN_INLINE v8::Local<T> _NanEscapeScopeHelper(v8::Handle<T> val) {
                          ^
../node_modules/nan/nan.h:646:12: error: no matching function for call to
      '_NanEscapeScopeHelper'
    return NanEscapeScope(NanNew(v8::Undefined(v8::Isolate::GetCurrent())));
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:634:43: note: expanded from macro 'NanEscapeScope'

# define NanEscapeScope(val) scope.Escape(_NanEscapeScopeHelper(val))

```
                                      ^~~~~~~~~~~~~~~~~~~~~
```

../node_modules/nan/nan.h:630:27: note: candidate template ignored: substitution
      failure [with T = v8::Primitive]
  NAN_INLINE v8::Local<T> _NanEscapeScopeHelper(v8::Local<T> val) {
                          ^
../node_modules/nan/nan.h:651:12: error: no matching function for call to
      '_NanEscapeScopeHelper'
    return NanEscapeScope(NanNew(v8::Null(v8::Isolate::GetCurrent())));
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:634:43: note: expanded from macro 'NanEscapeScope'

# define NanEscapeScope(val) scope.Escape(_NanEscapeScopeHelper(val))

```
                                      ^~~~~~~~~~~~~~~~~~~~~
```

../node_modules/nan/nan.h:630:27: note: candidate template ignored: substitution
      failure [with T = v8::Primitive]
  NAN_INLINE v8::Local<T> _NanEscapeScopeHelper(v8::Local<T> val) {
                          ^
../node_modules/nan/nan.h:656:12: error: no matching function for call to
      '_NanEscapeScopeHelper'
    return NanEscapeScope(NanNew(v8::True(v8::Isolate::GetCurrent())));
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:634:43: note: expanded from macro 'NanEscapeScope'

# define NanEscapeScope(val) scope.Escape(_NanEscapeScopeHelper(val))

```
                                      ^~~~~~~~~~~~~~~~~~~~~
```

../node_modules/nan/nan.h:630:27: note: candidate template ignored: substitution
      failure [with T = v8::Boolean]
  NAN_INLINE v8::Local<T> _NanEscapeScopeHelper(v8::Local<T> val) {
                          ^
../node_modules/nan/nan.h:661:12: error: no matching function for call to
      '_NanEscapeScopeHelper'
    return NanEscapeScope(NanNew(v8::False(v8::Isolate::GetCurrent())));
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:634:43: note: expanded from macro 'NanEscapeScope'

# define NanEscapeScope(val) scope.Escape(_NanEscapeScopeHelper(val))

```
                                      ^~~~~~~~~~~~~~~~~~~~~
```

../node_modules/nan/nan.h:630:27: note: candidate template ignored: substitution
      failure [with T = v8::Boolean]
  NAN_INLINE v8::Local<T> _NanEscapeScopeHelper(v8::Local<T> val) {
                          ^
../node_modules/nan/nan.h:878:13: error: no member named 'smalloc' in namespace
      'node'
    , node::smalloc::FreeCallback callback
      ~~~~~~^
../node_modules/nan/nan.h:889:12: error: no matching function for call to 'New'
    return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
           ^~~~~~~~~~~~~~~~~
/Users/user/.node-gyp/4.2.1/include/node/node_buffer.h:31:40: note: candidate
      function not viable: no known conversion from 'uint32_t'
      (aka 'unsigned int') to 'enum encoding' for 3rd argument
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate\* isolate,
                                       ^
/Users/user/.node-gyp/4.2.1/include/node/node_buffer.h:43:40: note: candidate
      function not viable: 2nd argument ('const char _') would lose const
      qualifier
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate_ isolate,
                                       ^
/Users/user/.node-gyp/4.2.1/include/node/node_buffer.h:28:40: note: candidate
      function not viable: requires 2 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate\* isolate, size_t length);
                                       ^
/Users/user/.node-gyp/4.2.1/include/node/node_buffer.h:36:40: note: candidate
      function not viable: requires 5 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate\* isolate,
                                       ^
In file included from ../src/database.cc:5:
In file included from ../src/database.h:11:
../node_modules/nan/nan.h:893:12: error: no viable conversion from
      'v8::MaybeLocalv8::Object' to 'v8::Localv8::Object'
    return node::Buffer::New(v8::Isolate::GetCurrent(), size);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/user/.node-gyp/4.2.1/include/node/v8.h:210:7: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from
      'v8::MaybeLocalv8::Object' to 'const v8::Localv8::Object &' for 1st
      argument
class Local {
      ^
/Users/user/.node-gyp/4.2.1/include/node/v8.h:210:7: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from
      'v8::MaybeLocalv8::Object' to 'v8::Localv8::Object &&' for 1st
      argument
class Local {
      ^
/Users/user/.node-gyp/4.2.1/include/node/v8.h:214:13: note: candidate template
      ignored: could not match 'Local' against 'MaybeLocal'
  V8_INLINE Local(Local<S> that)
            ^
/Users/user/.node-gyp/4.2.1/include/node/v8.h:326:13: note: candidate template
      ignored: could not match 'S _' against 'v8::MaybeLocalv8::Object'
  V8_INLINE Local(S_ that)
            ^
In file included from ../src/database.cc:5:
In file included from ../src/database.h:11:
../node_modules/nan/nan.h:900:26: error: no member named 'Use' in namespace
      'node::Buffer'
    return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
           ~~~~~~~~~~~~~~^
../node_modules/nan/nan.h:1680:12: error: no matching function for call to
      '_NanEscapeScopeHelper'
    return NanEscapeScope(NanNew(handle)->Get(kCallbackIndex)
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:634:43: note: expanded from macro 'NanEscapeScope'

# define NanEscapeScope(val) scope.Escape(_NanEscapeScopeHelper(val))

```
                                      ^~~~~~~~~~~~~~~~~~~~~
```

../node_modules/nan/nan.h:630:27: note: candidate template ignored: substitution
      failure [with T = v8::Function]
  NAN_INLINE v8::Local<T> _NanEscapeScopeHelper(v8::Local<T> val) {
                          ^
../node_modules/nan/nan.h:1767:12: error: no matching function for call to
      '_NanEscapeScopeHelper'
    return NanEscapeScope(handle->Get(NanNew(key)).Asv8::Object());
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:634:43: note: expanded from macro 'NanEscapeScope'

# define NanEscapeScope(val) scope.Escape(_NanEscapeScopeHelper(val))

```
                                      ^~~~~~~~~~~~~~~~~~~~~
```

../node_modules/nan/nan.h:630:27: note: candidate template ignored: substitution
      failure [with T = v8::Object]
  NAN_INLINE v8::Local<T> _NanEscapeScopeHelper(v8::Local<T> val) {
                          ^
../node_modules/nan/nan.h:1973:12: error: no member named 'IsExternalAscii' in
      'v8::String'; did you mean 'IsExternal'?
  if (str->IsExternalAscii()) {
           ^~~~~~~~~~~~~~~
           IsExternal
/Users/user/.node-gyp/4.2.1/include/node/v8.h:2174:8: note: 'IsExternal'
      declared here
  bool IsExternal() const;
       ^
In file included from ../src/database.cc:5:
In file included from ../src/database.h:11:
../node_modules/nan/nan.h:1974:23: error: no type named
      'ExternalAsciiStringResource' in 'v8::String'; did you mean
      'ExternalStringResource'?
    const v8::String::ExternalAsciiStringResource\* ext;
          ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
                      ExternalStringResource
/Users/user/.node-gyp/4.2.1/include/node/v8.h:2210:19: note: 
      'ExternalStringResource' declared here
  class V8_EXPORT ExternalStringResource
                  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: **\* [Release/obj.target/node_sqlite3/src/database.o] Error 1
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:270:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 14.5.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--name=sqlite3" "--configuration=Release" "--module_name=node_sqlite3" "--version=2.2.4" "--major=2" "--minor=2" "--patch=4" "--runtime=node" "--node_abi=node-v46" "--platform=darwin" "--target_platform=darwin" "--arch=x64" "--target_arch=x64" "--module_main=./lib/sqlite3" "--host=https://node-sqlite3.s3.amazonaws.com/" "--module_path=/usr/local/lib/node_modules/codem-transcode/node_modules/sqlite3/lib/binding/node-v46-darwin-x64" "--remote_path=./Release/" "--package_name=node_sqlite3-v2.2.4-node-v46-darwin-x64.tar.gz" "--staged_tarball=build/stage/Release/node_sqlite3-v2.2.4-node-v46-darwin-x64.tar.gz" "--hosted_path=https://node-sqlite3.s3.amazonaws.com/Release/" "--hosted_tarball=https://node-sqlite3.s3.amazonaws.com/Release/node_sqlite3-v2.2.4-node-v46-darwin-x64.tar.gz"
gyp ERR! cwd /usr/local/lib/node_modules/codem-transcode/node_modules/sqlite3
gyp ERR! node -v v4.2.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node rebuild --name=sqlite3 --configuration=Release --module_name=node_sqlite3 --version=2.2.4 --major=2 --minor=2 --patch=4 --runtime=node --node_abi=node-v46 --platform=darwin --target_platform=darwin --arch=x64 --target_arch=x64 --module_main=./lib/sqlite3 --host=https://node-sqlite3.s3.amazonaws.com/ --module_path=/usr/local/lib/node_modules/codem-transcode/node_modules/sqlite3/lib/binding/node-v46-darwin-x64 --remote_path=./Release/ --package_name=node_sqlite3-v2.2.4-node-v46-darwin-x64.tar.gz --staged_tarball=build/stage/Release/node_sqlite3-v2.2.4-node-v46-darwin-x64.tar.gz --hosted_path=https://node-sqlite3.s3.amazonaws.com/Release/ --hosted_tarball=https://node-sqlite3.s3.amazonaws.com/Release/node_sqlite3-v2.2.4-node-v46-darwin-x64.tar.gz' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/codem-transcode/node_modules/sqlite3/node_modules/node-pre-gyp/lib/util/compile.js:76:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:87:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:818:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
node-pre-gyp ERR! System Darwin 14.5.0
node-pre-gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/codem-transcode/node_modules/sqlite3/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/local/lib/node_modules/codem-transcode/node_modules/sqlite3
node-pre-gyp ERR! node -v v4.2.1
node-pre-gyp ERR! node-pre-gyp -v v0.5.19
node-pre-gyp ERR! not ok 
Failed to execute '/usr/local/bin/node rebuild --name=sqlite3 --configuration=Release --module_name=node_sqlite3 --version=2.2.4 --major=2 --minor=2 --patch=4 --runtime=node --node_abi=node-v46 --platform=darwin --target_platform=darwin --arch=x64 --target_arch=x64 --module_main=./lib/sqlite3 --host=https://node-sqlite3.s3.amazonaws.com/ --module_path=/usr/local/lib/node_modules/codem-transcode/node_modules/sqlite3/lib/binding/node-v46-darwin-x64 --remote_path=./Release/ --package_name=node_sqlite3-v2.2.4-node-v46-darwin-x64.tar.gz --staged_tarball=build/stage/Release/node_sqlite3-v2.2.4-node-v46-darwin-x64.tar.gz --hosted_path=https://node-sqlite3.s3.amazonaws.com/Release/ --hosted_tarball=https://node-sqlite3.s3.amazonaws.com/Release/node_sqlite3-v2.2.4-node-v46-darwin-x64.tar.gz' (1)
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "codem-transcode" "-g"
npm ERR! node v4.2.1
npm ERR! npm  v2.14.7
npm ERR! code ELIFECYCLE

npm ERR! sqlite3@2.2.4 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the sqlite3@2.2.4 install script 'node-pre-gyp install --fallback-to-build'.
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-pre-gyp install --fallback-to-build
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! Please include the following file with any support request:
npm ERR!     /Users/user/npm-debug.log
##############################################################################

I then followed your reasoning, and tried to install sqlite3 separately. Which turns out to be working quite well. 

#############################################################################
 BGOMACRED-ITTEST:~ User$ sudo npm install sqlite3 -g

> sqlite3@3.1.0 install /usr/local/lib/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build

[sqlite3] Success: "/usr/local/lib/node_modules/sqlite3/lib/binding/node-v46-darwin-x64/node_sqlite3.node" is installed via remote
sqlite3@3.1.0 /usr/local/lib/node_modules/sqlite3
└── nan@2.0.9
##############################################################################

I the continued to try out changing the the poposition of changing the name of the py file
 /quote And i tried this,
Find the locally installed gyp python module that is causing problems
1) $ python -c 'import gyp; print gyp.file'
/ unquote

but, not to much to my surprise, I do not even have the python folder in the Library folder. At the same time, I do not see how it is related to the fact that there is a problem with sqlite3 script. 

I am quite new to Mac, so my skill level is really not grand.
tieleman commented 8 years ago

Which version of OS X are you using, and is it a clean install? How did you install NodeJS (official packages from vendor?)?

eivind-gjertsen commented 8 years ago

I'm using OS X Yosemite 10.10.5

I installed Node.js trough the website https://nodejs.org/en/download/ and chose Macintosh installer.

tieleman commented 8 years ago

Ok, I will try and verify on a clean install later today.

tieleman commented 8 years ago

Currently codem-transcode is not supported on the newest versions on NodeJS. The recent io.js merge changed quite a bit and I haven't had any time to update/verify it. I recommend installing an older (0.10.x) build of NodeJS, the latest which can be downloaded here:

https://nodejs.org/download/release/v0.10.40/

Download the .pkg file to get an easy OS X installer. After that (and provided you have Xcode installed) you should be fine.

eivind-gjertsen commented 8 years ago

After uninstalling node.js, and then getting the node-v0.10.40.pkg installation in. I made sure to have all the prerequisites, after getting sqlite3 BGOMACRED-ITTEST:~ User$ npm install sqlite3 npm WARN package.json lingo@0.0.5 No repository field. \

sqlite3@3.1.1 install /Users/user/node_modules/sqlite3 node-pre-gyp install --fallback-to-build

[sqlite3] Success: "/Users/user/node_modules/sqlite3/lib/binding/node-v11-darwin-x64/node_sqlite3.node" is installed via remote sqlite3@3.1.1 node_modules/sqlite3

After then running npm install codem-transcode

BGOMACRED-ITTEST:~ User$ npm install codem-transcode npm WARN package.json lingo@0.0.5 No repository field. npm WARN deprecated sequelize@1.6.0: critical security fix in v3.0.0 npm WARN deprecated set-immediate@0.1.1: Use setimmediate instead

sqlite3@2.2.7 install /Users/user/node_modules/codem-transcode/node_modules/sqlite3 node-pre-gyp install --fallback-to-build

[sqlite3] Success: "/Users/user/node_modules/codem-transcode/node_modules/sqlite3/lib/binding/node-v11-darwin-x64/node_sqlite3.node" is installed via remote codem-transcode@0.5.10 node_modules/codem-transcode ├── async@0.2.10 ├── mkdirp@0.3.5 ├── express@2.5.11 (qs@0.4.2, mime@1.2.4, mkdirp@0.3.0, connect@1.9.2) ├── sequelize@1.6.0 (generic-pool@1.0.9, dottie@0.0.6-1, commander@0.6.1, underscore@1.4.4, validator@0.4.28, underscore.string@2.3.3, moment@1.7.2) └── sqlite3@2.2.7 (set-immediate@0.1.1, nan@1.1.2)

I see many warnings.

I then go onto starting up the server by selecting it from Finder. Whereas I end up with an infinite log reference error:

Last login: Wed Nov 4 14:35:04 on ttys000 BGOMACRED-ITTEST:~ User$ /opt/codem-transcoder/codem-transcoder/bin/codem-transcode ; exit; 4 Nov 14:35:14 - Started server on interface 127.0.0.1 port 8080 with pid 33745. 4 Nov 14:35:14 - Caught exception: Error: SQLITE_CANTOPEN: unable to open database file 4 Nov 14:35:14 - Error while logging to access_log. Error: EACCES, open '/var/log/access_log' 4 Nov 14:35:14 - Error while logging to access_log. Error: EACCES, open '/var/log/access_log' 4 Nov 14:35:14 - Error while logging to access_log. Error: EACCES, open '/var/log/access_log' 4 Nov 14:35:14 - Error while logging to access_log. Error: EACCES, open '/var/log/access_log ...

To check to see if sqlite3 is really installed I try to run it from Terminal:

BGOMACRED-ITTEST:~ User$ sqlite3 ex1 SQLite version 3.8.5 2014-08-15 22:37:57 Enter ".help" for usage hints. sqlite>

I have a feeling this might have something to do with sqlite3, but not sure where to start.

tieleman commented 8 years ago

From your log I can see that it is installed correctly, but you cannot just start the server by double-clicking it. You need to specify a config file to use or run it as root, because it cannot write to your database and log files right now. Please refer to the README for information on how to run/config it.

https://github.com/madebyhiro/codem-transcode#configuration

eivind-gjertsen commented 8 years ago

I find my config file at ..//Users/user/node_modules/codem-transcode/lib/config.js

The config looks like this

{ port: 8080, access_log: '/var/log/access_log', database: { dialect: "sqlite", database: '/var/db/jobs.db' }, slots: os.cpus().length, interface: "127.0.0.1", encoder: "ffmpeg", scratch_dir: "/tmp", use_scratch_dir: true, ffprobe: null };

The documentation does not say where to reference anything, or even if I need to reference to a new database. My installation is as given by by the instruction, allthough, not global. Even though, the configuration section in the README file, does explain what each of the parameters represent, it does not explain where standard installation refers their database, or even if that exists.

What exactly changes do I have to make, in order to refer to the right tables and setups?

tieleman commented 8 years ago

That is not your config file, that is the defaults config that is present in the source code. You should provide your own valid JSON file containing those things that you want to override, for example, since your log file and database file are in a location that you as a user cannot write, you might want to change those, i.e.:

{
  "database": "/tmp/jobs.db",
  "access_log": "/tmp/access_log"
}

Those locations should be accessible to your user (or store them somewhere in your own home folder).

Then start codem-transcode with:

# codem-transcode -c /path/to/your/config.json
eivind-gjertsen commented 8 years ago

So I deleted the codem installation, and installed it globaly again using #sudo npm install codem-transcode -g

It was placed in the folder /usr/locale/lib/node_modules/codem-transcode/bin/codem-transcode. I accessed the global folder, and created three additional folders, db, log and encoders, and copied the ffmpeg encoder/server/probe from another folder. Then I updated the config file, that was in the same folder as codem-transcode to look like this picture:

skjermbilde 2015-11-05 kl 12 13 09

When I try to run it from Terminal, I don't get an error, but it does not run either.