Click to See Complete Forum and Search --> : ghostscript question
Rayman92
07-25-2002, 12:39 AM
This may be the wrong forum if so let me know where to post.
While trying to get my HP printer working on my little network. I found that I needed to upgrade my ghostscript. Well I downloaded all the other dependent rpms and got them installed with no problems. I uninstalled gs 5.50 and installed the newer gs 6.15, now when trying to find out what is supported using "gs -h" I get this strange error:
gs: error while loading shared libraries: gs: symbol __sysconf, version GLIBC_2.2 not defined in file libc.so.6 with link time reference
I am obviously new to Linux so please be fairly basic.
Rayman92
mingshun
07-25-2002, 07:42 AM
Originally posted by Rayman92
gs: error while loading shared libraries: gs: symbol __sysconf, version GLIBC_2.2 not defined in file libc.so.6 with link time reference
Check your glibc by "glibc --version" to see whether it is 2.2
This is what I think
Rayman92
07-26-2002, 01:13 PM
I did not get the "glibc --help" to work, but by another means I believe it is "glibc-2.1.92-14"
Thanks.
Rayman92
07-30-2002, 01:29 PM
When I try to upadate glibc to the version I believe I need I get the following errors. This does not make sense to me:
[root@localhost temp]# rpm -U glibc-2.2.4-18.7.0.4.i386.rpm
error: failed dependencies:
glibc-common = 2.2.4-18.7.0.4 is needed by glibc-2.2.4-18.7.0.4
glibc-devel < 2.2.3 conflicts with glibc-2.2.4-18.7.0.4
/usr/bin/getent is needed by stunnel-3.8-4
So it appears from above that glibc-common must be installed or upgraded first. The glibc-devel is 2.2.3? it conflicts with glibc-2.2.4-18.7.0.4?
[root@localhost temp]# rpm -U glibc-devel-2.2.4-18.7.0.4.i386.rpm
error: failed dependencies:
glibc = 2.2.4 is needed by glibc-devel-2.2.4-18.7.0.4
The above appears to suggest that I should install glib-2.2.4 first.
[root@localhost temp]# rpm -U glibc-common-2.2.4-18.7.0.4.i386.rpm
error: failed dependencies:
glibc < 2.2.4 conflicts with glibc-common-2.2.4-18.7.0.4
So then glibc-2.2.4 conflicts with glibc-common??
I do not see the logic here. What am I missing?
:confused:
Tigger
07-30-2002, 04:02 PM
Be very careful when dealing with system libraries. If you mess up, you will have to use a rescue disk to restore the original libraries form the original cd.
If you are sure the version of glibc you are about to install is for your version of RH, then you can always add --force to force rpm to install the package. You will need all 3 packages, glibc,glibc-common, and glibc-devel if you want to be able to compile stuff later that is only available in source format.
INstall glibc-common first, then do glibc and finally glibc-devel.
rpm -Uvh --force glibc-common-XXXXXXX.rpm
Rayman92
07-30-2002, 04:31 PM
I got this glibc from RH. I downloaded the latest version for 7.0 that did not mention "alpha" on it.
I am hoping this will fix my problem, but not completely sure it will.
The HP stuff said that Ghostscript needed to support ijs, so I upgraded to a newer version of gs.
I will try to force this as you have outlined.
Thanks.
Rayman92
07-30-2002, 04:51 PM
OK this is what happened:
[root@localhost temp]# rpm -Uvh --force glibc-common-2.2.4-18.7.0.4.i386.rpm
error: failed dependencies:
glibc < 2.2.4 conflicts with glibc-common-2.2.4-18.7.0.4
I tried this with gnome RPM and, but it failed as well.
???
Tigger
07-31-2002, 10:07 AM
Do the following:
rpm -Uvh --force --nodeps glibc-common-2.2.4-18.7.0.4.i386.rpm
It should install this time. The --nodeps tells it to ignore dependencies and we can here cause we already know that we are going to upgrade to glibc2.2.4 as well so it isn't an issue.
Rayman92
08-01-2002, 12:08 AM
That did the trick. Now I just got to figure out what I have to do with the HPIJS stuff.
Thanks to all for your help.
-Rayman92
Tigger
08-01-2002, 07:10 AM
Try running "printtool" and see if it gives you the option for hpijs. If not, just check the docs on the sourceforge site for hpijs and there should be a sample printcap file for you to try out.
Let me know how you make out.
I too require the hpijs for my Deskjet 932C.
ATI,HP - great minds think alike! ;)
Rayman92
08-01-2002, 02:51 PM
The documentation indicates that I should include:
StartEntry: IJS
GSDriver: ijs
Description: {IJS Client}
About: { \
This is a generalized IJS client interface for ghostscript printer \
drivers. Different drivers and options are specified in the \
"Extra GS options" box. The following ghostscript commands are used by the \
HP Inkjet Driver (HPIJS): -sIjsServer=hpijs, \
-sDeviceManufacturer="HEWLETT-PACKARD", \
-dIjsUseOutputFD, -sDeviceModel=model, -dDuplex, -dTumble, -sIjsParams=options. \
Where DeviceModel equals one of the following: "DESKJET 990", "DESKJET 970", etc... \
-dDuplex equals book, -dDuplex -dTumble equals tablet. \
IjsParams can be any of the following: Quality=n, MediaType=n, ColorMode=n, PenSet=n. \
Where Quality equals one of the following: 0=normal (default), 1=draft, 2=best. \
MediaType equals one of the following: 0=plain (default), 1=premium, 2=photo. \
ColorMode equals one of the following: 0=grey_k, 1=grey_cmy, 2=color (default). \
PenSet equals one of the following: 0=black_pen, 1=color_pen, 2=both_pens, \
3=mdl_pen, 4=mdl_both. \
Not all combinations of Quality, MediaType and ColorMode are valid print modes. \
Resolution setting 600x600 is available for some print modes only. \
In printtool special characters must be preceded by a double backslash see the \
following example for HP 990C: -sIjsServer=hpijs -sDeviceManufacturer=\\"HEWLETT-PACKARD\\" \
-dIjsUseOutputFD -sDeviceModel=\\"DESKJET 990C\\". \
}
Resolution: {300} {300} {}
Resolution: {600} {600} {}
EndEntry
into the file:
/usr/lib/rhs/rhs-printfilters/printerdb
But, it does not show up in printtool under the input filters.
?? Has anyone else run into this?
freakboy2002
08-01-2002, 03:07 PM
I installed Sim City 3000 (Loki) and all worked fine during install. But, when I tried to execute it, I got this:
sc3u: relocation error: sc3u: symbol _dl_global_scope, version GLIBC_2.0 not defined in file ld-linux.so.2 with link time reference
I have glibc-2.2.5-34 installed, it came out of the box with RedHat 7.3 which is the system I am running under KDE 3.0.
I did a grep on my system for '_dl_global_scope' and found nothing.
Anyone have any ideas what is causing this?
Thanks.
Rayman92
08-02-2002, 03:19 PM
It appears that the app you loaded is looking for symbols that are not present in your current system libraries.
I am still a newbie, but here is what I did. I determined what version I needed in my case it was "glib-2.2.4-18.7.0.4.i386.rpm" which I found on the RH site. I followed Tigger's suggestions above to replace my current system library. You just need to make sure that the library you find if designed for your distribution.
This worked for me.
Good Luck.
Rayman92
08-02-2002, 07:05 PM
Now a solution (it appears) to my problem. The version of ghost script that updated to did not have support for ijs while it does support hpijs. As you can see earlier in this thread I had problems getting printtool to recognize the new driver in the printerdb file. I made the following changes and it appears to work now:
From:
StartEntry: IJS
GSDriver: ijs
Description: {IJS Client}
About: { \
This is a generalized IJS client ...
To:
StartEntry: HPIJS
GSDriver: hpijs
Description: {HPIJS Client}
About: { \
This is a generalized HPIJS client ...
I still have yet to get this to work with my situation, but I think it will.
Thanks to all.