Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

path issues? installed module not found

by ethrbunny (Monk)
on Mar 07, 2008 at 15:03 UTC ( #672791=perlquestion: print w/ replies, xml ) Need Help??
ethrbunny has asked for the wisdom of the Perl Monks concerning the following question:

Good morning - I was presented with a piece of code that I need get running. It uses 'Algorithm::Cluster' which I am trying to get working.

I went through the motions of 'perl Makefile.pl', 'make test' and 'make install'. Everything seemed to run properly. When I go to run the script I'm told that the module can't be found. Indeed, the path that is presented doesn't include anything in the 5.8.8 tree. I attempted to add the relevant directories using 'use lib <path>'. Unfortunately this just gave me a different error 'undefined symbol: PL_sv_undef'. I did some searching on this and found some nodes here. EG I tried rebuilding with POLLUTE=1.

This app does work on Windows after I got the 'Algorithm::Cluster' installed. Unfortunately it needs to run on Linux - hence my issues.

This will doubtless prove to be 100% ignorance on my part. I have tried to RTFM but have failed to find the proper query yet. Bring the flames - provided the truth lies therein.

Comment on path issues? installed module not found
Re: path issues? installed module not found
by TimButterfield (Monk) on Mar 07, 2008 at 15:35 UTC
    I was recently called in to fix a perl problem where a script broke when moved to a new server. In this case, the perl being used turned out to be the version included with Oracle and not that installed with the OS. There were two different versions of perl installed on the same machine with different libraries/versions in each. Once I had them update LWP on the OS version of perl and to use that version of perl and not the version installed with Oracle, the script worked fine again. I just wanted to mention a possibility for you to check.
Re: path issues? installed module not found
by olus (Curate) on Mar 07, 2008 at 15:48 UTC
    I went through the motions of 'perl Makefile.pl', 'make test' and 'make install'.

    Have you skipped the make step?

      D'oh! No - I did actually do that. I remember specifically as I had to copy the files from our root-squashed file server into my local temp space in order to get it to run.

      With any normal perl build process there is no need to run make if you run make test. The test target will do the build process as needed before executing the tests. Bare make is only really needed if you want to build but explicitly not test afterwards.

      ---
      $world=~s/war/peace/g

Re: path issues? installed module not found
by BaldManTom (Pilgrim) on Mar 07, 2008 at 18:17 UTC
    Out of curiousity, does your linux box have multiple perls installed? If so, perhaps your script is running via a different perl than Algorithm::Cluster was installed under?
      I only call my scripts via /usr/bin/perl so Im assuming (naively) that there is only one version installed.

      aeolus (/vol0/homes/person/progs)$ /usr/bin/perl -v This is perl, v5.8.5 built for i386-linux-thread-multi


      Is THAT the problem? I see other versions in the path but looking again I don't see anything more recent than 5.8.5.

      Well I'll be tarred and feathered. (likely). I'll ask for an upgrade and see what happens.
        aeolus (/vol0/homes/person/progs)$ /usr/bin/perl -v
        Run which perl instead (will tell you the perl binary you're actually using).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://672791]
Approved by olus
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2014-09-01 21:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (17 votes), past polls