Private Messages Options Search Blogs Images Chat Cam Portals Calendar FAQ's Join  
Asylum Forums : Powered by vBulletin version 2.2.8 Asylum Forums > WIT - Whore Institute of Technology > Trapped in dependency hell
  Last Thread   Next Thread
Author
Thread [new thread]    [post reply]
squee
the amen break

Registered: Jul 2001
Location: Norfolk, VA
Posts: 4678

Trapped in dependency hell

I never got my old Dell all-in-wonder printer to work right with Linux. Though it would print from the CENTOS box, it never functioned correctly as a network printer, and the scanner never worked.

So, I was overjoyed to find a used HP OfficeJet 6110 by way of Freecycle. It was up and running on the CENTOS box in about 5 minutes.

So, in order to get it working as a network printer, I followed a link macker gave me a while back about installing the CUPS windows drivers. Here's were things get annoying.

I installed CUPS 1.2.1 from source (./configure, make, make install all went off without a hitch). The windows drivers require CUPS >= 1.2, but the RPM says I still have CUPS 1.1.2 installed.

Um...ok. I figured I'd install from source and see if that made any difference.

The source distribution comes with no configure script. Make results in one line of text: "Type MAKE INSTALL to install the CUPS driver files." So I enter that. I see it installing a few files--but here's the kicker: several files that are supposed to be installed are not. That is, the CUPS documentation says to move several files to a specific directory so that they can be installed via samba when you add the network printer from a windows box, yet the install procedure does not produce them. So far as I can tell, they are not included.

I know this probably has to do with me being a Linux noob, but on the other hand, about 90% of software on Linux appears to have been created by someone who assumes nobody but him will ever use it, and then only on the machine in his living room ("What? What do you mean you don't have the custom drivers I wrote on a napkin back in 2003? Sucks to be you, works on my box just fine!")

Any help would be greatly appreciated.

__________________
What does polite society know of the secret hearts of men?
What shows the shuttered window but all the evil you can imagine?

Report this post to a moderator | IP: Logged

Old Post 06-13-2006 03:57 AM
squee is offline Click Here to See the Profile for squee Click here to Send squee a Private Message Find more posts by squee Add squee to your buddy list [P] Edit/Delete Message Reply w/Quote
Trenchant_Troll
ad hominid

Registered: Mar 2004
Location: USA
Posts: 24302

Now maybe it's just me, but each and every time that I read one of these posts of yours, I thank god that I am not you.

__________________
Politicians are like diapers, they should be changed often, and for the same reason.

Report this post to a moderator | IP: Logged

Old Post 06-13-2006 04:09 AM
Trenchant_Troll is offline Click Here to See the Profile for Trenchant_Troll Click here to Send Trenchant_Troll a Private Message Find more posts by Trenchant_Troll Add Trenchant_Troll to your buddy list [P] Edit/Delete Message Reply w/Quote
macker
Holy Me-el

Registered: Nov 2000
Location: UK
Posts: 4736

Re: Trapped in dependency hell

quote:
Originally posted by squee
I installed CUPS 1.2.1 from source (./configure, make, make install all went off without a hitch). The windows drivers require CUPS >= 1.2, but the RPM says I still have CUPS 1.1.2 installed.


Did you change the prefix that cups installs itself as? As it currently stands you probably have one version of cups under /usr and another under /usr/local.

quote:
several files that are supposed to be installed are not. That is, the CUPS documentation says to move several files to a specific directory so that they can be installed via samba when you add the network printer from a windows box, yet the install procedure does not produce them. So far as I can tell, they are not included.


Which files do you think are missing? I've looked at the windows driver tarball and it seems complete to me.

Part of the problem might be related to the prefix stuff up top. The drivers rely on cups-config to place the drivers in the right place, which won't work if you have two differing version of cups installed in different places.

__________________
Expecting people to be smart team players is like looking for double Ds in an oriental brothel.

Report this post to a moderator | IP: Logged

