Question
After a fresh install of the current stable release every call to the edit script yields the following error:
Can't locate object method "new" via package "TWiki::Store::RcsWrap" at ../lib/TWiki/Store.pm line 78
Has anyone a clue?
What I did...
- I changed the path to the perl binary in all the scripts, because of a different location.
- I put the absolute path to the perl library directory into setlib.cfg. This was necessary although the testenv page had the path set in the @INC already. I'm not quite a perl hacker so I could not figure out why the path of the testenv page was not sufficient.
Here is the output of my testenv:
http://www.twiki.org/p/pub/Support/CantLocateMethodNewViaPackage/TestTWikienvironment.htm
Environment
--
TWikiGuest - 04 Sep 2003
Answer
Thanks for the testenv output, that's very useful as always.
Please attach your
TWiki.cfg and
setlib.cfg - this may still be a Perl library path issue when Store.pm tries to load TWiki::Store::RcsWrap.pm, which is in the
lib/TWiki/Store directory. The error above shows TWiki is using a relative path (
../lib/TWiki/Store.pm) although the rest of your message shows you had to use an absolute path - so it's probably a matter of tweaking
setlib.cfg.
Also, try setting the following in
setlib.cfg so that TWiki uses the full path to your
twiki/lib directory:
$twikiLibPath = '/u01/app/oracle/product/9.2/Apache/Apache/twiki/lib';
--
RichardDonkin - 04 Sep 2003
Further information
I set the $twikiLibPath as you proposed. It didn't help but changed the error message. It's now:
Can't locate object method "new" via package "TWiki::Store::RcsWrap"
at /u01/app/oracle/product/9.2/Apache/Apache/twiki/lib/TWiki/Store.pm line 78.
I attached my
TWiki.cfg and
setlib.cfg as you asked. I'm quite sure that the library itself is found because else there would be an error message quite some lines before in the "use" command, wouldn't it?
--
TWikiGuest
I am having the same problem and message. Can somebody please update with the solution, rather than just close.
--
TWikiGuest - 05 Jul 2005
Have you updated to the latest
TWikiRelease? Thanks.
--
MartinCleaver - 05 Jul 2005