Think about Loose Coupling | |
PerlMonks |
Installing Perl Wrapper Module for a C Library (Tree::Suffix) Locallyby monkfan (Curate) |
on Mar 15, 2006 at 06:05 UTC ( [id://536784]=perlquestion: print w/replies, xml ) | Need Help?? |
monkfan has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I am attempting to install a CPAN module, Tree::Suffix in my local home directory. First of all I have installed the required libstree library in my particular home directory, namely $HOME/MyBioTool/libstree-0.4.2. I have also set the environment like the following in my .bash_profile, so that the module can call it. The bash_profile looks like this:
However, when I tried installing the Tree::Suffix module using CPAN shell, I found error message that seems to fail to recognize where does my C library is stored. It returns something like this in the end:
Besides, I also tried a manual method to install the module: Which also leads me nowhere. Did I miss anything here? Update: I repositioned the Makefile.PL in front, as suggested by fizbin. It gives: doesn't recognize CFLAGS as MakeMaker parameter name. Update 2: Finally I managed to get it installed
What I did is the following steps:
1. Add this line in my .bash_profile:
2. Add this line in my .bashrc : 3. Add this line in my Makefile.PL: 4. Do this: Depending on the location you wish to install. 5. Followed by standard: make, make test, make install Regards, Edward
Back to
Seekers of Perl Wisdom
|
|