Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/102.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios ';惰性符号绑定失败';尝试安装gem bundler时出错_Ios_Iphone_Ruby_Rubygems - Fatal编程技术网

Ios ';惰性符号绑定失败';尝试安装gem bundler时出错

Ios ';惰性符号绑定失败';尝试安装gem bundler时出错,ios,iphone,ruby,rubygems,Ios,Iphone,Ruby,Rubygems,问题 我正在尝试用iOS 8.1.3在我的iPhone 5S上安装MetaSploit。盘古越狱。我遇到了让它工作的问题。每当我运行命令ruby msfconsole时,我都会收到一个依赖项错误 iphone:/msf3 root# ruby msfconsole [*] Metasploit requires the Bundler gem to be installed $ gem install bundler 因此,我尝试按照说明安装捆绑程序,但随后遇到了错误 iphone:/

问题

我正在尝试用iOS 8.1.3在我的iPhone 5S上安装MetaSploit。盘古越狱。我遇到了让它工作的问题。每当我运行命令
ruby msfconsole
时,我都会收到一个依赖项错误

iphone:/msf3 root# ruby msfconsole
[*] Metasploit requires the Bundler gem to be installed
    $ gem install bundler
因此,我尝试按照说明安装捆绑程序,但随后遇到了错误

iphone:/msf3 root# gem install bundler
dyld: lazy symbol binding failed: Symbol not found: __OSSwapInt16
  Referenced from: /usr/lib/ruby/1.9.1/arm-darwin9/socket.bundle
  Expected in: flat namespace

dyld: Symbol not found: __OSSwapInt16
  Referenced from: /usr/lib/ruby/1.9.1/arm-darwin9/socket.bundle
  Expected in: flat namespace
有人知道如何解决这个问题吗

创业板环境

Gemfile

源代码'https://rubygems.org'
#将默认组gems添加到“metasploit framework.gemspec”:
#spec.add_运行时_依赖项“”,[]
gemspec名称:“metasploit框架”
#与测试分离,因为simplecov未在travis ci上运行
小组:覆盖范围是多少
#测试的代码覆盖率
#任何高于0.5.4的版本在尝试读取源文件时都会出现编码错误。
#见:https://github.com/colszowka/simplecov/issues/127 (希望固定在0.8.0中)
宝石“simplecov”
结束
小组:发展怎么办
#码的降价格式
宝石“红地毯”
#生成文档
宝石“码”
#用于开发和测试目的
宝石“窥探”
结束
小组:开发,:测试
#自动包含规范/工厂中的工厂
gem“工厂女孩轨道”,“~>4.5.0”
#使rspec输出更短、更有用
gem'fivemat',“~>1.3.1”
#运行文档生成任务和rspec任务
gem'rake','>=10.0.0'
#定义“rake规范”。必须处于开发和测试阶段,以便在
#环境就是发展
gem'rspec rails',“~>3.3”
结束
组:测试do
#用于测试命令行应用程序(如msfconsole)的Cumber扩展
阿鲁巴宝石
#cucumber+使用数据库_cleaner自动清理数据库
gem'cumber rails',:require=>false
宝石“应该是匹配者”
#在规格中操纵时间
gem'timecop'
结束
iphone:/msf3 root# gem environment
RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.7
  - RUBY VERSION: 1.9.2 (2010-08-18 patchlevel 0) [arm-darwin9]
  - INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.9.1
  - RUBY EXECUTABLE: /usr/bin/ruby
  - EXECUTABLE DIRECTORY: /usr/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - arm-darwin-9
  - GEM PATHS:
     - /usr/lib/ruby/gems/1.9.1
     - /var/root/.gem/ruby/1.9.1
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/
source 'https://rubygems.org'
# Add default group gems to `metasploit-framework.gemspec`:
#   spec.add_runtime_dependency '<name>', [<version requirements>]
gemspec name: 'metasploit-framework'

# separate from test as simplecov is not run on travis-ci
group :coverage do
  # code coverage for tests
  # any version newer than 0.5.4 gives an Encoding error when trying to read the source files.
  # see: https://github.com/colszowka/simplecov/issues/127 (hopefully fixed in 0.8.0)
  gem 'simplecov'
end

group :development do
  # Markdown formatting for yard
  gem 'redcarpet'
  # generating documentation
  gem 'yard'
  # for development and testing purposes
  gem 'pry'
end

group :development, :test do
  # automatically include factories from spec/factories
  gem 'factory_girl_rails', '~> 4.5.0'
  # Make rspec output shorter and more useful
  gem 'fivemat', '~> 1.3.1'
  # running documentation generation tasks and rspec tasks
  gem 'rake', '>= 10.0.0'
  # Define `rake spec`.  Must be in development AND test so that its available by default as a rake test when the
  # environment is development
  gem 'rspec-rails' , '~> 3.3'
end

group :test do
  # cucumber extension for testing command line applications, like msfconsole
  gem 'aruba'
  # cucumber + automatic database cleaning with database_cleaner
  gem 'cucumber-rails', :require => false
  gem 'shoulda-matchers'
  # Manipulate Time.now in specs
  gem 'timecop'
end