View previous topic :: View next topic |
Author |
Message |
Fireboar
Joined: 17 Feb 2008 Posts: 323
|
Posted: Tue Jul 27, 2010 13:28 Post subject: An odd ruby error |
|
|
This is quite strange. When loading NWN through NWNX with the nwnx_ruby plugin enabled, I encounter the following warning:
(nwn-lib) ./ruby/extern.rb:4:in `require': nxml and modpacker support not available, install libxml-ruby to enable
The thing is, I have tried installing libxml-ruby both as a package and as a gem. Neither has any effect. Any idea what else I might be missing? The distribution is Debian Lenny. It's not a huge issue - everything still works, but it would be nice to have it all working so these features are available if required in the future. |
|
Back to top |
|
|
elven
Joined: 28 Jul 2006 Posts: 259 Location: Germany
|
Posted: Tue Aug 02, 2011 9:23 Post subject: Very belated answer |
|
|
The above warn is nwn-lib specific and says that the file/serialization formats nxml and modpacker are not available, because libxml-ruby isn't installed.
As to the error persisting after you installed it (on debian, gem libxml-ruby suffices) - either you're running inside a chroot where you will have to install it separately, or your ruby loadpath isn't set up properly (with nwnx_ruby, you might need to set it manually since embedded ruby is weird that way).
If you don't actually want to use those formats, never mind about that warning. You can even turn it off by setting the env var NWN_LIB_DEBUG=0 (although that suppresses all other warns too). They should only ever appear once when loading the gem (on nwserver startup). |
|
Back to top |
|
|
Fireboar
Joined: 17 Feb 2008 Posts: 323
|
Posted: Tue Aug 02, 2011 16:43 Post subject: |
|
|
Oh, I fixed it ages ago somehow. Can't exactly remember what I did, just that by the end libxml-ruby became available to the interpreter. |
|
Back to top |
|
|
Mithreas
Joined: 09 May 2008 Posts: 24
|
Posted: Tue Sep 06, 2011 0:05 Post subject: |
|
|
You added a line to our nwnstartup.sh script:
export RUBYLIB=$RUBYLIB:/var/lib/gems/1.8/gems/nwn-lib-0.4.12/lib:/var/lib/gems/1.8/gems/libxml-ruby-1.1.4/lib _________________ Admin team, Arelith PW
Hakless world that relies heavily on the great work done by the NWNX team. |
|
Back to top |
|
|
|