monkfan has asked for the wisdom of the Perl Monks concerning the following question:
# .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # My path to the C library program export CFLAGS="-I $HOME/MyBioTool/libstree-0.4.2/include" export LDFLAGS="-L $HOME/MyBioTool/libstree-0.4.2/lib" PATH=$PATH:$HOME/bin: export PATH unset USERNAME export PERL5LIB=/home/monkfan/lib/perl5/site_perl/5.8.5/i686-linux:/ho +me/monkfan/lib/perl5/site_perl/5.8.5
Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible
Which also leads me nowhere.~/.cpan/build/Tree-Suffix-0.12$ perl Makefile.pl CFLAGS="$CFLAGS -I$HO +ME/MyBioTool/libstree-0.4.2/include" LDFLAGS="$LDFLAGS -L$HOME/MyBioT +ool/libstree-0.4.2/lib"
2. Add this line in my .bashrc :export LD_LIBRARY_PATH=/home/monkfan/MyBioTool/libstree-0.4.2/lib:${L +D_LIBRARY_PATH} export CFLAGS="-I $HOME/MyBioTool/libstree-0.4.2/include"; export LDFLAGS="-L $HOME/MyBioTool/libstree-0.4.2/lib";
3. Add this line in my Makefile.PL:export LIBRARY_PATH=$HOME/MyBioTool/libstree-0.4.2/lib
4. Do this:__BEGIN__ use strict; use ExtUtils::MakeMaker; WriteMakefile( NAME => 'Tree::Suffix', VERSION_FROM => 'lib/Tree/Suffix.pm', ABSTRACT_FROM => 'lib/Tree/Suffix.pm', AUTHOR => 'gray <gray@cpan.org>', PREREQ_PM => { 'Test::More' => 0 }, LIBS => [ '-L/home/monkfan/MyBioTool/libstree-0.4.2/lib -ls +tree' ], INC => '-I/home/monkfan/MyBioTool/libstree-0.4.2/include' + , clean => { FILES => 'Tree-Suffix-*' }, dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, ); __END__
Depending on the location you wish to install.$ perl Makefile.PL PREFIX=~/lib/ LIB=~/lib/ OR $ perl Makefile.PL PREFIX=~/lib/perl5/site_perl/5.8.5 LIB=~/lib/perl5/ +site_perl/5.8.5
|
---|