When executing this trivial peace of code I get the message:
/usr/lib/ruby/1.8/rexml/element.rb:2:in `require': No such file to load -- rexml/namespace (LoadError)
from /usr/lib/ruby/1.8/rexml/element.rb:2
from /usr/lib/ruby/1.8/rexml/document.rb:1:in `require'
from /usr/lib/ruby/1.8/rexml/document.rb:1
from ./test.rb:3:in `require'
from ./test.rb:3
What's the problem? Is something wrong in the code or is my installation missing this "rexml/namespace" file?
When executing this trivial peace of code I get the message:
/usr/lib/ruby/1.8/rexml/element.rb:2:in `require': No such file to load -- rexml/namespace (LoadError)
from /usr/lib/ruby/1.8/rexml/element.rb:2
from /usr/lib/ruby/1.8/rexml/document.rb:1:in `require'
from /usr/lib/ruby/1.8/rexml/document.rb:1
from ./test.rb:3:in `require'
from ./test.rb:3
What's the problem? Is something wrong in the code or is my installation missing this "rexml/namespace" file?
This for any hint.
The xml file "mydoc.xml" has to exist, for this tutorial to work. It doesn't unless you created it, last time I checked. A few more lines down he gives a xml example of using a String, copy and paste that into a file and call if "mydoc.xml". Let us know if it don't go... happy rubying,
When executing this trivial peace of code I get the message:
/usr/lib/ruby/1.8/rexml/element.rb:2:in `require': No such file to load --
rexml/namespace (LoadError)
from /usr/lib/ruby/1.8/rexml/element.rb:2
from /usr/lib/ruby/1.8/rexml/document.rb:1:in `require'
from /usr/lib/ruby/1.8/rexml/document.rb:1
from ./test.rb:3:in `require'
from ./test.rb:3
What's the problem? Is something wrong in the code or is my installation missing
this "rexml/namespace" file?
The xml file "mydoc.xml" has to exist, for this tutorial to work. It doesn't unless you created it, last time I checked. A few more lines down he gives a xml example of using a String, copy and paste that into a file and call if "mydoc.xml". Let us know if it don't go... happy rubying,
Zach
The file exists and is a valid xml file according to the firefox DOM expector.
I've scanned my whole disk: there is no file called "namespace.rb" on the whole system.
The strange thing is, that the required file has been part of the ruby-libs package before the last upgrade. But after having upgraded to the newest ruby version, the file was not there any more (The upgrade was provided by fedora).
Would you agree, that the installation/package is broken?
Sure sounds like it. Maybe the maintainer disagreed with XML's
namespace implementation :). I've heard that it was a fairly heated
process.
···
On Tue, 25 Jan 2005 09:40:50 +0900, Boris Glawe <boris@boris-glawe.de> wrote:
>
>
> The xml file "mydoc.xml" has to exist, for this tutorial to work. It
> doesn't unless you created it, last time I checked. A few more lines
> down he gives a xml example of using a String, copy and paste that into
> a file and call if "mydoc.xml". Let us know if it don't go... happy
> rubying,
>
> Zach
>
>
The file exists and is a valid xml file according to the firefox DOM expector.
I've scanned my whole disk: there is no file called "namespace.rb" on the whole
system.
The strange thing is, that the required file has been part of the ruby-libs
package before the last upgrade. But after having upgraded to the newest ruby
version, the file was not there any more (The upgrade was provided by fedora).
Would you agree, that the installation/package is broken?