ruby - php_serialize gem doesn't load -


i'm trying use gem:

php serialize

i type

gem install php-serialize 

and in main.rb ruby app

require 'php_serialize' 

the result is

boot error  went wrong while loading main.rb  loaderror: cannot load such file -- php_serialize 

the environment sinatra, , in main.rb have:

require 'rubygems' require 'sanitize' require 'sinatra' require 'active_record' require 'nokogiri' require 'open-uri' require 'uri' require 'pry' require 'chronic'  require 'json' require 'zip' require 'php_serialize' 

any idea?

update

rubygems environment:   - rubygems version: 2.1.11   - ruby version: 2.0.0 (2013-11-22 patchlevel 353) [x86_64-darwin13.0.0]   - installation directory: /users/scrivoaroby/.rvm/gems/ruby-2.0.0-p353   - ruby executable: /users/scrivoaroby/.rvm/rubies/ruby-2.0.0-p353/bin/ruby   - executable directory: /users/scrivoaroby/.rvm/gems/ruby-2.0.0-p353/bin   - spec cache directory: /users/scrivoaroby/.gem/specs   - rubygems platforms:     - ruby     - x86_64-darwin-13   - gem paths:      - /users/scrivoaroby/.rvm/gems/ruby-2.0.0-p353      - /users/scrivoaroby/.rvm/gems/ruby-2.0.0-p353@global   - gem configuration:      - :update_sources => true      - :verbose => true      - :backtrace => false      - :bulk_threshold => 1000   - remote sources:      - https://rubygems.org/   - shell path:      - /users/scrivoaroby/.rvm/gems/ruby-2.0.0-p353/bin      - /users/scrivoaroby/.rvm/gems/ruby-2.0.0-p353@global/bin      - /users/scrivoaroby/.rvm/rubies/ruby-2.0.0-p353/bin      - /users/scrivoaroby/.rvm/bin      - /usr/local/git/bin      - /usr/bin      - /bin      - /usr/sbin      - /sbin      - /usr/local/bin      - /usr/local/git/bin      - /opt/imagemagick/bin 

which shotgun

/users/scrivoaroby/.rvm/gems/ruby-2.0.0-p353/bin/shotgun      2.0.0 == shotgun/thin on http://127.0.0.1:9393/ thin web server (v1.6.1 codename death proof) maximum connections set 1024 listening on 127.0.0.1:9393, ctrl+c stop 

we use more context; "boot error" not plain ruby message. environment?

but when ruby program can't find gem, problem 1 of these:

  1. ruby version less 1.9 , didn't require "rubygems" first.

  2. multiple ruby installations , program using different 1 one installed gem.

  3. program using bundler , gem not in gemfile.

  4. gem otherwise installed in different $gem_home program using.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -