I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2005-03-09 01:48:32-08 by dataking
Installing this module.
Has anyone gotten this module to work? I've noticed some problems in the Makefile.PL looking for the author's home directory, and then not being able to find include files that *should* be located there. I've only just begun researching this module, so any help would be appreciated! Thanks.
Direct Responses: 207 | Write a response
Posted on 2005-03-10 22:01:51-08 by ahicox in response to 190
Re: Installing this module.
Hi there. Thanks for your interest in my module! ;-) This module should not include anything from anyone's home directory in the perl include() since. It does have dependancy on an external XML file in which it caches field definitions from the Remedy server. So that might be what you're having problems with. It also requires (I believe) my Config::Framework module, and that module does require that you have a specific directory structure beneath which your XML config files reside. I appologize in advance for the state of the documentation on this module. This was written mainly for my own use and open-sourced to CPAN so that I could use it on multiple projects without one client or another claiming that it was their IP. If it's useful to anyone else out there, then that's just fabulous! In any case, I haven't had much time to spend with it lately, though it's always been one of those "I'll get back to it sooner or later" things. I'm on vacation this week, though next week I'll definately have time to look at it. Please post any problems you're having here, or mail to andrew@hicox.com and I'll get back to you. cheers! -Andrew ;-)
Direct Responses: 209 | Write a response
Posted on 2005-03-11 07:08:38-08 by dataking in response to 207
Re: Installing this module.
After trying to duplicate the problem, I believe that I have been able to determine that the problem is not with your module specifically, however, it with a seeming fundamental prerequisite of your module (or sub-distro, however you would like to clasify it) - ARSPerl. I apologize in advance for the confusion, however, perhaps you may be able to offer a solution, or at least some guidance since your module is based on this one. Here is the output from an attempt at installing the module with CPAN:

CPAN.pm: Going to build J/JM/JMURPHY/ARSperl-1.82.tgz
Building against perl 5.008002
Generating support.h file..
can't open /home/jcmurphy/arsperl/api/5.1/include/ar.h : No such file or directory at Makefile.PL
line 300.
Running make test
Make had some problems, maybe interrupted? Won't test
Running make install
Make had some problems, maybe interrupted? Won't install
Running make for A/AH/AHICOX/Remedy-ARSTools-0.7.tar.gz
Is already unwrapped into directory /.cpan/build/Remedy-ARSTools-0.7

CPAN.pm: Going to build A/AH/AHICOX/Remedy-ARSTools-0.7.tar.gz

cp ARSTools.pm blib/lib/Remedy/ARSTools.pm
AutoSplitting blib/lib/Remedy/ARSTools.pm (blib/lib/auto/Remedy/ARSTools)
blib/lib/Remedy/ARSTools.pm: some names are not unique when truncated to 8 characters:
directory blib/lib/auto/Remedy/ARSTools:
GenerateConfig.al, GenerateARSConfig.al truncate to Generate
cp ARSTools.pod blib/lib/Remedy/ARSTools.pod
Manifying blib/man3/Remedy::ARSTools.3
/usr/ccs/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
1..1
# Running under perl version 5.008002 for solaris
# Current time local: Thu Mar 10 22:45:37 2005
# Current time GMT: Fri Mar 11 06:45:37 2005
# Using Test.pm version 1.24
Can't locate ARS.pm in @INC (@INC contains: blib/lib blib/arch
/usr/local/lib/perl5/5.8.2/sun4-solaris-thread-multi /usr/local/lib/perl5/5.8.2
/usr/local/lib/perl5/site_perl/5.8.2/sun4-solaris-thread-multi
/usr/local/lib/perl5/site_perl/5.8.2 /usr/local/lib/perl5/site_perl .) at
blib/lib/Remedy/ARSTools.pm line 17.
Compilation failed in require at test.pl line 10.
BEGIN failed--compilation aborted at test.pl line 10.
*** Error code 2
make: Fatal error: Command failed for target `test_dynamic'
/usr/ccs/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force

As you can see, near the beginning of the make attempt, I get this error:
/home/jcmurphy/arsperl/api/5.1/include/ar.h

Like I said earlier, I realize that this isn't with your module specifically, but hopefully you could offer some advice. Thanks.
Direct Responses: 210 | Write a response
Posted on 2005-03-11 14:43:34-08 by ahicox in response to 209
Re: Installing this module.
Yes ... I should mention that Remedy::ARSTools is a pure perl wrapper around ARSPerl, which is an XS interface to the C API for Remedy. While my module provides many convinience functions, and some other goodies, (it's also a bit faster due to the field definition caching) in the end all it does is to call ARSPerl methods for you. So, if ARSPerl isn't working, Remedy::ARSTools definately will not work. You should check out the forums for ARSPerl here: http://arsperl.sourceforge.net/ It sounds like you're trying to use the CPAN module to automatically install everything. That's probably not going to work with ARSPerl. The reason is because to build ARSPerl, you need to link the *.XS files against the Remedy C API files (you have to get these from the remedy installation package). Anyhow, durring the build process for ARSPerl, you must edit the Makefile.PL to point to the directory containing the Remedy C API files. The default location is the home directory of one jcmurphy, developer of ARSPerl. Hope this helped! -- Andrew ;-)
Direct Responses: Write a response