Old Post 06-13-2006 09:56 AM
macker is offline Click Here to See the Profile for macker Click here to Send macker a Private Message Visit macker's homepage! Find more posts by macker Add macker to your buddy list [P] Edit/Delete Message Reply w/Quote
squee
the amen break

Registered: Jul 2001
Location: Norfolk, VA
Posts: 4678

This is probably correct--I was trying to install CUPS 1.2 over 1.1-something. However, last time I removed cups (via Yum) it blew away gnome and several other packages as well, so I figured that this time it would just overwrite the existing version...not sure what you mean by changing the prefix tho, can you elaborate?

__________________
What does polite society know of the secret hearts of men?
What shows the shuttered window but all the evil you can imagine?

Report this post to a moderator | IP: Logged

Old Post 06-13-2006 06:35 PM
squee is offline Click Here to See the Profile for squee Click here to Send squee a Private Message Find more posts by squee Add squee to your buddy list [P] Edit/Delete Message Reply w/Quote
squee
the amen break

Registered: Jul 2001
Location: Norfolk, VA
Posts: 4678

Using the windows drivers requires the following files:
cups6.ini (got it)
cupsui6.dll (got it)
cupsdrv6.dll (missing)
ps5ui.dll (missing)
pscript.hlp (missing)
pscript.ntf (missing)
pscript5.dll (missing)

