For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > March 2006 > Re: Howto Install a Perl Wrapper Module for a C Library in HomeDirectory









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Howto Install a Perl Wrapper Module for a C Library in HomeDirectory
Alan_C

2006-03-24, 7:00 pm

On Friday 24 March 2006 06:02, you wrote:
[ . . ]
> $ ./configure --prefix=3D~/tomypath


Where did I miss seeing that configure can be used as a part of the=20
installation of a Perl module?

[ . . ]
> Still, I got the same error report.
> Can't get it working.


<copied> from original post: =C2=A0 It returns:

Note (probably harmless): No library found for -lstree
Writing Makefile for Tree::Suffix
</copied>

http://search.cpan.org/src/GRAY/Tre....13/Makefile.PL

(at url) Those appear to be arguments that are passed to the WriteMakefile =
sub=20
routine that sub routine is inside of MakeMaker.pm

/usr/lib/perl5/5.8.8/ExtUtils/MakeMaker.pm

(path to MakeMaker.pm on my box)

I assume that there's some sort of variable expansion/interpolation going o=
n=20
there.

I don't know if it'd work to substitute /yourpath2lstree for the -lstree=20
that's in the Makefile.PL

I did: =C2=A0perldoc ExtUtils::MakeMaker

(no I didn't, actually instead, what I did is in the Konqueror address bar =
I=20
entered: =C2=A0#ExtUtils::MakeMaker

(I find that a fun way to view doc sometimes)

Such doc, amongst many others, listed:

perl '-V:install.*'

That outputs a listing of Eviron vars and their values relevant I guess to =
the=20
module installation.

I'm wondering if the Perl module install tries to access any something=20
different vars than the ones you showed you set for your own user environme=
nt=20
using .bash_profile =C2=A0(maybe not: on my box, as user or as root, the co=
mmand=20
perl '-V:install.*' =C2=A0 lists the same output results. =C2=A0 but, I don=
't have=20
anything set in .bash_profile

Interesting that:

http://www.cl.cam.ac.uk/~cpk25/libstree/

lists no other dependencies. =C2=A0So, given that you've access to a C comp=
iler as=20
a user then, unless is something else unawares that needs root priv. in ord=
er=20
to access, it appears that there should be a way to do what you want.

I'm trying to learn more of these sorts of things myself. =C2=A0So, if you =
find a=20
fix, please reply about it and what you found that's involved to make it=20
work.

Thanks.

=2D-=20
Alan C.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com