Ruby error msg

Hi all,

When I execute ruby code , I got the error msg as follows,

Exception `LoadError' at /usr/lib/ruby/2.1.0/rubygems.rb:1203 - cannot load
such file -- rubygems/defaults/ruby

Exception `NameError' at /usr/lib/ruby/2.1.0/psych/class_loader.rb:67 -
uninitialized constant BigDecimal

Exception `NameError' at /usr/lib/ruby/2.1.0/psych/class_loader.rb:67 -
uninitialized constant DateTime

Exception `NameError' at /usr/lib/ruby/2.1.0/psych/core_ext.rb:16 - method
`to_yaml' not defined in Object

Exception `NameError' at /usr/lib/ruby/2.1.0/psych/core_ext.rb:29 - method
`yaml_as' not defined in Module

Exception `NameError' at /usr/lib/ruby/2.1.0/psych/deprecated.rb:81 -
undefined method `to_yaml_properties' for class `Object'

Exception `Errno::EEXIST' at /usr/lib/ruby/2.1.0/fileutils.rb:250 - File
exists @ dir_s_mkdir - .

Please guide I am new to ruby Thanks in advance.

To me that looks like you have an issue with your installation. What
operating system is this and what installation did you use?

Kind regards

robert

···

On Wed, May 25, 2016 at 11:06 AM, stefan.saye <stefan.saye@gmail.com> wrote:

Hi all,

When I execute ruby code , I got the error msg as follows,

Exception `LoadError' at /usr/lib/ruby/2.1.0/rubygems.rb:1203 - cannot load
such file -- rubygems/defaults/ruby

Exception `NameError' at /usr/lib/ruby/2.1.0/psych/class_loader.rb:67 -
uninitialized constant BigDecimal

Exception `NameError' at /usr/lib/ruby/2.1.0/psych/class_loader.rb:67 -
uninitialized constant DateTime

Exception `NameError' at /usr/lib/ruby/2.1.0/psych/core_ext.rb:16 - method
`to_yaml' not defined in Object

Exception `NameError' at /usr/lib/ruby/2.1.0/psych/core_ext.rb:29 - method
`yaml_as' not defined in Module

Exception `NameError' at /usr/lib/ruby/2.1.0/psych/deprecated.rb:81 -
undefined method `to_yaml_properties' for class `Object'

