Hi,

Quoting Michael G Schwern <[EMAIL PROTECTED]>:

Florian Scharinger wrote:
Hi,

I'm trying to get MakeMaker to create a Makefile for me which should do
the following, but I fail in one part:

 * Put my Perl modules to $prefix/sbin

Uhh, Perl modules in sbin?  You sure?

Well, that's because of "historical" reasons, the orginal .pl file was there, so I placed the modules there as well for a start. But I'm happy to be convinced to place it somewhere else when I have sorted out the other trouble...



 * Put my Perl script to $prefix/sbin as well
 * Put some binary file to $prefix/bin

The last step doesn't work since the binary files end up in $prefix/sbin
as well. I haven't found a way to tell MakeMaker to put real binaries in
a specific directories, despite I have set
  INSTALLSITEBIN  => '$(PREFIX)/bin'

in my Makefile.PL (INSTALLDIRS is 'site').

Am I asking MakeMaker here something unreasonable, or what the heck am I
doing wrong? ;-)

Posting to the wrong list for starters. :)  MakeMaker is discussed on
makemaker@perl.org

My bad.


Without seeing the rest of the Makefile.PL there's not much which can be
done.  Can you show us the whole file?

Sure; you will immediately notice that I'm not particular familiar with MakeMaker and most of the settings are just playing around and see what works :)



use ExtUtils::MakeMaker;

my @bin = ('bin/glite-iperfd');

WriteMakefile(
        NAME            => 'GLite::E2emonit::Iperf',
        VERSION_FROM    => 'lib/GLite/E2emonit/Iperf.pm',
        EXE_FILES           => [EMAIL PROTECTED],
NORECURS => 1, # don't recurse into sub-dirs to find other Makefile.PL's
        PREREQ_PM               => {'Test::More' => 0.62,
                                    'Test::Exception' => 0.23,
                                    'Test::MockObject' => 1.07 },
        INSTALLSITEARCH => '$(PREFIX)/sbin',
        INSTALLARCHLIB  => '$(PREFIX)/sbin',
        INSTALLVENDORARCH => '',
        INSTALLPRIVLIB  => '$(PREFIX)/sbin',
        INSTALLSITELIB  => '$(PREFIX)/sbin',
        INSTALLSCRIPT   => '$(PREFIX)/sbin',
        INSTALLSITEBIN  => '$(PREFIX)/bin',

);

Note, the binary file I want to place in 'bin' is not mentioned here. I originally had placed it in EXE_FILES entry, but realised that that is not meant for binaries, but Perl scripts (at least that's how I understand it). The 'glite-iperfd' btw is not a Perl script, but a shell script. MakeMaker just takes all files from ./bin (that's where also my binary file is located) and places them into $prefix/sbin.

Cheers,
Florian.






Reply via email to