Thanks all,

I still haven't get around the problem of
installation.

My module in my machine resides in
/usr/lib/perl5/site_perl/5.8.0/Bio/Tools/Local/Plantgenome.pm
 and as I run 
 h2xs -n Bio::Tools::Local::Plantgenome
I get the a directory Bio and the module
Plantgenome.pm
as i get into the Bio directory which has the
architecture as Bio/Tools/Local/Plantgenome I get the
folowing files and directory

Changes  fallback  Makefile.PL  MANIFEST 
Plantgenome.pm  Plantgenome.xs  ppport.h  README  t

Then I made the changes in the Makefile.PL 
as you suggested me in your last mail.

Now my Makefile.PL looks like 
use 5.008;
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to
influence
# the contents of the Makefile that is written.
WriteMakefile(
    'INSTALLDIRS' => 'perl',
    'LIB' =>
'/usr/lib/perl5/site_perl/5.8.0/Bio/Tools',
    'NAME'              => 'Bio::Tools::Local::Plantgenome',
    'VERSION_FROM'      => 'Plantgenome.pm', # finds
$VERSION
    'PREREQ_PM'         => {}, # e.g., Module::Name => 1.1
    ($] >= 5.005 ?    ## Add these new keywords
supported since 5.005
      (ABSTRACT_FROM => 'Plantgenome.pm', # retrieve
abstract from module
       AUTHOR     => 'root <[EMAIL PROTECTED]>') : ()),
    'LIBS'              => [''], # e.g., '-lm'
    'DEFINE'            => '', # e.g., '-DHAVE_SOMETHING'
    'INC'               => '-I.', # e.g., '-I.
-I/usr/include/other'
        # Un-comment this if you add C files to link with
later:
    # 'OBJECT'          => '$(O_FILES)', # link all the C
files too
);
if  (eval {require ExtUtils::Constant; 1}) {
  # If you edit these definitions to change the
constants used by this module,
  # you will need to use the generated const-c.inc and
const-xs.inc
  # files to replace their "fallback" counterparts
before distributing your
  # changes.
  my @names = (qw());
  ExtUtils::Constant::WriteConstants(
                                     NAME         =>
'Bio::Tools::Local::Plantgenome',
                                     NAMES        =>
[EMAIL PROTECTED],
                                     DEFAULT_TYPE =>
'IV',
                                     C_FILE       =>
'const-c.inc',
                                     XS_FILE      =>
'const-xs.inc',
                                  );

}
else {
  use File::Copy;
  use File::Spec;
  foreach my $file ('const-c.inc', 'const-xs.inc') {
    my $fallback = File::Spec->catfile('fallback',
$file);
    copy ($fallback, $file) or die "Can't copy
$fallback to $file: $!";
  }
}

----------------------//End of Makefile.PL--------

I then ran:
perl Makefile.PL
make dist 
and I got the tar file
�Bio-Tools-Local-Plantgenome-0.01.tar.gz�

But as I take this file to some other machine (which
has linux 9 (red hat) as I have) and try to make I get
the following 
[EMAIL PROTECTED] Bio-Tools-Plantgenome-0.01]# perl
Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Bio::Tools::Plantgenome
-----//End of perl Makefile.PL---------

[EMAIL PROTECTED] Bio-Tools-Plantgenome-0.01]# make
cp Plantgenome.pm blib/lib/Bio/Tools/Plantgenome.pm
AutoSplitting blib/lib/Bio/Tools/Plantgenome.pm
(blib/lib/auto/Bio/Tools/Plantgenome)
/usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp 
-typemap /usr/lib/perl5/5.8.0/ExtUtils/typemap 
Plantgenome.xs > Plantgenome.xsc && mv Plantgenome.xsc
Plantgenome.c
Please specify prototyping behavior for Plantgenome.xs
(see perlxs manual)
gcc -c  -I. -D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2
-march=i386 -mcpu=i686 -g   -DVERSION=\"0.01\"
-DXS_VERSION=\"0.01\" -fPIC
"-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE" 
 Plantgenome.c
Running Mkbootstrap for Bio::Tools::Plantgenome ()
chmod 644 Plantgenome.bs
rm -f
blib/arch/auto/Bio/Tools/Plantgenome/Plantgenome.so
LD_RUN_PATH="" gcc  -shared -L/usr/local/lib
Plantgenome.o  -o
blib/arch/auto/Bio/Tools/Plantgenome/Plantgenome.so
chmod 755
blib/arch/auto/Bio/Tools/Plantgenome/Plantgenome.so
cp Plantgenome.bs
blib/arch/auto/Bio/Tools/Plantgenome/Plantgenome.bs
chmod 644
blib/arch/auto/Bio/Tools/Plantgenome/Plantgenome.bs
Manifying blib/man3/Bio::Tools::Plantgenome.3pm
---------------//End of output of make--------

And when I install with �make install� command in
another machine I get the following outputs

[EMAIL PROTECTED] Bio-Tools-Local-Plantgenome-0.01]#
make install
Installing
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Bio/Tools/Local/Plantgenome/Plantgenome.so
Installing
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Bio/Tools/Local/Plantgenome/Plantgenome.bs
Files found in blib/arch: installing files in blib/lib
into architecture dependent library tree
Installing
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Bio/Tools/Local/Plantgenome/autosplit.ix
Installing
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Bio/Tools/Local/Plantgenome.pm
Installing
/usr/share/man/man3/Bio::Tools::Local::Plantgenome.3pm
Writing
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Bio/Tools/Local/Plantgenome/.packlist
Appending installation info to
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/perllocal.pod
[EMAIL PROTECTED] Bio-Tools-Local-Plantgenome-0.01]#

---------------//End of output of make install--------

Still it is installing the module in
"/usr/lib/perl5/site_perl/5.8.0/Bio/Tools/i386-linux-thread-multi/auto/"
and I want it to be installed in
"/usr/lib/perl5/site_perl/5.8.0/Bio/Tools/"
where a new directory will be created Local having
Plantgenome module.

Would you please suggest a solution for this problem.

I got a reply (pasted below) from Michael, thanks to
Michael:

Its an architecture specific module (ie. has C code)
it belongs in an
architecture specific directory.

Don't worry, Perl will figure it all out.  If you have

/usr/lib/perl5/site_perl/5.8.0 in your @INC it will
find the i386... 
directories under it.

If you're trying to do something like build the module
on one machine
and then installing it on another, that likely won't
work unless they
have the same Perl binary or configuration (like, for
example, if they 
both
use the Perl shipped with Redhat).  
-----//END of Michael's reply------

With sincere regards,
Soumyadeep

__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

Reply via email to