On 18Jan2008 20:27, jimweir <[EMAIL PROTECTED]> wrote:
| I am attempting to install a new printer to suse 10.3 
| I can find the printer model in yast (Samsung CLP-300. I already have
| a Samsung  ML-1610 installed and running no problems) but whenever i
| install and print test page I get an error massage informing that I
| need to install the proper driver.
| I have copied the rpm from the cd disc that came with it and tried to
| install this but have recived the following dependancy error.
| Failed dependencies:
|         libpng.so.2 is needed by cups-1.1.15-1.i386
| Question is  libpng.so.2 something I now need to download and  install
| and if so: How do i do it?

Ok, the RPM you have seems to be built against an out of date libpng.

I'm on Fedora, but the same principles will apply, so:

  [/home/cameron]zoob*> rpm -q libpng
  libpng-1.2.22-1.fc7
  [/home/cameron]zoob*> rpm -ql libpng
  /usr/lib/libpng.so.3
  /usr/lib/libpng.so.3.22.0
  /usr/lib/libpng12.so.0
  /usr/lib/libpng12.so.0.22.0
  /usr/share/doc/libpng-1.2.22
  /usr/share/doc/libpng-1.2.22/CHANGES
  /usr/share/doc/libpng-1.2.22/LICENSE
  /usr/share/doc/libpng-1.2.22/README
  /usr/share/doc/libpng-1.2.22/TODO
  /usr/share/doc/libpng-1.2.22/example.c
  /usr/share/doc/libpng-1.2.22/libpng-1.2.22.txt
  /usr/share/man/man5/png.5.gz

You can see my machine has libpng.so.3, and yours may well too.

There are three approaches to fixing this issue. The clean one is to
fetch a matching RPM as you suggest, but it may be hard to find.

This search:
  http://www.google.com.au/search?q=libpng.so.2+suse+rpm
has some promising links, including people with exactly your problem.

The next cleanest it to fetch the right version of libpng source and
build a library, but then you have to either install it in the system
areas at risk of treading on existing library stuff (specificly, the
existing more modern libpng that matches the rest of your system).

The third, a lazy hack, is to make a symlink:

  cd /usr/lib
  ln -is libpng.so.3 libpng.so.2

You may need to rerun ldconfig at this point.

This fakes up a libpng.so.2. Now, library major numbers are supposed to
change when the binary API changes, so this may well not provide the
needed functionality. But it's very quick and worth a try.

Having faked up a libpng.so.2, now force the install of the rpm:

  rpm -ivh --nodeps cups-1.1.15-1.i386.rpm

That will at least let you test. You will need --nodeps for approach 2 as
well, since building from source won't affect the rpm db.
-- 
Cameron Simpson <[EMAIL PROTECTED]> DoD#743
http://www.cskk.ezoshosting.com/cs/

But then, I'm only 50. Things may well get a bit much for me when I
reach the gasping heights of senile decrepitude of which old Andy
Woodward speaks with such feeling.
        - Chris Malcolm, [EMAIL PROTECTED], DoD #205


To unsubscribe from this list, please email [EMAIL PROTECTED] & you will be 
removed. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/LINUX_Newbies/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/LINUX_Newbies/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to