Exception `Errno::EEXIST' at /usr/lib/ruby/2.1.0/fileutils.rb:250 - File
exists @ dir_s_mkdir - .

Please guide I am new to ruby Thanks in advance.

--
[guy, jim, charlie].each {|him| remember.him do |as, often| as.you_can
- without end}
http://blog.rubybestpractices.com/

hi robert,

i am running my ruby code with ubuntu

···

2016-05-25 17:25 GMT+08:00 Robert Klemme <shortcutter@googlemail.com>:

On Wed, May 25, 2016 at 11:06 AM, stefan.saye <stefan.saye@gmail.com> > wrote:
> Hi all,
>
> When I execute ruby code , I got the error msg as follows,
>
>
>
> Exception `LoadError' at /usr/lib/ruby/2.1.0/rubygems.rb:1203 - cannot
load
> such file -- rubygems/defaults/ruby
>
> Exception `NameError' at /usr/lib/ruby/2.1.0/psych/class_loader.rb:67 -
> uninitialized constant BigDecimal
>
> Exception `NameError' at /usr/lib/ruby/2.1.0/psych/class_loader.rb:67 -
> uninitialized constant DateTime
>
> Exception `NameError' at /usr/lib/ruby/2.1.0/psych/core_ext.rb:16 -
method
> `to_yaml' not defined in Object
>
> Exception `NameError' at /usr/lib/ruby/2.1.0/psych/core_ext.rb:29 -
method
> `yaml_as' not defined in Module
>
> Exception `NameError' at /usr/lib/ruby/2.1.0/psych/deprecated.rb:81 -
> undefined method `to_yaml_properties' for class `Object'
>
> Exception `Errno::EEXIST' at /usr/lib/ruby/2.1.0/fileutils.rb:250 - File
> exists @ dir_s_mkdir - .
>
>
>
>
>
> Please guide I am new to ruby Thanks in advance.

To me that looks like you have an issue with your installation. What
operating system is this and what installation did you use?

Kind regards

robert

--
[guy, jim, charlie].each {|him| remember.him do |as, often| as.you_can
- without end}
http://blog.rubybestpractices.com/

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

To me that looks like you have an issue with your installation. What operating system
is this and what installation did you use?

If I had to guess, they’re running with `ruby -d` and seeing all the exceptions that got handled. These aren’t terminating.

···

On May 25, 2016 at 02:25:39, Robert Klemme (shortcutter@googlemail.com) wrote:

Stefan, what Robert means is: what version of Ruby are you running, what
version of Ubuntu are you running, and what method did you use to install
Ruby? Try to be as specific as possible so that we can provide you with
advice that is more likely to be useful to you.

Adam

···

On Wed, 25 May 2016 at 12:42 stefan saye <stefan.saye@gmail.com> wrote:

hi robert,

i am running my ruby code with ubuntu

2016-05-25 17:25 GMT+08:00 Robert Klemme <shortcutter@googlemail.com>:

On Wed, May 25, 2016 at 11:06 AM, stefan.saye <stefan.saye@gmail.com> >> wrote:
> Hi all,
>
> When I execute ruby code , I got the error msg as follows,
>
>
>
> Exception `LoadError' at /usr/lib/ruby/2.1.0/rubygems.rb:1203 - cannot
load
> such file -- rubygems/defaults/ruby
>
> Exception `NameError' at /usr/lib/ruby/2.1.0/psych/class_loader.rb:67 -
> uninitialized constant BigDecimal
>
> Exception `NameError' at /usr/lib/ruby/2.1.0/psych/class_loader.rb:67 -
> uninitialized constant DateTime
>
> Exception `NameError' at /usr/lib/ruby/2.1.0/psych/core_ext.rb:16 -
method
> `to_yaml' not defined in Object
>
> Exception `NameError' at /usr/lib/ruby/2.1.0/psych/core_ext.rb:29 -
method
> `yaml_as' not defined in Module
>
> Exception `NameError' at /usr/lib/ruby/2.1.0/psych/deprecated.rb:81 -
> undefined method `to_yaml_properties' for class `Object'
>
> Exception `Errno::EEXIST' at /usr/lib/ruby/2.1.0/fileutils.rb:250 - File
> exists @ dir_s_mkdir - .
>
>
>
>
>
> Please guide I am new to ruby Thanks in advance.

To me that looks like you have an issue with your installation. What
operating system is this and what installation did you use?

Kind regards

robert

--
[guy, jim, charlie].each {|him| remember.him do |as, often| as.you_can
- without end}
http://blog.rubybestpractices.com/

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

the error message is when i run my ruby code ,
OS:
Distributor ID: Ubuntu
Description: Ubuntu 15.04
Release: 15.04
Codename: vivid

ruby:
ruby 2.1.2p95 (2014-05-08) [x86_64-linux-gnu]

any help will be appreciated!! thanks

···

2016-05-25 19:48 GMT+08:00 Adam Wenham <adamwenham64@gmail.com>:

Stefan, what Robert means is: what version of Ruby are you running, what
version of Ubuntu are you running, and what method did you use to install
Ruby? Try to be as specific as possible so that we can provide you with
advice that is more likely to be useful to you.

Adam

On Wed, 25 May 2016 at 12:42 stefan saye <stefan.saye@gmail.com> wrote:

hi robert,

i am running my ruby code with ubuntu

2016-05-25 17:25 GMT+08:00 Robert Klemme <shortcutter@googlemail.com>:

On Wed, May 25, 2016 at 11:06 AM, stefan.saye <stefan.saye@gmail.com> >>> wrote:
> Hi all,
>
> When I execute ruby code , I got the error msg as follows,
>
>
>
> Exception `LoadError' at /usr/lib/ruby/2.1.0/rubygems.rb:1203 - cannot
load
> such file -- rubygems/defaults/ruby
>
> Exception `NameError' at /usr/lib/ruby/2.1.0/psych/class_loader.rb:67 -
> uninitialized constant BigDecimal
>
> Exception `NameError' at /usr/lib/ruby/2.1.0/psych/class_loader.rb:67 -
> uninitialized constant DateTime
>
> Exception `NameError' at /usr/lib/ruby/2.1.0/psych/core_ext.rb:16 -
method
> `to_yaml' not defined in Object
>
> Exception `NameError' at /usr/lib/ruby/2.1.0/psych/core_ext.rb:29 -
method
> `yaml_as' not defined in Module
>
> Exception `NameError' at /usr/lib/ruby/2.1.0/psych/deprecated.rb:81 -
> undefined method `to_yaml_properties' for class `Object'
>
> Exception `Errno::EEXIST' at /usr/lib/ruby/2.1.0/fileutils.rb:250 -
File
> exists @ dir_s_mkdir - .
>
>
>
>
>
> Please guide I am new to ruby Thanks in advance.

To me that looks like you have an issue with your installation. What
operating system is this and what installation did you use?

Kind regards

robert

--
[guy, jim, charlie].each {|him| remember.him do |as, often| as.you_can
- without end}
http://blog.rubybestpractices.com/

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org
?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

So I am assuming you installed Ruby via apt-get and from official
repositories. Then everything should be there. Hmm...

Can you show the code that triggered the error, ideally as a http://sscce.org/

Kind regards

robert

···

On Wed, May 25, 2016 at 2:52 PM, stefan saye <stefan.saye@gmail.com> wrote:

the error message is when i run my ruby code ,
OS:
Distributor ID: Ubuntu
Description: Ubuntu 15.04
Release: 15.04
Codename: vivid

ruby:
ruby 2.1.2p95 (2014-05-08) [x86_64-linux-gnu]

--
[guy, jim, charlie].each {|him| remember.him do |as, often| as.you_can
- without end}
http://blog.rubybestpractices.com/