在安装了libv8的windows上安装therubyracer –with-system-v8
发布时间:2020-12-14 04:38:21 所属栏目:Windows 来源:网络整理
导读:我终于在我的 windows上安装了libv8 gem install libv8 – –with-system-v8 现在,当我试图安装therubyracer时,我得到了 gem install therubyracerTemporarily enhancing PATH to include DevKit...Building native extensions. This could take a while...B
我终于在我的
windows上安装了libv8
gem install libv8 – –with-system-v8 现在,当我试图安装therubyracer时,我得到了 gem install therubyracer Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... Building native extensions. This could take a while... ERROR: Error installing therubyracer: ERROR: Failed to build gem native extension. C:/Ruby193/bin/ruby.exe extconf.rb --with-system-v8 checking for main() in -lpthread... no checking for v8.h... no *** extconf.rb failed *** Could not create Makefile due to some reason,probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=C:/Ruby193/bin/ruby --with-pthreadlib --without-pthreadlib --enable-debug --disable-debug --with-v8-dir --without-v8-dir --with-v8-include --without-v8-include=${v8-dir}/include --with-v8-lib --without-v8-lib=${v8-dir}/ C:/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.3/ext/libv8/location.rb:50:in `configure': You hav e chosen to use the version of V8 found on your system (Libv8::Location::System::NotFoundError) and *not* the one that is bundle with the libv8 rubygem. However,it could not be located. please make sure you have a version of v8 that is compatible with 3.16.14.3 installed. You may need to special --with-v8-dir options if it is in a non-standard location thanks,The Mgmt 我想知道的是这个错误信息的真正含义是什么? 解决方法
当我遇到这个问题时,我发现我在开发中不需要那些宝石,因为rails用来预编译你的资产,所以我的解决方案非常简单,
的Gemfile gem "rails" group :production do gem 'therubyracer' end 然后当你捆绑运行这个命令 $bundle install --without production 然后对生活微笑:D (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- Win7程序运行出现Windows Based Scrip Host 已停止工作问题
- winapi – 如何从DLL获取HINSTANCE?
- 02、Windows Server 2003域账户管理(02)
- windows-server-2008 – 如何在Windows Server 2008中强化T
- 使Aptana永远不会使用Windows行尾
- 一个Windows客户端在负载测试期间可以模拟多少个线程/用户?
- 如何在Windows中开始编程?
- windows-installer – 从VS安装项目升级时,版本和Bundle的U
- windows-server-2008 – 选择Windows Small Biz Server版本
- 远程桌面连接失败