Two things -

1. Hm, I get the sense you come from a C background. If that's right, I can see why you would pass the flags as a parameter to perl. However, when it says

 Can't open perl script "CFLAGS=-I /home/ewijaya/MyBioTool/libstree-0.
+4.2/include": No such file or directory.
I think it's interpreting your command as the flags being the script, and since that's not what you want, nor will it work, it gives an error. I'd say cd to the place where you untarred the Tree::Suffix install files, and run perl Makefile.pl, and see what happens. If that works, try make, then make test.

2. Re: your variables, look at:

LDLAGS=LDFLAGS-L/home/ewijaya/MyBioTool/libstree-0.4.2/lib .... CFLAGS=-I/home/monkfan/MyBioTool/libstree-0.4.2/include
See how LDFLAGS is different from what you have set in your .bash_profile? (Which, by the way, I think .bash_profile is for login only; if you make the changes to ~/.bashrc, you don't need to logout and log back in for changes to take effect, you can just do source ~/.bashrc. See here for more info (from a google search for .bash_profile).

So, you need to fix LDFLAGS... not sure why it's happening for you; although when that sort of thing has happened to me before, it was because I mistyped a command to set a variable that had already been set in my .bashrc file. To do a quick fix, you could try running the line from your .bash_profile, and seeing if it's set correctly, like so -

prompt> export LDFLAGS="-L $HOME/MyBioTool/libstree-0.4.2/lib" prompt> printenv LDFLAGS |---> this command should give you: -L $HOME/MyBioTool/libstree-0.4.2/lib

-- Burvil


In reply to Re^3: Installing Perl Wrapper Module for a C Library (Tree::Suffix) Locally by bowei_99
in thread Installing Perl Wrapper Module for a C Library (Tree::Suffix) Locally by monkfan

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.