[one-users] oneacct doesn't work (bug)

Rolandas Naujikas rolandas.naujikas at mif.vu.lt
Wed Jan 18 04:31:14 PST 2012


Hi,

Opennebula is installed from package (in Debian 6.0.3).

$ oneacct
/usr/bin/oneacct:27: undefined method `+' for nil:NilClass (NoMethodError)

By looking into /usr/bin/oneacct I see:

ONE_LOCATION=ENV['ONE_LOCATION']

$: << ONE_LOCATION+'/lib/ruby'
$: << ONE_LOCATION+'/lib/ruby/cli'

What will not work if ONE_LOCATION is not set.
Setting it to ONE_LOCATION=/usr

$ ONE_LOCATION=/usr oneacct
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': no such file to load -- acct/oneacct (LoadError)
        from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /usr/bin/oneacct:32

So it looks like support for system wide installation in oneacct command
doesn't exists.

Regards, Rolandas



More information about the Users mailing list