This is after trying to install the windows driver RPM using --nodeps (assuming that, even tho RPM doesn't think I meet the dependency requirements, I probably in fact do if the 1.2 install went off without errors).

__________________
What does polite society know of the secret hearts of men?
What shows the shuttered window but all the evil you can imagine?

Report this post to a moderator | IP: Logged

Old Post 06-13-2006 06:45 PM
squee is offline Click Here to See the Profile for squee Click here to Send squee a Private Message Find more posts by squee Add squee to your buddy list [P] Edit/Delete Message Reply w/Quote
macker
Holy Me-el

Registered: Nov 2000
Location: UK
Posts: 4736

When you run ./configure, it by default installs files with a prefix of /usr/local(so libraries go into /usr/local/lib, binaries into /usr/local/bin, man pages into /usr/local/man, etc), whereas distributions install their packages with a prefix of /usr(so /usr/lib, etc). This is done deliberately as the assumption is made when you're installing software by hand compiling it, you're doing it outside of the distributions package management system.

The easiest way to change the prefix is to re-run configure with "--prefix=/usr". You should then just be able to run "make install" again, however it's worth keeping in mind that a future yum update of cups might stomp on your installed files.

As for the missing files, you should read the documentation more carefully. The missing files are the MS Postscript drives. From the readme for the windows cups drivers:

quote:

This driver is implemented as rendering and user-interface
modules for the Microsoft PostScript printer driver
(PSCRIPT5.DLL and PS5UI.DLL) which is included with the
corresponding Microsoft Windows 2000, XP, or 2003 operating
system.



Depending on your luck you'll either have the files on your XP/2000 machine already, otherwise you'll need either get them off a XP CD or install the Adobe Universal PS driver(link).

__________________
Expecting people to be smart team players is like looking for double Ds in an oriental brothel.

Report this post to a moderator | IP: Logged

Old Post 06-13-2006 07:54 PM
macker is offline Click Here to See the Profile for macker Click here to Send macker a Private Message Visit macker's homepage! Find more posts by macker Add macker to your buddy list [P] Edit/Delete Message Reply w/Quote
squee
the amen break

Registered: Jul 2001
Location: Norfolk, VA
Posts: 4678

Ok, I think I got it.

Will report after trying the install again this afternoon.

__________________
What does polite society know of the secret hearts of men?
What shows the shuttered window but all the evil you can imagine?

Report this post to a moderator | IP: Logged

Old Post 06-13-2006 08:29 PM
squee is offline Click Here to See the Profile for squee Click here to Send squee a Private Message Find more posts by squee Add squee to your buddy list [P] Edit/Delete Message Reply w/Quote
squee
the amen break

Registered: Jul 2001
Location: Norfolk, VA
Posts: 4678

No joy. I installed per your instructions--yum and RPM still report that I am running the older version of cups, and the windows drivers will thus not install. Attempting to install with --nodeps but RPM reported that that rpm was already installed. Placed all of the driver files in the correct directory...

quote:
[squee@localhost drivers]# ls -latr
total 1508
-r-xr-xr-x 1 root root 26038 Jul 21 2001 pscript.hlp
-r-xr-xr-x 1 root root 792644 Jul 21 2001 pscript.ntf
-r-xr-xr-x 1 root root 455168 Aug 17 2001 pscript5.dll
drwxr-xr-x 11 root root 4096 Jun 12 22:11 ..
-rw-r--r-- 1 root root 13672 Jun 12 22:49 cupsui6.dll
-rw-r--r-- 1 root root 12568 Jun 12 22:49 cupsps6.dll
-rw-r--r-- 1 root root 72 Jun 12 22:49 cups6.ini
-rw-r--r-- 1 root root 803 Jun 12 22:49 cups6.inf
-r-xr-xr-x 1 root root 129024 Jun 13 16:48 ps5ui.dll
drwxr-xr-x 2 root root 4096 Jun 13 17:26 .
...yet it is still unpossible to install the printer from the windows box.

Oh, and the advice from the CUPS forum, which is to run rpmbuild -ta --without dbus cups-1.2.1-source.tar.bz2, does not work either.

It is only at this point, after getting fruitless assistance from one of the developers and reading horror story after horror story of how shitty CUPS is to work with, that my opinion of the package and its developers is beginning to slip. I think it was "Oh, we forgot to update the man page for cupsaddsmb" that did it.

__________________
What does polite society know of the secret hearts of men?
What shows the shuttered window but all the evil you can imagine?

Report this post to a moderator | IP: Logged

Old Post 06-13-2006 10:37 PM
squee is offline Click Here to See the Profile for squee Click here to Send squee a Private Message Find more posts by squee Add squee to your buddy list [P] Edit/Delete Message Reply w/Quote
macker
Holy Me-el

Registered: Nov 2000
Location: UK
Posts: 4736

Got it to work here with two vmware instances without issues, so I'm guessing you're either missing something or managed to break something with your custom install of CUPS.

You could try just printing to CUPS directly without the Samba stuff(the procedure is something along the lines of binding CUPS to the external interface, letting your subnet talk to the CUPs print, and then setting up an Internet based printer in Windows using the Generic -> Microftsoft Imagesetter driver).

__________________
Expecting people to be smart team players is like looking for double Ds in an oriental brothel.

Report this post to a moderator | IP: Logged

Old Post 06-15-2006 09:18 AM
macker is offline Click Here to See the Profile for macker Click here to Send macker a Private Message Visit macker's homepage! Find more posts by macker Add macker to your buddy list [P] Edit/Delete Message Reply w/Quote
BROKEN_LADDER
A DINGO ATE MY ZOGBY

Registered: Mar 2005
Location: SEATTLE
Posts: 1932

ubuntu

__________________
TAXATION = THEFT
GOVERNMENT = MAFIA

Report this post to a moderator | IP: Logged

Old Post 07-03-2006 03:16 AM
BROKEN_LADDER is offline Click Here to See the Profile for BROKEN_LADDER Click here to Send BROKEN_LADDER a Private Message Visit BROKEN_LADDER's homepage! Find more posts by BROKEN_LADDER Add BROKEN_LADDER to your buddy list [P] Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 07:24 PM. Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread

Forum Jump:
 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

< Contact Us - The Asylum >

Powered by: vBulletin Version 3.0.6
Copyright ©2000 - 2002, Jelsoft Enterprises Limited.
Copyright © 2000- Imaginet Inc.
[Legal Notice] | [Privacy Policy] | [Site Index]