It looks like you've got path problems, at least, I've had a similar problem and that's what it turned out to be for me.

If you run perl -e "print @INC" you should get the same include path for both root and non-root users. You should also get the same output for perl -v.

My guess is what's happened is you have a partial copy of perl that got installed in /usr/local/bin, and a working copy in /usr/bin. I've had this happen to me when CPAN made an abortive attempt to upgrade perl by mistake (this a mis-resolve dependency).

Root's path doesn't include /usr/local/*, so it finds the copy in /usr/bin and that manages to find razor in /usr/lib/perl5.

A non-root user will have /usr/local/bin in the path, so it finds that copy and tries to find razor in /usr/local/lib/perl5 and fails.

In my case, I went to /usr/local/bin and moved all the perl executables into a sub-directory "_bad_perl" so that they would not be found and the correct perl would be used. I also renamed /usr/local/lib/perl5.

I had 28 perl-related executable files in /usr/local/bin to move (perl*, cpan, pod*, lwp-*, splain, pstruct, ptar,a2p, c2ph, h2??, s2p, pl2pm, find2perl, dprofpp).

Note that I'd advise moving them instead of deleting to make sure you can put them back if you accidentally grab the wrong files.

At 10:24 AM 4/4/2003 -0500, you wrote:
Hello,

I have dones searches on the archive and have not been able to find
anyone with the following problem.

razor-admin -create
Can't locate Razor2/Client/Agent.pm in @INC (@INC contains: lib
/usr/local/lib/perl5/5.8.0/sun4-solaris /usr/local/lib/perl5/5.8.0
/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris
/usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl .)
at /usr/local/bin/razor-admin line 21.
BEGIN failed--compilation aborted at /usr/local/bin/razor-admin line 21.

I can do it as root but not as another user.  I've even included the
path of Agent.pm in the razor-admin file using the -I/path-to-Agent/ and
it still will not find it.

Does anyone have any suggestions on how to correct this?

Thanks.
Charles Poole



-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
Razor-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/razor-users



-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
Razor-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/razor-users

Reply via email to