jjzjj

node.js - SailsJS 安装 MongoDB 时出错(windows 8 x64)

coder 2023-10-29 原文

目前我的系统中安装了 MongoDB,它与我的 PHP 项目配合得很好。但是当我为 sailsjs 安装 mongodb 适配器时,它给了我一个错误

gyp 信息生成 args 'binding.gyp', gyp 信息 spawn args '-f', gyp 信息 spawn args 'msvs', gyp 信息 spawn args '-G', gyp 信息 spawn args 'msvs_version=2012', gyp 信息 spawn args '-I', gyp 信息 spawn args 'C:\\web\\app\\build\\config.gypi', gyp 信息 spawn args '-I', gyp 信息 spawn args 'C:\\Users\\Rusty Orange\\AppData\\Roaming\\npm\\node_modu les\\node-gyp\\addon.gypi', gyp 信息 spawn args '-I', gyp 信息生成参数 'C:\\Users\\Rusty Orange\\.node-gyp\\0.10.25\\common.gypi' , gyp 信息 spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=C:\\Users\\Rusty Orange\\.node-gyp\\0.10. 25', gyp 信息生成参数 '-Dmodule_root_dir=C:\\web\\app', gyp 信息 spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp 信息 spawn args 'C:\\web\\app\\build', gyp 信息 spawn args '-Goutput_dir=.' ] gyp:尝试加载 binding.gyp 时未找到 binding.gyp(cwd:C:\web\app) 吉普错误!配置错误 吉普错误!堆栈错误:gyp` 失败,退出代码:1 吉普错误!堆栈在 ChildProcess.onCpExit (C:\Users\Rusty Orange\AppData\Roami ng\npm\node_modules\node-gyp\lib\configure.js:343:16) 吉普错误!堆栈在 ChildProcess.EventEmitter.emit (events.js:98:17) 吉普错误!堆栈在 Process.ChildProcess._handle.onexit (child_process.js:797: 12) 吉普错误!系统 Windows_NT 6.2.9200 吉普错误!命令“Node ”“C:\Users\Rusty Orange\AppData\Roaming\npm\node_mo dules\node-gyp\bin\node-gyp.js""重建""--msvs_version=2012" 吉普错误! cwd C:\web\app 吉普错误! Node -v v0.10.25 吉普错误! Node gyp -v v1.0.2 吉普错误!不行

    C:\web\app>npm install sails-mongo -msvs_version=2012
    npm http GET https://registry.npmjs.org/sails-mongo
    npm http 304 https://registry.npmjs.org/sails-mongo
    npm http GET https://registry.npmjs.org/waterline-errors
    npm http GET https://registry.npmjs.org/mongodb/1.4.4
    npm http GET https://registry.npmjs.org/waterline-cursor
    npm http GET https://registry.npmjs.org/async
    npm http GET https://registry.npmjs.org/lodash
    npm http 304 https://registry.npmjs.org/lodash
    npm http 304 https://registry.npmjs.org/async
    npm http 304 https://registry.npmjs.org/waterline-cursor
    npm http 304 https://registry.npmjs.org/mongodb/1.4.4
    npm http 304 https://registry.npmjs.org/waterline-errors
    npm http GET https://registry.npmjs.org/kerberos/0.0.3
    npm http GET https://registry.npmjs.org/bson/0.2.8
    npm http 304 https://registry.npmjs.org/kerberos/0.0.3
    npm http 304 https://registry.npmjs.org/bson/0.2.8

    > kerberos@0.0.3 install C:\web\app\node_modules\sails-mongo\node_modules\mongod
    b\node_modules\kerberos
    > (node-gyp rebuild 2> builderror.log) || (exit 0)


    C:\web\app\node_modules\sails-mongo\node_modules\mongodb\node_modules\kerberos>n
    ode "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modul
    es\node-gyp\bin\node-gyp.js" rebuild
    Building the projects in this solution one at a time. To enable parallel build,
    please add the "/m" switch.
    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.t
    argets(64,5): error MSB8020: The build tools for Visual Studio 2012 (Platform T
    oolset = 'v110') cannot be found. To build using the v110 build tools, please i
    nstall Visual Studio 2012 build tools.  Alternatively, you may upgrade to the c
    urrent Visual Studio tools by selecting the Project menu or right-click the sol
    ution, and then selecting "Upgrade Solution...". [C:\web\app\node_modules\sails
    -mongo\node_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
    npm http GET https://registry.npmjs.org/nan
    npm http 304 https://registry.npmjs.org/nan

    > bson@0.2.8 install C:\web\app\node_modules\sails-mongo\node_modules\mongodb\no
    de_modules\bson
    > (node-gyp rebuild 2> builderror.log) || (exit 0)


    C:\web\app\node_modules\sails-mongo\node_modules\mongodb\node_modules\bson>node
    "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\n
    ode-gyp\bin\node-gyp.js" rebuild
    Building the projects in this solution one at a time. To enable parallel build,
    please add the "/m" switch.
    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.t
    argets(64,5): error MSB8020: The build tools for Visual Studio 2012 (Platform T
    oolset = 'v110') cannot be found. To build using the v110 build tools, please i
    nstall Visual Studio 2012 build tools.  Alternatively, you may upgrade to the c
    urrent Visual Studio tools by selecting the Project menu or right-click the sol
    ution, and then selecting "Upgrade Solution...". [C:\web\app\node_modules\sails
    -mongo\node_modules\mongodb\node_modules\bson\build\bson.vcxproj]
    sails-mongo@0.10.4 node_modules\sails-mongo
    ├── waterline-errors@0.10.0-rc1
    ├── async@0.8.0
    ├── waterline-cursor@0.0.5 (async@0.9.0)
    ├── lodash@2.4.1
    └── mongodb@1.4.4 (kerberos@0.0.3, bson@0.2.8)

    C:\web\app>npm install sails-mongo --save
    npm http GET https://registry.npmjs.org/sails-mongo
    npm http 304 https://registry.npmjs.org/sails-mongo
    npm http GET https://registry.npmjs.org/mongodb/1.4.4
    npm http GET https://registry.npmjs.org/async
    npm http GET https://registry.npmjs.org/waterline-cursor
    npm http GET https://registry.npmjs.org/lodash
    npm http GET https://registry.npmjs.org/waterline-errors
    npm http 304 https://registry.npmjs.org/waterline-errors
    npm http 304 https://registry.npmjs.org/mongodb/1.4.4
    npm http 304 https://registry.npmjs.org/waterline-cursor
    npm http 304 https://registry.npmjs.org/async
    npm http 304 https://registry.npmjs.org/lodash
    npm http GET https://registry.npmjs.org/bson/0.2.8
    npm http GET https://registry.npmjs.org/kerberos/0.0.3
    npm http 304 https://registry.npmjs.org/bson/0.2.8
    npm http 304 https://registry.npmjs.org/kerberos/0.0.3

    > kerberos@0.0.3 install C:\web\app\node_modules\sails-mongo\node_modules\mongod
    b\node_modules\kerberos
    > (node-gyp rebuild 2> builderror.log) || (exit 0)


    C:\web\app\node_modules\sails-mongo\node_modules\mongodb\node_modules\kerberos>n
    ode "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modul
    es\node-gyp\bin\node-gyp.js" rebuild
    Building the projects in this solution one at a time. To enable parallel build,
    please add the "/m" switch.
      kerberos.cc
      worker.cc
      security_credentials.cc
      security_buffer.cc
    C:\Users\Rusty Orange\.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C450
    6: no definition for inline function 'v8::Persistent<v8::Object> v8::Persistent
    <v8::Object>::New(v8::Handle<v8::Object>)' (..\lib\win32\worker.cc) [C:\web\app
    \node_modules\sails-mongo\node_modules\mongodb\node_modules\kerberos\build\kerb
    eros.vcxproj]
      security_buffer_descriptor.cc
    C:\Users\Rusty Orange\.node-gyp\0.10.25\deps\v8\include\v8.h(184): warning C450
    6: no definition for inline function 'v8::Persistent<v8::Object> v8::Persistent
    <v8::Object>::New(v8::Handle<v8::Object>)' (..\lib\win32\kerberos.cc) [C:\web\a
    pp\node_modules\sails-mongo\node_modules\mongodb\node_modules\kerberos\build\ke
    rberos.vcxproj]
    C:\Users\Rusty Orange\.node-gyp\0.10.25\deps\v8\include\v8.h(184): warning C450
    6: no definition for inline function 'v8::Persistent<v8::FunctionTemplate> v8::
    Persistent<v8::FunctionTemplate>::New(v8::Handle<v8::FunctionTemplate>)' (..\li
    b\win32\kerberos.cc) [C:\web\app\node_modules\sails-mongo\node_modules\mongodb\
    node_modules\kerberos\build\kerberos.vcxproj]
      security_context.cc
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocale(337): wa
    rning C4530: C++ exception handler used, but unwind semantics are not enabled.
    Specify /EHsc (..\lib\win32\wrappers\security_buffer.cc) [C:\web\app\node_modul
    es\sails-mongo\node_modules\mongodb\node_modules\kerberos\build\kerberos.vcxpro
    j]
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocale(337): wa
    rning C4530: C++ exception handler used, but unwind semantics are not enabled.
    Specify /EHsc (..\lib\win32\wrappers\security_credentials.cc) [C:\web\app\node_
    modules\sails-mongo\node_modules\mongodb\node_modules\kerberos\build\kerberos.v
    cxproj]
    C:\Users\Rusty Orange\.node-gyp\0.10.25\deps\v8\include\v8.h(218): warning C450
    6: no definition for inline function 'v8::Persistent<v8::Object> v8::Persistent
    <v8::Object>::New(v8::Handle<v8::Object>)' (..\lib\win32\wrappers\security_buff
    er.cc) [C:\web\app\node_modules\sails-mongo\node_modules\mongodb\node_modules\k
    erberos\build\kerberos.vcxproj]
    C:\Users\Rusty Orange\.node-gyp\0.10.25\deps\v8\include\v8.h(218): warning C450
    6: no definition for inline function 'v8::Persistent<v8::FunctionTemplate> v8::
    Persistent<v8::FunctionTemplate>::New(v8::Handle<v8::FunctionTemplate>)' (..\li
    b\win32\wrappers\security_buffer.cc) [C:\web\app\node_modules\sails-mongo\node_
    modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocale(337): wa
    rning C4530: C++ exception handler used, but unwind semantics are not enabled.
    Specify /EHsc (..\lib\win32\wrappers\security_buffer_descriptor.cc) [C:\web\app
    \node_modules\sails-mongo\node_modules\mongodb\node_modules\kerberos\build\kerb
    eros.vcxproj]
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocale(337): wa
    rning C4530: C++ exception handler used, but unwind semantics are not enabled.
    Specify /EHsc (..\lib\win32\wrappers\security_context.cc) [C:\web\app\node_modu
    les\sails-mongo\node_modules\mongodb\node_modules\kerberos\build\kerberos.vcxpr
    oj]
    C:\Users\Rusty Orange\.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C450
    6: no definition for inline function 'v8::Persistent<v8::Object> v8::Persistent
    <v8::Object>::New(v8::Handle<v8::Object>)' (..\lib\win32\wrappers\security_cred
    entials.cc) [C:\web\app\node_modules\sails-mongo\node_modules\mongodb\node_modu
    les\kerberos\build\kerberos.vcxproj]
    C:\Users\Rusty Orange\.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C450
    6: no definition for inline function 'v8::Persistent<v8::FunctionTemplate> v8::
    Persistent<v8::FunctionTemplate>::New(v8::Handle<v8::FunctionTemplate>)' (..\li
    b\win32\wrappers\security_credentials.cc) [C:\web\app\node_modules\sails-mongo\
    node_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
    C:\Users\Rusty Orange\.node-gyp\0.10.25\deps\v8\include\v8.h(218): warning C450
    6: no definition for inline function 'v8::Persistent<v8::Object> v8::Persistent
    <v8::Object>::New(v8::Handle<v8::Object>)' (..\lib\win32\wrappers\security_buff
    er_descriptor.cc) [C:\web\app\node_modules\sails-mongo\node_modules\mongodb\nod
    e_modules\kerberos\build\kerberos.vcxproj]
    C:\Users\Rusty Orange\.node-gyp\0.10.25\deps\v8\include\v8.h(218): warning C450
    6: no definition for inline function 'v8::Persistent<v8::FunctionTemplate> v8::
    Persistent<v8::FunctionTemplate>::New(v8::Handle<v8::FunctionTemplate>)' (..\li
    b\win32\wrappers\security_buffer_descriptor.cc) [C:\web\app\node_modules\sails-
    mongo\node_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
    C:\Users\Rusty Orange\.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C450
    6: no definition for inline function 'v8::Persistent<v8::Object> v8::Persistent
    <v8::Object>::New(v8::Handle<v8::Object>)' (..\lib\win32\wrappers\security_cont
    ext.cc) [C:\web\app\node_modules\sails-mongo\node_modules\mongodb\node_modules\
    kerberos\build\kerberos.vcxproj]
    C:\Users\Rusty Orange\.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C450
    6: no definition for inline function 'v8::Persistent<v8::FunctionTemplate> v8::
    Persistent<v8::FunctionTemplate>::New(v8::Handle<v8::FunctionTemplate>)' (..\li
    b\win32\wrappers\security_context.cc) [C:\web\app\node_modules\sails-mongo\node
    _modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
      kerberos_sspi.c
      base64.c
         Creating library C:\web\app\node_modules\sails-mongo\node_modules\mongodb\
      node_modules\kerberos\build\Release\kerberos.lib and object C:\web\app\node_m
      odules\sails-mongo\node_modules\mongodb\node_modules\kerberos\build\Release\k
      erberos.exp
      Generating code
      Finished generating code
      kerberos.vcxproj -> C:\web\app\node_modules\sails-mongo\node_modules\mongodb\
      node_modules\kerberos\build\Release\\kerberos.node
    npm http GET https://registry.npmjs.org/nan
    npm http 304 https://registry.npmjs.org/nan

    > bson@0.2.8 install C:\web\app\node_modules\sails-mongo\node_modules\mongodb\no
    de_modules\bson
    > (node-gyp rebuild 2> builderror.log) || (exit 0)


    C:\web\app\node_modules\sails-mongo\node_modules\mongodb\node_modules\bson>node
    "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\n
    ode-gyp\bin\node-gyp.js" rebuild
    Building the projects in this solution one at a time. To enable parallel build,
    please add the "/m" switch.
      bson.cc
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocale(337): wa
    rning C4530: C++ exception handler used, but unwind semantics are not enabled.
    Specify /EHsc [C:\web\app\node_modules\sails-mongo\node_modules\mongodb\node_mo
    dules\bson\build\bson.vcxproj]
    C:\web\app\node_modules\sails-mongo\node_modules\mongodb\node_modules\bson\node
    _modules\nan\nan.h(1103): warning C4267: 'initializing' : conversion from 'size
    _t' to 'int', possible loss of data [C:\web\app\node_modules\sails-mongo\node_m
    odules\mongodb\node_modules\bson\build\bson.vcxproj]
    C:\web\app\node_modules\sails-mongo\node_modules\mongodb\node_modules\bson\node
    _modules\nan\nan.h(1117): warning C4267: 'initializing' : conversion from 'size
    _t' to 'int', possible loss of data [C:\web\app\node_modules\sails-mongo\node_m
    odules\mongodb\node_modules\bson\build\bson.vcxproj]
    ..\ext\bson.cc(891): warning C4267: 'argument' : conversion from 'size_t' to 'u
    int32_t', possible loss of data [C:\web\app\node_modules\sails-mongo\node_modul
    es\mongodb\node_modules\bson\build\bson.vcxproj]
    C:\web\app\node_modules\sails-mongo\node_modules\mongodb\node_modules\bson\node
    _modules\nan\nan.h(950): warning C4244: 'argument' : conversion from 'int64_t'
    to 'double', possible loss of data [C:\web\app\node_modules\sails-mongo\node_mo
    dules\mongodb\node_modules\bson\build\bson.vcxproj]
              ..\ext\bson.cc(560) : see reference to function template instantiatio
      n 'v8::Local<v8::Number> NanNew<v8::Number,int64_t>(P)' being compiled
              with
              [
                  P=int64_t
              ]
    ..\ext\bson.cc(313): warning C4267: 'initializing' : conversion from 'size_t' t
    o 'uint32_t', possible loss of data [C:\web\app\node_modules\sails-mongo\node_m
    odules\mongodb\node_modules\bson\build\bson.vcxproj]
              ..\ext\bson.cc(142) : while compiling class template member function
      'void BSONSerializer<CountStream>::SerializeValue(void *,const v8::Handle<v8:
      :Value> &)'
              ..\ext\bson.cc(112) : see reference to function template instantiatio
      n 'void BSONSerializer<CountStream>::SerializeValue(void *,const v8::Handle<v
      8::Value> &)' being compiled
              ..\ext\bson.cc(92) : while compiling class template member function '
      void BSONSerializer<CountStream>::SerializeDocument(const v8::Handle<v8::Valu
      e> &)'
              ..\ext\bson.cc(869) : see reference to function template instantiatio
      n 'void BSONSerializer<CountStream>::SerializeDocument(const v8::Handle<v8::V
      alue> &)' being compiled
              ..\ext\bson.cc(868) : see reference to class template instantiation '
      BSONSerializer<CountStream>' being compiled
    C:\Users\Rusty Orange\.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C450
    6: no definition for inline function 'v8::Persistent<v8::Object> v8::Persistent
    <v8::Object>::New(v8::Handle<v8::Object>)' [C:\web\app\node_modules\sails-mongo
    \node_modules\mongodb\node_modules\bson\build\bson.vcxproj]
    C:\Users\Rusty Orange\.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C450
    6: no definition for inline function 'v8::Persistent<v8::FunctionTemplate> v8::
    Persistent<v8::FunctionTemplate>::New(v8::Handle<v8::FunctionTemplate>)' [C:\we
    b\app\node_modules\sails-mongo\node_modules\mongodb\node_modules\bson\build\bso
    n.vcxproj]
         Creating library C:\web\app\node_modules\sails-mongo\node_modules\mongodb\
      node_modules\bson\build\Release\bson.lib and object C:\web\app\node_modules\s
      ails-mongo\node_modules\mongodb\node_modules\bson\build\Release\bson.exp
      Generating code
      Finished generating code
      bson.vcxproj -> C:\web\app\node_modules\sails-mongo\node_modules\mongodb\node
      _modules\bson\build\Release\\bson.node
    sails-mongo@0.10.4 node_modules\sails-mongo
    ├── waterline-errors@0.10.0-rc1
    ├── async@0.8.0
    ├── waterline-cursor@0.0.5 (async@0.9.0)
    ├── lodash@2.4.1
    └── mongodb@1.4.4 (kerberos@0.0.3, bson@0.2.8)

    C:\web\app>`

是否与Visual Studio冲突?还是我遗漏了什么?

最佳答案

你系统上安装的是哪个版本的nodejs..这是sailjs版本与nodejs版本冲突时的错误。

检查所有的依赖关系,然后你就可以继续了。

您可以直接使用 nvm( Node 版本管理器)更改 nodejs 的版本。

祝你好运。

关于node.js - SailsJS 安装 MongoDB 时出错(windows 8 x64),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25840591/

有关node.js - SailsJS 安装 MongoDB 时出错(windows 8 x64)的更多相关文章

  1. ruby - 在 Ruby 程序执行时阻止 Windows 7 PC 进入休眠状态 - 2

    我需要在客户计算机上运行Ruby应用程序。通常需要几天才能完成(复制大备份文件)。问题是如果启用sleep,它会中断应用程序。否则,计算机将持续运行数周,直到我下次访问为止。有什么方法可以防止执行期间休眠并让Windows在执行后休眠吗?欢迎任何疯狂的想法;-) 最佳答案 Here建议使用SetThreadExecutionStateWinAPI函数,使应用程序能够通知系统它正在使用中,从而防止系统在应用程序运行时进入休眠状态或关闭显示。像这样的东西:require'Win32API'ES_AWAYMODE_REQUIRED=0x0

  2. ruby - ECONNRESET (Whois::ConnectionError) - 尝试在 Ruby 中查询 Whois 时出错 - 2

    我正在用Ruby编写一个简单的程序来检查域列表是否被占用。基本上它循环遍历列表,并使用以下函数进行检查。require'rubygems'require'whois'defcheck_domain(domain)c=Whois::Client.newc.query("google.com").available?end程序不断出错(即使我在google.com中进行硬编码),并打印以下消息。鉴于该程序非常简单,我已经没有什么想法了-有什么建议吗?/Library/Ruby/Gems/1.8/gems/whois-2.0.2/lib/whois/server/adapters/base.

  3. ruby - 在 64 位 Snow Leopard 上使用 rvm、postgres 9.0、ruby 1.9.2-p136 安装 pg gem 时出现问题 - 2

    我想为Heroku构建一个Rails3应用程序。他们使用Postgres作为他们的数据库,所以我通过MacPorts安装了postgres9.0。现在我需要一个postgresgem并且共识是出于性能原因你想要pggem。但是我对我得到的错误感到非常困惑当我尝试在rvm下通过geminstall安装pg时。我已经非常明确地指定了所有postgres目录的位置可以找到但仍然无法完成安装:$envARCHFLAGS='-archx86_64'geminstallpg--\--with-pg-config=/opt/local/var/db/postgresql90/defaultdb/po

  4. 使用 ACL 调用 upload_file 时出现 Ruby S3 "Access Denied"错误 - 2

    我正在尝试编写一个将文件上传到AWS并公开该文件的Ruby脚本。我做了以下事情:s3=Aws::S3::Resource.new(credentials:Aws::Credentials.new(KEY,SECRET),region:'us-west-2')obj=s3.bucket('stg-db').object('key')obj.upload_file(filename)这似乎工作正常,除了该文件不是公开可用的,而且我无法获得它的公共(public)URL。但是当我登录到S3时,我可以正常查看我的文件。为了使其公开可用,我将最后一行更改为obj.upload_file(file

  5. ruby - 在 Windows 机器上使用 Ruby 进行开发是否会适得其反? - 2

    这似乎非常适得其反,因为太多的gem会在window上破裂。我一直在处理很多mysql和ruby​​-mysqlgem问题(gem本身发生段错误,一个名为UnixSocket的类显然在Windows机器上不能正常工作,等等)。我只是在浪费时间吗?我应该转向不同的脚本语言吗? 最佳答案 我在Windows上使用Ruby的经验很少,但是当我开始使用Ruby时,我是在Windows上,我的总体印象是它不是Windows原生系统。因此,在主要使用Windows多年之后,开始使用Ruby促使我切换回原来的系统Unix,这次是Linux。Rub

  6. Vscode+Cmake配置并运行opencv环境(Windows和Ubuntu大同小异) - 2

    之前在培训新生的时候,windows环境下配置opencv环境一直教的都是网上主流的vsstudio配置属性表,但是这个似乎对新生来说难度略高(虽然个人觉得完全是他们自己的问题),加之暑假之后对cmake实在是爱不释手,且这样配置确实十分简单(其实都不需要配置),故斗胆妄言vscode下配置CV之法。其实极为简单,图比较多所以很长。如果你看此文还配不好,你应该思考一下是不是自己的问题。闲话少说,直接开始。0.CMkae简介有的人到大二了都不知道cmake是什么,我不说是谁。CMake是一个开源免费并且跨平台的构建工具,可以用简单的语句来描述所有平台的编译过程。它能够根据当前所在平台输出对应的m

  7. ruby - 使用 postgres.app 在 rvm 下要求 pg 时出错 - 2

    我正在使用Postgres.app在OSX(10.8.3)上。我已经修改了我的PATH,以便应用程序的bin文件夹位于所有其他文件夹之前。Rammy:~phrogz$whichpg_config/Applications/Postgres.app/Contents/MacOS/bin/pg_config我已经安装了rvm并且可以毫无错误地安装pggem,但是当我需要它时我得到一个错误:Rammy:~phrogz$gem-v1.8.25Rammy:~phrogz$geminstallpgFetching:pg-0.15.1.gem(100%)Buildingnativeextension

  8. 深度学习部署:Windows安装pycocotools报错解决方法 - 2

    深度学习部署:Windows安装pycocotools报错解决方法1.pycocotools库的简介2.pycocotools安装的坑3.解决办法更多Ai资讯:公主号AiCharm本系列是作者在跑一些深度学习实例时,遇到的各种各样的问题及解决办法,希望能够帮助到大家。ERROR:Commanderroredoutwithexitstatus1:'D:\Anaconda3\python.exe'-u-c'importsys,setuptools,tokenize;sys.argv[0]='"'"'C:\\Users\\46653\\AppData\\Local\\Temp\\pip-instal

  9. ruby-on-rails - 为什么在安装 Ruby 1.9.3 时出现 404 错误? - 2

    我最近对我的计算机(OS-MacOSX10.6.8)进行了删除,并且我正在重新安装我所有的开发工具。我再次安装了RVM;但是,它不会让我安装Ruby1.9.3。到目前为止我已经尝试过:rvminstall1.9.3rvm安装1.9.3-p194rvm安装1.9.3-p448rvminstall1.9.3--with-gcc=clang所有返回相同的命令行错误:Searchingforbinaryrubies,thismighttakesometime.Nobinaryrubiesavailablefor:osx/10.6/x86_64/ruby-1.9.3-p448.Continuin

  10. objective-c - 在设置 Cocoa Pods 和安装 Ruby 更新时出错 - 2

    我正在尝试为我的iOS应用程序设置cocoapods但是当我执行命令时:sudogemupdate--system我收到错误消息:当前已安装最新版本。中止。当我进入cocoapods的下一步时:sudogeminstallcocoapods我在MacOS10.8.5上遇到错误:ERROR:Errorinstallingcocoapods:cocoapods-trunkrequiresRubyversion>=2.0.0.我在MacOS10.9.4上尝试了同样的操作,但出现错误:ERROR:Couldnotfindavalidgem'cocoapods'(>=0),hereiswhy:U

随机推荐