gem

Installing Metasploit Framework on OS X Yosemite, metasploit-framework -v '4.10.1.pre.dev' not found

孤者浪人 提交于 2020-01-06 02:20:37
问题 I am trying to install Metasploit Framework on OS X Yosemite and whilst running bundle install the installer gets stuck on trying to install metasploit-framework -v '4.10.1.pre.dev'. When I run gem install metasploit-framework -v '4.10.1.pre.dev' on it's own I get this error: ERROR: Could not find a valid gem 'metasploit-framework' (= 4.10.1.pre.dev) in any repository ERROR: Possible alternatives: test_framework, metasploit-yard, metasploit-runner, metasploit-erd, metasploit-concern Has

I'm confused: 'rails -v' and 'gem list' show different versions

强颜欢笑 提交于 2020-01-06 01:36:10
问题 I've made a fresh installation of Ruby on Rails on my Windows 7 machine (using RailsInstaller) after a failed attempt to follow Michael Hartl's Ruby on Rails Tutorial (if you're interested, see my previous question pertaining to the said fail). As I thought my previous fail had something to do with my inept attempt at installing different gem versions hoping to replicate requirements laid out in the tutorial, I decided to check the version of rails gem immediately after the install. When I

Manual Install of Xcode command line tools not working

纵饮孤独 提交于 2020-01-05 12:33:48
问题 I've manually installed the Xcode command line tools from the Apple website, and I went through the install process but it doesn't seem to be working. I ran this from the terminal to see if it installed: Zach-Boyette-MacBook-Pro-2:~ zachboyette$ pkgutil --pkg-info=com.apple.pkg.CLTools_Executables package-id: com.apple.pkg.CLTools_Executables version: 5.1.0.0.1.1396320587 volume: / location: / install-time: 1398301024 groups: com.apple.FindSystemFiles.pkg-group com.apple.DevToolsBoth.pkg

error with pry- warning: already initialized constant previous definition of DEFAULT_HOOKS was here

喜欢而已 提交于 2020-01-05 12:19:21
问题 I have used pry in the terminal all year long without any problem. But starting last night, every time I type pry in the terminal, it doesn't open and instead gives me a long log of errors. I tried several things and spent a lot of time searching but I am at lost and don't know what to do next. I don't understand why it gives me some line numbers of a ruby file with the different errors since it usually work without being related to a file. The log is a bit long, but the errors get repeated.

error with pry- warning: already initialized constant previous definition of DEFAULT_HOOKS was here

*爱你&永不变心* 提交于 2020-01-05 12:17:33
问题 I have used pry in the terminal all year long without any problem. But starting last night, every time I type pry in the terminal, it doesn't open and instead gives me a long log of errors. I tried several things and spent a lot of time searching but I am at lost and don't know what to do next. I don't understand why it gives me some line numbers of a ruby file with the different errors since it usually work without being related to a file. The log is a bit long, but the errors get repeated.

Alternative to 'ruby-debug19' (culprit 'linecache19') on ruby 2.0.0p247?

邮差的信 提交于 2020-01-05 08:29:59
问题 I am frustrated because I have tried other StackOverflow articles on this issue, but have been unsuccessful in fixing my own error. When I call 'gem install linecache19' ...the following error is outputed ERROR: Error installing linecache19: ERROR: Failed to build gem native extension. /home/user/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb checking for vm_core.h... no /home/user/.rvm/gems/ruby-2.0.0-p247/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:39:in `create_makefile_with_core'

Unable to install Nokogiri

ε祈祈猫儿з 提交于 2020-01-05 08:11:45
问题 When I run sudo gem install nokogiri on Ubuntu 12.1, I'm returned with this. What's wrong and how do I fix it? jason@jason:~/ror/clss$ sudo gem install nokogiri Building native extensions. This could take a while... ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError) from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require

Rails failing and strange bundle installations

蓝咒 提交于 2020-01-05 07:53:05
问题 There's one thing that I can't figure out. When I try to run rails it says something like: Could not find sprockets-2.1.2 in any of the sources Run `bundle install` to install missing gems. By the way sprockets-2.1.2 is installed. (I've run bundle install successfully) But as far as I understand when I run rails the global bin is being run and so my local gems installed by bundler are not accessible by it. Can I solve this somehow without having to manually install a lot of gems like: gem

can not install rubygame successfully

 ̄綄美尐妖づ 提交于 2020-01-05 07:26:28
问题 my os is OSX 10.8.2. i have followed the instructions from rubygame wiki, and everything is ok during my installation. However, when I require the rubygame in my ruby script, something happend: irb(main):001:0> require 'rubygame' ArgumentError: callbacks cannot have variadic parameters from /Library/Ruby/Gems/1.8/gems/ffi-1.2.0/lib/ffi/library.rb:365:in `callback' from /Library/Ruby/Gems/1.8/gems/ruby-sdl-ffi-0.4/lib/ruby-sdl-ffi/sdl/mac.rb:161 from /System/Library/Frameworks/Ruby.framework

Where is the have_fields RSpec matcher defined?

拈花ヽ惹草 提交于 2020-01-05 05:45:07
问题 A recent question on using rspec featured some code with a have_fields matcher in it. A search indicated that have_fields was referenced in the mongoid-rspec gem, but when I went to GitHub, I could only find it referenced in the spec files. Similar searches of RSpec core and related gems came up empty as well. 回答1: You might be looking for the mongoid-minitest gem. In have_field.rb it declares have_fields as an alias: module Mongoid module Matchers module Document # TODO: Add documentation.