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:
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).LDLAGS=LDFLAGS-L/home/ewijaya/MyBioTool/libstree-0.4.2/lib .... CFLAGS=-I/home/monkfan/MyBioTool/libstree-0.4.2/include
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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |