You will get this error when executing the pkg command:
[glassfish@MYMACHINE glassfish3]$ pkg list -u
Traceback (most recent call last):
File "/opt/glassfish/glassfish3/pkg/bin/client.py", line 61, in ?
import pkg.actions as actions
File "/opt/glassfish/glassfish3/pkg/vendor-packages/pkg/actions/__init__.py", line 59, in ?
globals(), locals(), [modname])
File "/opt/glassfish/glassfish3/pkg/vendor-packages/pkg/actions/link.py", line 36, in ?
import generic
File "/opt/glassfish/glassfish3/pkg/vendor-packages/pkg/actions/generic.py", line 45, in ?
import pkg.variant as variant
File "/opt/glassfish/glassfish3/pkg/vendor-packages/pkg/variant.py", line 28, in ?
from pkg.misc import EmptyI
File "/opt/glassfish/glassfish3/pkg/vendor-packages/pkg/misc.py", line 49, in ?
import zlib
ImportError: libz.so.1: cannot open shared object file: No such file or directory
---------------------------------------------------------------
There was an error running
/opt/glassfish/glassfish3/pkg/bin/../python2.4-minimal/bin/python
You are running on a 64 bit Linux distribution and the 32 bit Linux
compatibility libraries do not appear to be installed. In order to use
the Update Center tools you must install the 32 bit compatibility libraries.
On Ubuntu (and possibly other Debian based systems) please install the
ia32-libs package. On RedHat 4 (and other RPM based systems), you may
need to add multiple 'compat' runtime library packages. Please see the
Update Center Release Notes for more information.
The solution is to install the following packages using yum
yum install compat-db.i686 zlib.i686 libidn.i686 krb5-libs.i686
The trick is to find out about the correct names of the packages. It's easy on Debian based systems but quiet difficult on RPM based systems.
If you are using CentOS take a closer look at this blog post.
Hey, Great post!
ReplyDeleteAfter doing that and typing ./updatetool, I'm receiing following error:
WX import error. Verify the WX widgets are in the PYTHONPATH.
The following can be reported to GlassFish Update Tool 2.3.4 Development Team .
Traceback (innermost last):
File "/glassfish/installation/dir/bin/updatetool/vendor-packages/updatetool/common/boot.py", line 283, in init_app_locale
import wx
File "wx/__init__.py", line 45, in ?
File "wx/_core.py", line 4, in ?
ImportError: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
I have no experience using "updatetool", sorry.
ReplyDeleteDue to the fact that updatetool is a GUI based tool and the error message is referring to an object file called "libgtk" I assume you are missing some graphical libraries on your RHEL.
Go and check out to which package libgtk belongs.
Maybe this post in the GlassFish forum may help you as well:
http://www.java.net/forum/topic/glassfish/glassfish/glassfish-312-and-centos-6-rhel6-support
To update GlassFish 3.1 on RHEL webspacekit (64-bit), download the latest GlassFish 3.1 patch, stop the server, apply the patch, and restart the server.
ReplyDelete