Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

NameError: uninitialized constant RDF #9

Closed
Funfun opened this Issue · 2 comments

2 participants

@Funfun

After install rdf gem i got error:

NameError: uninitialized contstant RDF

@bendiken
Owner

Sounds like you probably need to require RubyGems before you require RDF.rb:

require 'rubygems'
require 'rdf'

puts RDF::Statement(RDF::URI("http://rubygems.org/gems/rdf"), RDF::DC.title, "RDF.rb").inspect

Usually people set up an environment variable that automatically requires RubyGems for all their Ruby code:

$ export RUBYOPT="-rubygems"

Hope this helps...

@Funfun

thanks, it's very helpfull

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.