PDA

View Full Version : install old xml & png libs ?



craigni
12th May 2007, 10:04 PM
Hi Gurus, I'm trying to get a Canon iP3000 connected to a networked win xp box to print from FC6 64-bit (for, like, a week--arrrgh)

Came across this site: http://www.crn.com/white-box/167600449 which innocuously states:
rpm --install bjfilter-common-2.50-2.i386.rpm
rpm --install bjfilter-pixusip4100-lprng-2.50-2.i386.rpm
rpm --install bjfilter-pixusip4100-2.50-2.i386.rpm

I've whittled down the dependencies to two remaining:

sudo rpm --install bjfilter-pixusip3100-2.50-2.i386.rpm
error: Failed dependencies:
libpng.so.2 is needed by bjfilter-pixusip3100-2.50-2.i386
libxml.so.1 is needed by bjfilter-pixusip3100-2.50-2.i386

and there I'm stuck. I found sudo libxml-1.8.17-10.1.2.i386.rpm, but when I tried to install it, I got:
sudo rpm --install libxml-1.8.17-10.1.2.i386.rpm
package libxml-1.8.17-15.fc6 (which is newer than libxml-1.8.17-10.1.2) is already installed

On my system,
$ find /usr/lib -name 'libxml*' -print
/usr/lib/libxml2.so.2
/usr/lib/libxml2.so.2.6.27
/usr/lib/libxml2.a
/usr/lib/firefox-2.0.0.3/components/libxmlextras.so
/usr/lib/pkgconfig/libxml-2.0.pc
/usr/lib/libxml2.so

Any ideas what to do? Should I link libxml.so.1 to something in /usr/lib? (seems like a bad idea to me) And any ideas how to get the old libpng installed as well?

Many TIA,
Craig

craigni
14th May 2007, 12:03 AM
Ok, I figured it out. For those of you who are trying to print from FC6 to a Windows xp networked Canon Pixma iP3000 printer, here are some more robust instructions, combined from
http://www.crn.com/white-box/167600449 (Thanks A. Lizard)
http://lists.freestandards.org/pipermail/printing-user-canon/2005/002330.html (Thanks Salman Suliman Mohammed)
http://www.mepis.org/node/3458 (Thanks Don54321)

To install the Pixma iP3000 driver on FC6:
------------------------------------------

Probably best before anything to yum install the following:

$ sudo yum install gutenprint gutenprint-cups gutenprint-devel gutenprint-extras gutenprint-foomatic
$ sudo yum install libxml gdk* libgtk* gtk+*

You'll need to first install the following retro rpms (sudo rpm --install <file.rpm>):
(find them on http://rpmfind.net/linux/rpm2html/search.php)

glib-1.2.10-26.fc6.i386.rpm
glib-devel-1.2.10-26.fc6.i386.rpm
gtk+-1.2.10-55.fc6.i386.rpm
libpng10-1.0.21-2.fc7.src.rpm
libxml-1.8.17-10.1.2.i386.rpm

Then install

bjfilter-common-2.50-2.i386.rpm
bjfilter-pixusip3100-2.50-2.i386.rpm
bjfilter-pixusip3100-lprng-2.50-2.i386.rpm

For bjfilter-pixusip3100-2.50-2.i386.rpm, you'll need to install it without deps
$ sudo rpm --install --nodeps bjfilter-pixusip3100-2.50-2.i386.rpm

and make the following links:

$ sudo ln -s /usr/lib/libpng12.so.0 /usr/lib/libpng.so.2
$ sudo ln -s /usr/lib/libxml.so.2 /usr/lib/libxml.so.1

$ cd /usr/share/cups/model/
$ sudo cp canonpixusip3100.ppd canonpixusip3100.ppd1

This gives you a copy of the of the .ppd you're about to patch. You can to fall back on this in case something doesn't work. Next:

$ sudo vi canonpixusip3100.ppd (or whatever editor you like)

Start with changing the ID string on top of the file just below the GNU General Public License (GPL). You'll want some way to distinguish between your patched file and the original that will show up from within the CUPS selection wizard as you see above. Do it like so:

:
*NickName: "Canon PIXUS iP3100 Ver.2.50

Change to:

*NickName: "Canon PIXUS iP3100 Ver.2.50x

Next, do a "Where Is" using control-W in the bottom menu to locate the following line in the printer definition file; simply type or copy/paste it into the open line at the bottom of the screen after the word Search: you will see after you hit control-W/:

*CloseUI: *InputSlot

Delete the following lines (go to the top line and hit control-K to delete a line at a time):

*OpenUI *Resolution/Output Resolution: PickOne
*DefaultResolution: 600
*Resolution 600/600 dpi: "<>setpagedevice"
*CloseUI: *Resolution

Then replace them with these new lines:

*OpenUI *Resolution/Output Resolution: PickOne
*DefaultResolution: 600
*Resolution 600/600 dpi: "<>setpagedevice"
*Resolution 1200/1200 dpi: "<>setpagedevice"
*Resolution 2400/2400 dpi: "<>setpagedevice"
*CloseUI: *Resolution

*OpenUI *CNQuality/Quality: PickOne
*DefaultCNQuality: 3
*CNQuality 2/High: "2"
*CNQuality 3/Normal: "3"
*CNQuality 4/Standard: "4"
*CNQuality 5/Economy: "5"
*CloseUI: *CNQuality

To add the printer:
-------------------

Log into the Printer wizard as Administrator.

- When you launch the Add printer wizard, choose SMB shared printer.

- In the next screen(user identification), choose Anonymous(no login/no password)

- Proceed to the next screen, and SCAN your network.(This is where you will get the NT_ACCESS_DENIED message if you try to access your Windows network)

- Now Don't touch anything, and go BACK one step to the previous screen (User identification).

- In the user identification screen, choose guest(login = "guest").

- Proceed to the next screen. DO NOT repeat a scan. Just try to access your Windows network in the displayed tree. You should magically see your Windows printer appear without any whining about access.

Choose the PIXUSIP3100 option under the Canon menu when prompted for the driver

Enjoy
Craig