itchybrownrobe has asked for the wisdom of the Perl Monks concerning the following question:

Hi,
I am having trouble using a module I put into my own directory. (I have to do this because until I get the calendar / scheduling program written the sysadmin is not going to put any new mods in the system paths.) The error I keep getting is:
" can not find the XS part of Class::Date, using strftime, tzset and tzname from POSIX module "

The GNU compiler collection *is* in my path. I have successfully installed the Class::Date module in *MY* own directory (~/lib/...). I ran the xs portion first then did the make (Makefile.PL, make, make test, make install). I have read the moduale tutorials here as well as perlxstut, perlguts, perlxs and some various pages on the web.

I want to use this mod to make a calendar and scheduling script to attach to a physical room so it can be scheduled from the web by prospective users. It seems to me the functions in the Class::Date mod are more robust than the other options I've looked at.

Thanks

  • Comment on "xs part" error w/a non-std lib location

Replies are listed 'Best First'.
Re: "xs part" error w/a non-std lib location
by Thelonius (Priest) on Mar 19, 2004 at 19:52 UTC
    I'm a little confused by your saying "I ran the xs portion first" as to whether the problem is with Class::Date or with your module. First you should just test whether Class::Date works. E.g.:
    export PERL5LIB=$HOME/lib/whatever perl -MClass::Date -le 'print 1'
    If that doesn't work, you should tell us more about exactly how you built it, what OS and version of Perl you're on, etc.