- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
在Windows 7/8上编译oracle似乎有很多类似的问题,但大多数都与没有设置Python或OCI环境变量有关。我已经这样做了两天了,没有运气。希望有人能提供一些建议...
Windows 7,32 位
GNU bash v3.1.0(1)
Node v0.10.29
NPM v1.4.14
Oracle InstantClient 12.1.0.1.0
Python 2.7.5
Visual Studio 2012 Express 桌面版
我设置了以下变量:
OCI_VERSION=12 <-- Tried (10,11 and 12)
OCI_LIB_DIR=C:\InstantClient\sdk\lib\msvc\vc11
OCI_INCLUDE_DIR=C:\InstantClient\sdk\include
PATH= ...<existing path>;C:\InstantClient\vc11;C:\InstantClient\
我设置了npm config set python C:\Python27
我确认未设置 PYTHON 环境变量。 (虽然我之前尝试过设置它)
这是我得到的:
$ npm install oracle
-
> oracle@0.3.7 install c:\Sites\new\node_modules\oracle
> node-gyp rebuild
c:\Sites\new\node_modules\oracle>node "c:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild \
gyp ERR! configure error
gyp ERR! stack Error: spawn ENOENT
gyp ERR! stack at errnoException (child_process.js:1000:11)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:791:34)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "c:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd c:\Sites\new\node_modules\oracle
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.13.1
gyp ERR! not ok
npm ERR! oracle@0.3.7 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the oracle@0.3.7 install script.
npm ERR! This is most likely a problem with the oracle package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls oracle
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "oracle"
npm ERR! cwd c:\Sites\new
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! c:\Sites\new\npm-debug.log
npm ERR! not ok code 0
这是 npm-debug.log 的尾部。
103 info preinstall oracle@0.3.7
104 verbose readDependencies using package.json deps
105 verbose readDependencies using package.json deps
106 silly resolved []
107 verbose about to build c:\Sites\new\node_modules\oracle
108 info build c:\Sites\new\node_modules\oracle
109 verbose linkStuff [ false, false, false, 'c:\\Sites\\new\\node_modules' ]
110 info linkStuff oracle@0.3.7
111 verbose linkBins oracle@0.3.7
112 verbose linkMans oracle@0.3.7
113 verbose rebuildBundles oracle@0.3.7
114 info install oracle@0.3.7
115 verbose unsafe-perm in lifecycle true
116 info oracle@0.3.7 Failed to exec install script
117 info c:\Sites\new\node_modules\oracle unbuild
118 info preuninstall oracle@0.3.7
119 info uninstall oracle@0.3.7
120 verbose true,c:\Sites\new\node_modules,c:\Sites\new\node_modules unbuild oracle@0.3.7
121 info postuninstall oracle@0.3.7
122 error oracle@0.3.7 install: `node-gyp rebuild`
122 error Exit status 1
123 error Failed at the oracle@0.3.7 install script.
123 error This is most likely a problem with the oracle package,
123 error not with npm itself.
123 error Tell the author that this fails on your system:
123 error node-gyp rebuild
123 error You can get their info via:
123 error npm owner ls oracle
123 error There is likely additional logging output above.
124 error System Windows_NT 6.1.7601
125 error command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "oracle"
126 error cwd c:\Sites\new
127 error node -v v0.10.29
128 error npm -v 1.4.14
129 error code ELIFECYCLE
130 verbose exit [ 1, true ]
虽然我使用的是 git 附带的 GNU bash,但我也通过 Windows 命令提示符进行了尝试,得到了相同的结果。
我昨天在该项目的 github 页面上发布了此内容,但希望获得更广泛的受众,他们可能知道我在编译此模块时缺少什么。
最佳答案
这不是您问题的直接答案,但如果您熟悉 C#,可以选择在进程中调用 .NET 并利用 .NET 成熟的数据库生态系统。引用我的回答here .
关于node.js - NodeJS : npm install oracle, 无法在 Windows 7 32 位上编译,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24532858/
我是 Maven 新手,正在尝试了解它是如何工作的。 我知道生命周期由多个阶段组成。阶段称为他们的魔力。如果调用一个阶段,则前面的所有阶段也会执行。例如,当我调用 mvn install 时就会发生这
我想安装Ros(机器人操作系统)的驱动程序,我有两个选项:二进制安装和从源代码编译安装。我想知道哪种安装更好,每种安装有哪些优点和缺点。 最佳答案 源:又称源代码,通常位于某种 tarball 或 z
以及更具体的问题。我的理解对吗: “nuget install”总是安装到您运行它的目录吗? “choco install”安装到特殊的 choco 目录,然后运行脚本在系统中传播它? “nuget
我创建了 Android 项目,但随后我立即得到出现错误的信息。 Warning:(22, 12) Dependency on a support library, but the SDK insta
我的安装程序有 32 位和 64 位版本,它们具有(几乎)完全相同的代码和自定义操作序列(只有与此问题无关的细微差别) 我希望我的安装程序能够检测它之前是否已安装,并在这种情况下运行我自己的代码,而不
我在TFS版本中使用npm install cmd。我总是得到以下警告: npm WARN optional dep failed, continuing fsevents@0.3.1 如何删除此警告
是否可以将install(TARGETS ...)与在add_subdirectory添加的目录中定义的目标一起使用? 我的用例是,我想为gtest构建一个rpm的e.gg。 gtest项目恰好有一个
我需要使用 MSI 创建安装程序,其目的是根据用户的区域(从环境变量读取)调用正确的安装程序。也就是说,这个安装程序应该有 3 个文件(它们本身就是安装程序),一个用于美国,一个用于欧洲,一个用于亚洲
我正在尝试通过 Android Studio 3.5 在我的小米 RedMi S2 上运行我的应用程序。在手机上安装应用程序时抛出错误: Installation did not succeed. T
使用govendor时,go install、govendor install +local和govendor install +vendor,^program有什么区别? govendor inst
我用谷歌搜索了很多,但找不到答案。因此,在 Windows Installer 属性值中可以存储多少个字符。如果你给出答案,你能提供答案的来源吗? 最佳答案 我问 Windows Installer
Cuda v9.0 有几个补丁 我应该安装最新补丁还是安装所有补丁? https://developer.nvidia.com/cuda-90-download-archive?target_os=W
我正在尝试通过它的文档安装 phalcon!在这一步我有一个错误: installation/FreeBSD Command: pkg_add -r phalcon 错误: 'pkg_add' is
我有一个安装,如果应用程序退出,它会升级该应用程序的先前版本。当安装处于升级模式时,我想跳过某些操作。如何确定安装是在升级模式还是首次安装模式下运行? 我正在使用 Wise Installer,但我认
MSI 数据库包含一个表 MsiFileHash 。根据文档MsiFileHash 表用于存储 Windows Installer 包提供的源文件的 128 位哈希。 有人知道使用/应该使用什么哈希算
我尝试在本地和全局运行 npm install browserify (-g) 但我总是遇到以下错误 npm ERR! peerinvalid The package bn.js does not s
我有一个用于我正在构建的 python 模块的 SConstruct 文件: import distutils.sysconfig env = Environment(CPPPATH=['includ
使用 Installshield 2010 和 Basic MSI 项目。 我有一个之前由我的安装程序安装的 exe。该 exe 需要在安装程序升级期间运行。有没有办法保证安装程序不会尝试关闭进程?基
我是围棋初学者。我试图编译一个 go 项目,但找不到任何解释“/...”的文档或文章。 cd ~/src/ephenation-server go install -v ./... 等待您的帮助。 最
我试过在选择和不选择‘安装Mongo指南针’选项的情况下运行安装程序,但我仍然无法安装它,也无法取消安装。然后,此设置对话冻结20-30分钟以上,没有任何进展。这实际上就是从他们的website(ht
我是一名优秀的程序员,十分优秀!