[英]Oracle module installation on Server 2008 node js: specified procedure could not be found
After I worked a lot with the oracle module on my notebook and a VM, I tried installing it on the server. 在笔记本和VM上使用oracle模块进行了大量工作之后,我尝试将其安装在服务器上。 The server runs Windows Server 2008, R2 x64.
该服务器运行Windows Server 2008 R2 x64。 After many problems the installation works.
经过许多问题后,安装工作正常。 Only a few warnings, no errors.
只有几个警告,没有错误。 Now i wanted to start my node js file.
现在我想启动我的节点js文件。 It works fine on my notebook, but not on the server.
它可以在我的笔记本上正常工作,但不能在服务器上工作。 It shows the following error:
它显示以下错误:
C:\Users\sgrzbielok\node>node httpstream.js
module.js:356
Module._extensions[extension](this, filename);
^
Error: The specified procedure could not be found.
C:\Users\sgrzbielok\node\node_modules\oracle\build\Release\oracle_bindings.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 Object.<anonymous> (C:\Users\sgrzbielok\node\node_modules\oracle\lib\orac
le.js:2:16)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
Googled the error but could not find a solution. 搜索错误,但找不到解决方案。 Can anyone help?
有人可以帮忙吗?
I ran into the same problem today on a windows 2008 R2 x64 server when attempting to reinstall node-oracle. 今天,当我尝试重新安装node-oracle时,在Windows 2008 R2 x64服务器上遇到了相同的问题。 It meant that oracle_bindings.node wasn't built correctly.
这意味着oracle_bindings.node的构建不正确。 For some reason, node-gyp didn't download all of its dependencies when I installed it with
npm install -g node-gyp
. 出于某种原因,当我使用
npm install -g node-gyp
时,并未下载其所有依赖项。 Check the C:\\Users\\<username>\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\node_modules\\
directory of your working setup (ie the notebook and/or VM). 检查工作设置(即笔记本和/或VM)的
C:\\Users\\<username>\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\node_modules\\
目录。 You should see node-gyp's dependencies: .bin, fstream, glob, graceful-fs, etc. Either install all of those modules onto the 2008 server, one-by-one, or just copy all of the module folders to the same destination on the 2008 server. 您应该看到node-gyp的依赖项: .bin,fstream,glob,graceful-fs等。要么将所有这些模块一张一张地安装到2008服务器上,要么将所有模块文件夹复制到同一目标位置在2008服务器上。 I then uninstalled and reinstalled node-oracle and it worked.
然后,我卸载并重新安装了node-oracle,它起作用了。
If node-gyp doesn't seem to be the issue, make sure that your PATH variable has the Instant Client listed ahead of your actual Oracle path: 如果似乎不是node-gyp的问题,请确保您的PATH变量在您的实际Oracle路径之前列出了Instant Client。
Path=C:\\instantclient_12_1\\vc10;C:\\instantclient_12_1\\;C:\\oracle\\product\\11.2.0\\dbhome_1\\bin;%PATH%
However, the path-order issue is more akin to the "Error: The specified
module could not be found."
但是,路径顺序问题更类似于
"Error: The specified
could not be found."
"Error: The specified
模块 could not be found."
message. 信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.