Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

How to tell cpan where a missing library is?

by cantelow (Initiate)
on Apr 18, 2014 at 19:31 UTC ( [id://1082811]=perlquestion: print w/replies, xml ) Need Help??

cantelow has asked for the wisdom of the Perl Monks concerning the following question:

Greetings,

On redhat-

I'm coming up unsuccessful trying to install the SAVI module with the command:

cpan SAVI

-probably because of this message when I try:

   Warning (mostly harmless): No library found for -lsavi

But libsavi.so is available at /opt/sophos-av/lib/libsavi.so. Can someone point me to how to tell cpan where this is? I tried softlinks in /usr/lib and /lib pointing to /opt/sophos-av/lib/libsavi.so, but that doesn't do the trick.

Thanks tons!

Replies are listed 'Best First'.
Re: How to tell cpan where a missing library is?
by Anonymous Monk on Apr 18, 2014 at 20:02 UTC
      Many thanks for your monklike patience- I should have found and read the README file. The cpan command still doesn't find the library, but proceeding with fixing the Makefile and running perl Makefile.PL and make, I now come up with:

      sav_if/s_comput.h:662:4: error: #error Unsupported GNU C/C++ target hardware platform

      This looks to me like a sophos rather than a perl bug or inavailability, the code causing this error being:
      /* * Hardware platform. */ # if defined(__i386__) # define __SOPHOS_I386__ # elif (defined(__hppa__) && defined(_PA_RISC1_1)) # define __SOPHOS_HP_PA__ # elif defined(__sparc__) # define __SOPHOS_SPARC__ # elif (defined(_POWER) || defined(__ppc__) || defined(__POWERPC__) || + defined(__PPC__)) # define __SOPHOS_POWERPC__ # elif (defined(TARGET_CPU_68K) || defined(__CFM68K__) || defined(m68k +) || defined(_M_M68K)) # define __SOPHOS_68000__ # elif defined(__alpha__) # define __SOPHOS_ALPHA__ # elif defined (__s390__) # define __SOPHOS_S390__ # elif defined(__VAX) # define __SOPHOS_VAX__ # else # error Unsupported GNU C/C++ target hardware platform # endif
      I don't understand this well, but I'll see what I can find out. Thanks again.

      Ann

        What OS are you on exactly, and what is the compiler being used?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1082811]
Approved by tobyink
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2024-04-25 19:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found