Tag: freebsd

节点-v 0.6.19。 libxmljs。 TypeError:无法读取未定义的属性“原型”

在Ubuntu 11.10上,安装了libxml2(2.7.8)和libxml2-dev的节点为0.6.17,0.6.18和0.6.19,一切正常。 在节点为0.6.19的FreeBSD服务器上,使用libxml2版本20708(xmllint –version; xmllint:使用libxml版本20708),它会提供以下错误消息: /home/pathtofile/www/node_modules/libxmljs/lib/element.js:24 Element.prototype = bindings.Element.prototype; ^ TypeError: Cannot read property 'prototype' of undefined at Object. (/home/pathtofile/www/node_modules/libxmljs/lib/element.js:24:37) at Module._compile (module.js:446:26) at Object..js (module.js:464:10) at Module.load (module.js:353:31) at Function._load (module.js:311:12) at Module.require (module.js:359:17) at require (module.js:375:17) at Object. (/home/pathtofile/www/node_modules/libxmljs/lib/document.js:3:15) at Module._compile (module.js:446:26) at Object..js (module.js:464:10)

Nodejs v0.10.x(freebsd)“X509_STORE_add_cert:cert已经在哈希表中”

我正在使用asynchronousWeb API,并且在nodejs版本比v0.8.9高 $ uname -a FreeBSD home 9.1-STABLE FreeBSD 9.1-STABLE#0:Fri Feb 1 10:38:27 EET 2013 root @ home:/ usr / obj / usr / src / sys / HOME amd64 $ node -v v0.10.0 $ node ./client.js events.js:72 throw er; // Unhandled 'error' event ^ Error: 34401711104:error:0B07C065:x509 certificate routines:X509_STORE_add_cert:cert already in hash table:../deps/openssl/openssl/crypto/x509/x509_lu.c:357: 34401711104:error:0B07C065:x509 certificate […]

npm在FreeBSD 10.1上安装canvas

任何人都可以告诉这是怎么回事? cairo-1.12.18_1,2已安装。 我尝试export PKG_CONFIG_PATH=/usr/local/libdata/pkgconfig无济于事: # uname -a FreeBSD test 10.1-RELEASE FreeBSD 10.1-RELEASE #0 r274401: Tue Nov 11 21:02:49 UTC 2014 # npm install canvas / > canvas@1.1.6 install /usr/home/www/myapp/node_modules/canvas > node-gyp rebuild ./util/has_cairo_freetype.sh: line 4: pkg-config: command not found gyp: Call to './util/has_cairo_freetype.sh' returned exit status 0. while trying to load binding.gyp gyp ERR! configure […]

使用node.js插件提升库 – segfault

的package.json: { "name": "BoostRegexJS", "version": "0.0.1", "description": "Boost::Regex API for node.js", "main": "regex.js", "private": true, "dependencies": { "bindings": "~1.2.1", "nan": "^2.0.0" }, "scripts": { "test": "node regex.js" }, "gypfile": true } bindings.gyp { "targets": [ { "target_name": "boostregex", "sources": [ "regex.cpp" ], "include_dirs": [ "~/boost/include", "<!(node -e \"require('nan')\")" ], "libraries": [ "~/boost/lib/libboost_regex.so" ], "cflags_cc!": [ […]

在FreeBSD Jail中创build一个npm脚本自动启动

我已经在FreeNAS 9.10的JAIL上安装了一个npm包/脚本。 (基于FreeBSD)如果我在安装脚本的目录中运行“npm start”,那么它是完美的。 不过,我需要这个在监狱开始时自动启动。 我现在不知道这样做。 我需要创build一个rc脚本吗? 基本上所有我需要做的是在启动时在正确的目录中给“npm start”。 我怎么做? 谢谢