[Shipwright] Having problems importing RT plugins into vessel

Wenck, Samuel samuel.wenck at lmco.com
Tue Aug 25 09:39:33 EDT 2009


Sunnavy,

I thought that I could install RTFM into my running vessel, but it appears that the RTx Module::Install module is having issues. Here I try to install RTFM into my running vessel:

root at mir RTFM-2.4.2]# perl Makefile.PL 
Cannot determine author info from lib/RT/FM.pm
Cannot determine license info from lib/RT/FM.pm
Cannot find the location of RT.pm that defines $RT::LocalPath in: inc /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib64/perl5/vendor_perl/5.8.3/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl . /opt/rt3/lib /opt/lib/rt3 /opt/lib /usr/local/rt3/lib /usr/local/lib/rt3 /usr/local/lib /home/rt3/lib /home/lib/rt3 /home/lib /usr/rt3/lib /usr/lib/rt3 /usr/lib /sw/rt3/lib /sw/lib/rt3 /sw/lib
Path to your RT.pm:  /opt/384
Cannot find the location of RT.pm that defines $RT::LocalPath in: inc /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib64/perl5/vendor_perl/5.8.3/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl . /opt/rt3/lib /opt/lib/rt3 /opt/lib /usr/local/rt3/lib /usr/local/lib/rt3 /usr/local/lib /home/rt3/lib /home/lib/rt3 /home/lib /usr/rt3/lib /usr/lib/rt3 /usr/lib /sw/rt3/lib /sw/lib/rt3 /sw/lib /opt/384 /opt/384/rt3/lib /opt/384/lib/rt3 /opt/384/lib
Path to your RT.pm:  

And you see that my RT.pm file is resident in one of the directories listed above:

[root at mir RTFM-2.4.2]# ls -alt /opt/rt384/lib/
total 56
drwxrwxr-x   6 wencks wencks  4096 Aug 19 14:16 ..
drwxr-xr-x   4 wencks bin     4096 Aug 18 07:22 .
drwxr-xr-x  58 wencks wencks  4096 Aug 18 07:22 perl5
drwxr-xr-x  15 wencks wencks  4096 Aug 18 07:22 RT
-rw-r--r--   1 wencks wencks 18833 Aug 18 07:22 RT.pm
-rwxr-xr-x   1 wencks wencks 18990 Aug 18 07:22 RT.pm.in
[root at mir RTFM-2.4.2]#

Any other thoughts for me to try? I guess I could force the install my manually moving the files from the RTFM installation directory into the plugins area of my vessel.

Thanks... Sam


-----Original Message-----
From: sunnavy [mailto:sunnavy at bestpractical.com] 
Sent: Monday, August 24, 2009 10:35 PM
To: Wenck, Samuel
Subject: Re: [Shipwright] Having problems importing RT plugins into vessel

Hi Sam

the problem of importing RTFM is that RTFM needs an already installed  
RT, which is
sad( and maybe a bit ironical: we need a running RT before importing  
RTFM to an RT vessel source ).

I don't have any good idea for this right now, but if you have RT  
installed already,
the problem should be gone.


best wishes
sunnavy


On Aug 25, 2009, at 4:31 AM, Wenck, Samuel wrote:

