Problem with ActiveRecord v2 outside of rails

Hi,
I have a few scripts that use activerecord to access database. Some of
the scripts also use acts_as_tree. While inside a Rails project i can
install it with script/plugin, I can’t get my scripts to work.

What can I do?
Thanks
Petr

Please this is quite urgent, i welcome any suggestion. Cheers…

Petr