2013-06-04 3 views
0

Я пытаюсь запустить JavaServer Faces учебник на сайте Oracle:Oracle JSF Учебник: GlassFish 3: updatetool врезается

http://docs.oracle.com/javaee/6/tutorial/gexaj.html

Однако, когда я бегу на Ubuntu Linux 12.04.2 LTS я получаю следующее :

$ updatetool 
WX import error. Verify the WX widgets are in the PYTHONPATH. 
The following can be reported to GlassFish Update Tool 2.3.5 Development Team <[email protected]>. 

Traceback (innermost last): 
    File "/home/johndoe/glassfish3/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: libjpeg.so.62: cannot open shared object file: No such file or directory 

линия 283 из boot.py имеет следующий "импорт WX" заявление:

try: 
    # XXX : This still fails badly with segfault on bad locales 
    import wx 
except: 
    typ, val, tback = sys.exc_info() 
    if str(typ) == "locale.Error": 
     if sys.platform not in ['win32'] and os.environ['LANG'] != 'C': 
      UPDATETOOL_LOCALE = _set_unix_locale_vars('C') 
      try: 
       import wx 
      except: 
       # NOL10N 
       uc_error("The current locale is not supported and we could not fallback to english locale.", 1) 
     else: 
      # NOL10N 
      uc_error("The current locale is not supported and we could not fallback to english locale.", 1) 
    else: 
     import traceback 
     lst = traceback.format_tb(tback) + traceback.format_exception_only(typ, val) 
     msgx = _("WX import error. Verify the WX widgets are in the PYTHONPATH.\nThe following can be reported "\ 
       "to %(email)s.\n\nTraceback " \ 
       "(innermost last):\n%(tracefirst)-20s %(tracerest)s") % {'email':INFO.REPORT_TO, 'tracefirst': "".join(lst[:-1]), 'tracerest': lst[-1]} 
     uc_error(msgx, 1) 

_ = wx.GetTranslation 

Я запускаю python 2.7.3. Кто-нибудь знает, как исправить эту ошибку?

ответ

0

Updatetool использует свою собственную 32-разрядную версию питона, поэтому вам нужно установить версию i386 из libjpeg62:

sudo apt-get install libjpeg62:i386 
Смежные вопросы