解决rails5.0 ruby2.3.1下bcryp_ext LoadError: Cannot load such file
2016-08-05 09:28
357 查看
我遇到这个原因挺简单的,因为gem安装的bcrypt里面的bcrypt_ext.so没有生成,所以加载失败
需要安装Devkit(这个大家都知道),并且在系统环境里配置path,D:\Ruby23\DevKit\bin;D:\Ruby23\DevKit\mingw\bin;D:\ruby\Git\cmd;这样配置即可,
再在windows命令下cd 到ruby gem里bcrypt这个gem的mri目录,执行以下命令即可。
需要安装Devkit(这个大家都知道),并且在系统环境里配置path,D:\Ruby23\DevKit\bin;D:\Ruby23\DevKit\mingw\bin;D:\ruby\Git\cmd;这样配置即可,
再在windows命令下cd 到ruby gem里bcrypt这个gem的mri目录,执行以下命令即可。
C:\> cd (path to gems root)\bcrypt-3.1.7-x86-mingw32\ext\mri C:\(path to gems root)\bcrypt-3.1.7-x86-mingw32\ext\mri> ruby extconf.rb C:\(path to gems root)\bcrypt-3.1.7-x86-mingw32\ext\mri> make C:\(path to gems root)\bcrypt-3.1.7-x86-mingw32\ext\mri> make install
相关文章推荐
- Ruby on Rails 安装出现`require’: cannot load such file — openssl (LoadError)的解决方法
- Ruby on Rails安装过程中出现"no such file to load -- mkmf"错误的解决方法。
- Rails console 不能使用,出现cannot load such file -- readline (LoadError) 的解决
- 源码安装ruby时 ERROR: Loading command: install (LoadError) cannot load such file -- zlib 解决方法
- 出现 ruby cannot load such file -- zlib 问题的解决方法
- install rubyonrails( no such file to load -- zlib )
- CocoaPods 出现LoadError - cannot load such file -- nanaimo错误解决办法
- 解决 Pod in 4000 stall 问题:cannot load such file -- cfpropertylist
- 解决Failed to load module "pk-gtk-module": libpk-gtk-module.so: cannot open shared object file: No such file or directory
- Ruby升级后no such file to load -- readline解决办法
- 遇到 cannot load such file -- rubygems/defaults/ruby
- cannot load such file -- openssl 用gem安装rails时遭遇的错误
- pod update, LoadError - cannot load such file -- openssl报错解决办法,pod重装
- `require': cannot load such file -- bcrypt_ext (LoadError) (window 7+ruby2.33+rails5.0. 下出现的问题)
- Ruby on rails: no such file to load -- openssl
- /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- re
- rubygems/core_ext/kernel_require.rb:120:in `require': cannot load such file -- colored2 (LoadError)
- cannot load such file -- bundler/setup解决
- fedora安装rails缺少js runtime和cannot load such file -- sqlite3/sqlite3_native解决办法
- Rails错误:LoadError: no such file to load – openssl 解决办法