On a SuSE 9.2 or 9.3 install (the only ones I've tried
ta-lib with) the
ta-lib/swig/make/perl/linux/g++/Makefile fails.
This is because the PERL5_INCLUDE variable is incorrect.
It is:
PERL5_INCLUDE=/usr/lib/perl/$(PERL5_VERSION)/CORE
It works when this is changed to:
PERL5_INCLUDE=$(shell perl -V:installarchlib | perl -ne
'print $$1 if m/installarchlib='\''(.*)'\''/')/CORE
The same goes for the INSTDIR variable.
The current one is wrong:
INSTDIR=/usr/local/lib/perl/$(PERL5_VERSION)
But it works when changed to:
INSTDIR=$(shell perl -V:installprivlib | perl -ne
'print $$1 if m/installprivlib='\''(.*)'\''/')
NOTE: I'm not a perl programmer - the changes above
work for me, but I've no idea if they're appropriate
for other environments.
I've attached a patch with these two changes.
jamie
swig/perl makefile fix for perl paths
Logged In: YES
user_id=1123
Originator: NO
This is now in SVN.
Thanks for the contribution.
\Mario
Contributed patch, already applied. TA-Lib has moved to GitHub and this SourceForge tracker is retired.
This ticket carried a contributed patch (
ta-lib_swig.patch) and was resolved asclosed-fixedon SourceForge in 2005. It is accounted for in the final SourceForge review: https://github.com/TA-Lib/ta-lib/issues/30No further support is provided on SourceForge. Please send patches as pull requests on GitHub instead:
Thank you for the contribution.