Gems and Ruby1.9 issues

Discussion in 'Ruby' started by Panagiotis Atmatzidis, Mar 25, 2011.

  1. Hello,

    I setup ruby1.9 on a FreeBSD server's home directory successfully. Then
    I setup my GEM_HOME in my environment and installed the required gems
    for the script I've wrote, which are twitter and ya2yaml.

    When I try to run the script I get this error though, which does not
    appear in my MacOSX desktop at home, where I'm using the same gems/ruby
    version.

    Here's the log:

    ---------------------------------------
    atma@server10 ~]$ ruby ruby.test.rb
    /home/www/atma/library/lib/ruby/gems/1.9.1/gems/multi_json-0.0.5/lib/multi_json.rb:66:in
    `rescue in decode': #<RuntimeError: Did not recognize your engine
    specification. Please specify either a symbol or a class.>
    (MultiJson::DecodeError)
    from
    /home/www/atma/library/lib/ruby/gems/1.9.1/gems/multi_json-0.0.5/lib/multi_json.rb:63:in
    `decode'
    from
    /home/www/atma/library/lib/ruby/gems/1.9.1/gems/faraday_middleware-0.3.2/lib/faraday/parse_json.rb:22:in
    `block in register_on_complete'
    from
    /home/www/atma/library/lib/ruby/gems/1.9.1/gems/faraday-0.5.7/lib/faraday/response.rb:47:in
    `call'
    from
    /home/www/atma/library/lib/ruby/gems/1.9.1/gems/faraday-0.5.7/lib/faraday/response.rb:47:in
    `block in finish'
    from
    /home/www/atma/library/lib/ruby/gems/1.9.1/gems/faraday-0.5.7/lib/faraday/response.rb:47:in
    `each'
    from
    /home/www/atma/library/lib/ruby/gems/1.9.1/gems/faraday-0.5.7/lib/faraday/response.rb:47:in
    `finish'
    from
    /home/www/atma/library/lib/ruby/gems/1.9.1/gems/faraday-0.5.7/lib/faraday/builder.rb:19:in
    `block in inner_app'
    from
    /home/www/atma/library/lib/ruby/gems/1.9.1/gems/faraday-0.5.7/lib/faraday/response.rb:17:in
    `call'
    from
    /home/www/atma/library/lib/ruby/gems/1.9.1/gems/faraday-0.5.7/lib/faraday/response.rb:17:in
    `call'
    from
    /home/www/atma/library/lib/ruby/gems/1.9.1/gems/faraday-0.5.7/lib/faraday/response.rb:17:in
    `call'
    from
    /home/www/atma/library/lib/ruby/gems/1.9.1/gems/faraday-0.5.7/lib/faraday/response.rb:17:in
    `call'
    from
    /home/www/atma/library/lib/ruby/gems/1.9.1/gems/faraday-0.5.7/lib/faraday/response.rb:17:in
    `call'
    from
    /home/www/atma/library/lib/ruby/gems/1.9.1/gems/faraday-0.5.7/lib/faraday/adapter/net_http.rb:57:in
    `call'
    from
    /home/www/atma/library/lib/ruby/gems/1.9.1/gems/twitter-1.2.0/lib/faraday/oauth.rb:15:in
    `call'
    from
    /home/www/atma/library/lib/ruby/gems/1.9.1/gems/twitter-1.2.0/lib/faraday/multipart.rb:16:in
    `call'
    from
    /home/www/atma/library/lib/ruby/gems/1.9.1/gems/faraday-0.5.7/lib/faraday/request.rb:85:in
    `run'
    from
    /home/www/atma/library/lib/ruby/gems/1.9.1/gems/faraday-0.5.7/lib/faraday/request.rb:27:in
    `run'
    from
    /home/www/atma/library/lib/ruby/gems/1.9.1/gems/faraday-0.5.7/lib/faraday/connection.rb:177:in
    `run_request'
    from
    /home/www/atma/library/lib/ruby/gems/1.9.1/gems/faraday-0.5.7/lib/faraday/connection.rb:71:in
    `post'
    from
    /home/www/atma/library/lib/ruby/gems/1.9.1/gems/twitter-1.2.0/lib/twitter/request.rb:28:in
    `request'
    from
    /home/www/atma/library/lib/ruby/gems/1.9.1/gems/twitter-1.2.0/lib/twitter/request.rb:11:in
    `post'
    from
    /home/www/atma/library/lib/ruby/gems/1.9.1/gems/twitter-1.2.0/lib/twitter/client/tweets.rb:43:in
    `update'
    from ruby.test.rb:18:in `<main>'
    [atma@server10 ~]$ ruby --version && gem --version
    ruby 1.9.2p180 (2011-02-18 revision 30909) [i386-freebsd7.4]
    1.3.7
    [atma@server10 ~]$
    ---------------------------------------

    For some reason "multi_json-0.0.5" seems to break. Is there anything I
    can do to fix this?

    best regards

    --
    Posted via http://www.ruby-forum.com/.
     
    Panagiotis Atmatzidis, Mar 25, 2011
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Evan B.
    Replies:
    0
    Views:
    114
    Evan B.
    Oct 27, 2008
  2. Iñaki Baz Castillo
    Replies:
    14
    Views:
    267
    Iñaki Baz Castillo
    Apr 5, 2009
  3. Philip Ross
    Replies:
    3
    Views:
    185
    Phil Ross
    Apr 16, 2009
  4. Iñaki Baz Castillo
    Replies:
    7
    Views:
    710
    Rick DeNatale
    Dec 3, 2009
  5. Jen
    Replies:
    2
    Views:
    172
Loading...

Share This Page