[sane-devel] Re: [hpoj-devel] Installing hpoj 0.8... (SANE)

David Paschal paschal@rcsis.com
Tue, 21 Aug 2001 21:51:32 -0700

Hi, Alain.  Offhand I don't know what the problem is, although I think it's
normally not necessary (and possibly undesirable) to put /usr/local/lib/sane
into ld.so.conf (/usr/local/lib should be enough).  Also, make sure you
don't already have another copy of SANE installed, especially one which
was installed along with your Linux distribution.  It would be helpful to
check the file "config.log" in the sane-frontends build directory, because
it should show exactly where things went wrong.  I'm also CCing the
sane-devel mailing list, since this problem really relates to SANE, not

Did you have any luck with xsane, which is a separate SANE frontend package?


malicorne@t-online.de wrote:
>   I've downloaded the latest 0.8 hpoj.  The first part of the installation, 
> after compiling, went just fine.  I get the ID string from the PSC 500.  But 
> now I'm afraid the process is stalled at installing the SANE front-ends.  
> Configuring and doing a make install of the backends (SANE 1.0.5) was just 
> fine, without any config switches.  But the front-ends configure cannot find 
> them.  I know this is not pertaining directly to hpoj, and perhaps it has
> more to do with Unix 101 than anything else, but if there's a good soul
> around to  shed a light on this I would appreciate very much.  
>   I unpacked hpoj, SANE and Xsane in /usr/local/src
>   I have the following ld.so.conf:
> /usr/X11R6/lib
> /usr/local/lib
> /usr/local/lib/sane
> (I added the last line)
> I ran ldconfig all right.
>   I have set the following env. variables:
> SANE_CONFIG=/usr/local/bin
> LD_LIBRARY_PATH=/usr/local/lib
>   I even copied out of desesperation everything (libs, execs) SANE in /usr/lib and /usr/bin.
>   But still, the ./configure from sane-frontends reports:
> *** Could not run SANE test program, checking why...
> *** The test program compiled, but did not run. This usually means
> *** that the run-time linker is not finding SANE or finding the wrong
> *** version of SANE. If it is not finding SANE, you'll need to set your
> *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
> *** to the installed location.  Also, make sure you have run ldconfig if that
> *** is required on your system.
> ***
> *** If you have an old version installed, it is best to remove it, although
> *** you may also be able to get things to work by modifying LD_LIBRARY_PATH
> ***
> *****************************************************************
> ERROR: SANE is needed for compiling sane-frontends
>      - if you installed SANE as rpm make sure you also included
>        sane-devel
> *****************************************************************
>   If anyone has an idea of how to solve this, please do let me know!
> Regards,
> Alain