Menu

#52 swig/perl build fails on SuSE 9.x

closed-fixed
None
5
2008-01-07
2005-07-02
Jamie M
No

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

Discussion

  • Jamie M

    Jamie M - 2005-07-02

    swig/perl makefile fix for perl paths

     
  • Mario Fortier

    Mario Fortier - 2005-07-03
    • assigned_to: nobody --> konieczp
     
  • Mario Fortier

    Mario Fortier - 2007-02-24
    • assigned_to: konieczp --> fortier
     
  • Mario Fortier

    Mario Fortier - 2007-02-24

    Logged In: YES
    user_id=1123
    Originator: NO

    This is now in SVN.

    Thanks for the contribution.

    \Mario

     
  • Mario Fortier

    Mario Fortier - 2008-01-07
    • status: open --> closed-fixed
     

Log in to post a comment.