> Jesse, Here's the errors running the shell script to import RTFM  
> into the vessel.
>
> Thanks... Sam
>
> @rh53 shipwright]$ ./shipwright_rt_package.sh
> run cmd: svn info file:///home/wencks/rt_vessel/shipwright/repo//shipwright
> run cmd: svn cat
> file:///home/wencks/rt_vessel/shipwright/repo//shipwright/map.yml
> run cmd: svn cat
> file:///home/wencks/rt_vessel/shipwright/repo//shipwright/map.yml
> run cmd: svn cat
> file:///home/wencks/rt_vessel/shipwright/repo//shipwright/source.yml
> run source RTFM: /home/wencks/rt_vessel/shipwright/RTFM-2.4.2.tar.gz
> run cmd: /usr/bin/perl -Mversion -MShipwright::Util::CleanINC
> shipwright_makefile.pl
> run err:
> Cannot determine author info from lib/RT/FM.pm
> Cannot determine license info from lib/RT/FM.pm
> Cannot find the location of RT.pm that defines $RT::LocalPath in:  
> inc .
> /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8
> /opt/rt3/lib /opt/lib/rt3 /opt/lib /usr/local/rt3/lib /usr/local/lib/ 
> rt3
> /usr/local/lib /home/rt3/lib /home/lib/rt3 /home/lib /usr/rt3/lib / 
> usr/lib/rt3
> /usr/lib /sw/rt3/lib /sw/lib/rt3 /sw/lib
> run cmd: /usr/bin/perl shipwright_makefile.pl
> run err:
> Cannot determine author info from lib/RT/FM.pm
> Cannot determine license info from lib/RT/FM.pm
> Cannot find the location of RT.pm that defines $RT::LocalPath in: inc
> /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
> /usr/lib64/perl5/site_perl/5.8.7/x86_64-linux-thread-multi
> /usr/lib64/perl5/site_perl/5.8.6/x86_64-linux-thread-multi
> /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7
> /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5
> /usr/lib/perl5/site_perl
> /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi
> /usr/lib64/perl5/vendor_perl/5.8.7/x86_64-linux-thread-multi
> /usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi
> /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7
> /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5
> /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux- 
> thread-multi
> /usr/lib/perl5/5.8.8 . /opt/rt3/lib /opt/lib/rt3 /opt/lib /usr/local/ 
> rt3/lib
> /usr/local/lib/rt3 /usr/local/lib /home/rt3/lib /home/lib/rt3 /home/ 
> lib
> /usr/rt3/lib /usr/lib/rt3 /usr/lib /sw/rt3/lib /sw/lib/rt3 /sw/lib
> run cmd: make clean
> run err:
> make: *** No rule to make target `clean'.  Stop.
> failed to run make clean with exit number 512
> something wrong when execute make clean: 512
> the output is:
> the error is: make: *** No rule to make target `clean'.  Stop.
>
> at /usr/lib/perl5/site_perl/5.8.8/Shipwright/Util.pm line 83
>        Shipwright::Util::run('Shipwright::Util',  
> 'ARRAY(0x18004ee0)') called
> at /usr/lib/perl5/site_perl/5.8.8/Shipwright/Source/Base.pm line 368
>         
> Shipwright 
> ::Source 
> ::Base::_follow('Shipwright::Source::Compressed=HASH(0x17b47460)',
> '/tmp/shipwright_source_kYSz8J/RTFM') called at
> /usr/lib/perl5/site_perl/5.8.8/Shipwright/Source/Compressed.pm line 34
>         
> Shipwright 
> ::Source 
> ::Compressed::run('Shipwright::Source::Compressed=HASH(0x17b47460)',
> 'copy', 'HASH(0x17b57940)') called at
> /usr/lib/perl5/site_perl/5.8.8/Shipwright/Script/Import.pm line 157
>         
> Shipwright 
> ::Script::Import::run('Shipwright::Script::Import=HASH(0x172939d0)',
> 'file:/home/wencks/rt_vessel/shipwright/RTFM-2.4.2.tar.gz') called at
> /usr/lib/perl5/site_perl/5.8.8/App/CLI/Command.pm line 53
>         
> App 
> ::CLI 
> ::Command::run_command('Shipwright::Script::Import=HASH(0x172939d0)',
> 'file:/home/wencks/rt_vessel/shipwright/RTFM-2.4.2.tar.gz') called at
> /usr/lib/perl5/site_perl/5.8.8/App/CLI.pm line 79
>        App::CLI::dispatch('Shipwright::Script') called at /usr/bin/ 
> shipwright
> line 17
> cannot remove path when cwd is /tmp/shipwright_source_kYSz8J/RTFM for
> /tmp/shipwright_source_kYSz8J:  at /usr/lib/perl5/5.8.8/File/Temp.pm  
> line 902
> [wencks at rh53 shipwright]$
>
> -----Original Message-----
> From: Jesse Vincent [mailto:jesse at bestpractical.com]
> Sent: Monday, August 24, 2009 4:26 PM
> To: Wenck, Samuel
> Cc: shipwright at lists.bestpractical.com
> Subject: Re: [Shipwright] Having problems importing RT plugins into  
> vessel
>
> Sam,
>
> Can you show us the actual errors?
>
> On Mon, Aug 24, 2009 at 03:38:41PM -0400, Wenck, Samuel wrote:
>> I have successfully built a shipwright vessel for RT 3.8.4 which  
>> includes nearly all of the required Perl modules. I am using  
>> Shipwright version 2.3.5 to build the vessel. I didn't have any  
>> issues with adding Perl modules to the vessel but now I am trying  
>> to add some RT plugins, including RTFM and RT-Authen-ExternalAuth,  
>> with no much success.
>>
>> Here is the portion of my shell script to build the vessel that  
>> pertains to RTFM:
>>
>> # RTFM installation
>> echo 'configure: %%PERL%% Makefile.PL PREFIX=%%INSTALL_BASE%%/local/ 
>> plugins/RT-FM
>> install: %%MAKE%% install' > /home/wencks/rt_vessel/shipwright/tmp/ 
>> shipwright_RTFM_build
>> $IMPORT file:/home/wencks/rt_vessel/shipwright/RTFM-2.4.2.tar.gz -- 
>> build-script /home/wencks/rt_vessel/shipwright/tmp/shipwright_RT
>> FM_build
>>
>> However, I keep getting errors that seem like the Perl Makefile.PL  
>> command is being executed without the PREFIX option. I can run the  
>> Makefile.PL command from the command line with the PREFIX option  
>> shown above and not get any errors
>>
>> Does anyone have better suggestions for importing RT plugins into  
>> shipwright vessels?
>>
>> Thanks in advance... Sam
>
>> _______________________________________________
>> Shipwright mailing list
>> Shipwright at lists.bestpractical.com
>> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/shipwright
>
>
> -- 
> _______________________________________________
> Shipwright mailing list
> Shipwright at lists.bestpractical.com
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/shipwright








More information about the Shipwright mailing list