WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: samsung SCX-4521F multi function problem with cups  (Read 16450 times)

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
samsung SCX-4521F multi function problem with cups
« on: March 24, 2011, 03:43:45 PM »
Hello all:
I saw the many posts on all kind of cups problems. So far I was lucky with cups
until I tried to hook it to a samsung multi function printer.

cups 1.311 is installed and works
gutenprint and foomatic-rip is installed onboot but I only can see the gutenprint printers listed.
I can not see any foomatic entries?
USB port works

http://localhost:631
admin..  even sees the printer
but when it comes to slect the .ppd I can not see any foomatic related pdd?
therefore I downloaded several ppd for this printer and put them into /etc/cups/ppd
and because I could not find a ppd in that list I selected one of these ppd files and installed.

when trying to print a test page:
"/usr/local/lib/cups/filter/foomatic-rip failed" error message shows up

Can somebody please help?

Thank you

 


t(w)o be(ers) or not t(w)o be(ers) that is the question

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: samsung SCX-4521F multi function problem with cups
« Reply #1 on: March 25, 2011, 12:38:52 AM »
Did you try setting the log level to dubug in cupsd.conf, restarting cups and trying again - the error messages often help track down the problem

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: samsung SCX-4521F multi function problem with cups
« Reply #2 on: March 25, 2011, 04:37:21 AM »
Thank you for this - I will look at this and post the results. What does not make sense to me is, that I see
the printers from the gutenprint.tcz but not from the foomatic-rip.tcz do I have to start the foomatic thing?
The .ppd files come from gutenprint and foomatic? Is this correct?
The .ppd files from gutenprint are in /etc/cups/ppd ?
Where do you think, are the foomatic .ppd files?
t(w)o be(ers) or not t(w)o be(ers) that is the question

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: samsung SCX-4521F multi function problem with cups
« Reply #3 on: March 25, 2011, 07:50:49 AM »
Where do you think, are the foomatic .ppd files?

As far as I know, you need to find your own, they are not supplied in the cups source tarball

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: samsung SCX-4521F multi function problem with cups
« Reply #4 on: March 25, 2011, 08:25:27 AM »
Quote
therefore I downloaded several ppd for this printer and put them into /etc/cups/ppd

Put the ppd in another directory.

When you install, cups will put it in /etc/cups/ppd.


You obviously need the correct driver to start with.
Many people see what is. Some people see what can be, and make a difference.

Offline SamK

  • Hero Member
  • *****
  • Posts: 713
Re: samsung SCX-4521F multi function problem with cups
« Reply #5 on: March 25, 2011, 09:06:14 AM »
Where do you think, are the foomatic .ppd files?

As far as I know, you need to find your own, they are not supplied in the cups source tarball
This site may help:
www.openprinting.org/printers
   

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: samsung SCX-4521F multi function problem with cups
« Reply #6 on: March 25, 2011, 10:55:51 AM »
from the foomatic info tab
Comments:       the foomatic-rip filter is used by some printer driver packages
                requires libgs.tcz

libgs.tcz contains:
/usr/local/lib/libgs.so.9
/usr/local/lib/libgs.so
/usr/local/lib/libgs.so.9.00

however foomatic depends on libgs_ps which contains:
/usr/local/lib/libgs.so.8
/usr/local/lib/libgs.so
/usr/local/lib/libgs.so.8.71

These cannot co-exist, can they?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: samsung SCX-4521F multi function problem with cups
« Reply #7 on: March 25, 2011, 11:32:54 AM »
Usually they can, unless you want to compile. Apps usually want so.X instead of .so.
The only barriers that can stop you are the ones you create yourself.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: samsung SCX-4521F multi function problem with cups
« Reply #8 on: March 25, 2011, 11:41:43 AM »
Hi curaga
I see, so even though libgs.tcz is not included as a dependency beerstein should install it.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: samsung SCX-4521F multi function problem with cups
« Reply #9 on: March 25, 2011, 01:36:06 PM »
I have a feeling there are a couple of choices to get foomatic-rip to work, either:

1. load libgs_ps and not libgs
or
2. load libgs and ghostscript_common

As a quick and dirty test, you could ensure libgs.so -> libgs.so.8.71

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: samsung SCX-4521F multi function problem with cups
« Reply #10 on: March 25, 2011, 02:55:11 PM »
Hi: Thank you so much for the excellent help.

I changed the "info" to "debug" in /usr/local/etc/cups/cupsd.conf

then I tried to print via the USB port. (testpage)
Here is the error log - only ths part I think is relevant.
=============================================
 21:36 +0000] Listening to ::1:631 (IPv6)
 21:36 +0000] Listening to 127.0.0.1:631 (IPv4)
 21:36 +0000] Listening to /var/run/cups/cups.sock (Domain)
 21:36 +0000] Remote access is disabled.
 21:36 +0000] Loaded configuration file "/etc/cups/cupsd.conf"
 21:36 +0000] Using default TempDir of /var/spool/cups/tmp...
 21:36 +0000] Configured for up to 100 clients.
 21:36 +0000] Allowing up to 100 client connections per host.
 21:36 +0000] Using policy "default" as the default!
 21:36 +0000] Full reload is required.
 21:36 +0000] Loaded MIME database from '/etc/cups': 35 types, 38 filters...
 21:36 +0000] Full reload complete.
 21:36 +0000] Cleaning out old temporary files in "/var/spool/cups/tmp"...
E [25/Mar/2011:19:21:36 +0000] Unable to open listen socket for address ::1:631 - Address family not supported by protocol.
 21:36 +0000] Listening to 127.0.0.1:631 on fd 4...
 21:36 +0000] Listening to /var/run/cups/cups.sock on fd 6...
 21:36 +0000] Resuming new connection processing...
 24:02 +0000] Started "/usr/local/lib/cups/cgi-bin/printers.cgi" (pid=4376)

 24:19 +0000] Started "/usr/local/lib/cups/cgi-bin/printers.cgi" (pid=4379)
 24:19 +0000] [Job 1] Adding start banner page "none".
 24:19 +0000] [Job 1] Adding end banner page "none".
 24:19 +0000] [Job 1] File of type application/postscript queued by "anonymous".
 24:19 +0000] [Job 1] Queued on "Samsung_SCX-4x21_Series_USB_1" by "anonymous".
 24:19 +0000] [Job 1] Started filter /usr/local/lib/cups/filter/pstops (PID 4380)
 24:19 +0000] [Job 1] Started filter /usr/local/lib/cups/filter/foomatic-rip (PID 4381)
 24:19 +0000] [Job 1] Started backend /usr/local/lib/cups/backend/usb (PID 4382)
E [25/Mar/2011:19:24:19 +0000] PID 4381 (/usr/local/lib/cups/filter/foomatic-rip) stopped with status 1!
 24:19 +0000] Hint: Try setting the LogLevel to "debug" to find out more.
E [25/Mar/2011:19:24:19 +0000] [Job 1] Job stopped due to filter errors.
 24:21 +0000] Started "/usr/local/lib/cups/cgi-bin/printers.cgi" (pid=4390)
================================================
I am using a .ppd which works on the same computer/printer but in Suse 9.3
I will study your posts and report more.

thanks again
t(w)o be(ers) or not t(w)o be(ers) that is the question

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: samsung SCX-4521F multi function problem with cups
« Reply #11 on: March 25, 2011, 03:07:25 PM »
What does this give:
Code: [Select]
$ ldd /usr/local/lib/cups/filter/foomatic-rip

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: samsung SCX-4521F multi function problem with cups
« Reply #12 on: March 25, 2011, 04:44:43 PM »
this is what I got:

$ ldd /usr/local/lib/cups/filter/foomatic-rip
linux-gate.so.1 => (0xb77cd000)
libgs.so.8 => /usr/local/lib/libgs.so.8 (0xb7500000)
libm.so.6 => /lib/libm.so.6 (0xb74da000)
libc.so.6 => /lib/libc.so.6 (0xb7397000)
libdl.so.2 => /lib/libdl.so.2 (0xb7393000)
libpthread.so.0 0> /lib/libpthread.so.0 (0xb737b000)
/lib/ld-linux.so.2 (0xb77ce000)

This is the .ppd file recommendet for this printer:
Samsung-ML-4500-gdi.ppd
Oi downloaded it from the website recommended by:SamK
t(w)o be(ers) or not t(w)o be(ers) that is the question

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: samsung SCX-4521F multi function problem with cups
« Reply #13 on: March 26, 2011, 01:39:08 AM »
That looks like it's using libgs_ps rather than libgs. Do you have ghostscript_common loaded?

If you try to execute foomatic-rip like this, what do you get:
Code: [Select]
/usr/local/lib/cups/filter/foomatic-rip --help

Offline SamK

  • Hero Member
  • *****
  • Posts: 713
Re: samsung SCX-4521F multi function problem with cups
« Reply #14 on: March 26, 2011, 04:20:05 AM »
I am uncertain whether any of the following is relevant to your circumstances as I use CUPS 1.4.5 rather than 1.3.11.  I certainly do not wish to intrude on any of the advice you are receiving from others.

When using foomatic-rip PPD files, rather than looking for the leanest installation, I prefer a compromise that produces the fewest problems with the equipment here.  The approach adopted is to load:
* CUPS
* foomatic-rip
* ghostscript
* ghostscript-common
* poppler-bin

When using foomatic-rip, my experience is that issues might be multi-layered.  It is possible that overcoming your present difficulty may uncover an unrelated one.  Here's hoping you are lucky and this is not the case for you.