2014-04-15 3 views
1

나는 pygtk 응용 프로그램을 개발했습니다. 이제 클라이언트 컴퓨터에 배포해야합니다.실행 파일을 CentOS에서 만든 우분투에서 작동하지 않습니다

CentOS 5 머신에서 Pyinstaller를 사용하여 실행 파일을 만들었습니다 (Pyinstaller는 glibc에 의존하고 centOS 5를 사용하는 glibc를 선택하기 때문에).

이제 Ubuntu11.04 Machine에서 응용 프로그램을 실행하려고 할 때 응용 프로그램을로드하지만 텍스트 대신 GUI의 사각형 상자를 표시합니다.

다음 오류 메시지가 명령 줄에 인쇄됩니다.

Gtk-Message: Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so: cannot open shared object file: No such file or directory 
/tmp/_MEIwDbvRA/User.py:88: GtkWarning: Cannot open pixbuf loader module file '/home/arrowdevices/pda/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory 
/tmp/_MEIwDbvRA/User.py:94: GtkWarning: Cannot open pixbuf loader module file '/home/arrowdevices/pda/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory 
/tmp/_MEIwDbvRA/User.py:100: GtkWarning: Cannot open pixbuf loader module file '/home/arrowdevices/pda/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory 
/tmp/_MEIwDbvRA/User.py:114: GtkWarning: Cannot open pixbuf loader module file '/home/arrowdevices/pda/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory 
/tmp/_MEIwDbvRA/User.py:120: GtkWarning: Cannot open pixbuf loader module file '/home/arrowdevices/pda/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory 
/tmp/_MEIwDbvRA/User.py:130: GtkWarning: Cannot open pixbuf loader module file '/home/arrowdevices/pda/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory 
/tmp/_MEIwDbvRA/User.py:140: GtkWarning: Cannot open pixbuf loader module file '/home/arrowdevices/pda/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory 
/tmp/_MEIwDbvRA/User.py:197: PangoWarning: No modules found: 
No builtin or dynamically loaded modules were found. 
PangoFc will not work correctly. 
This probably means there was an error in the creation of: 
    '/home/arrowdevices/pda/etc/pango/pango.modules' 
You should create this file by running: 
    pango-querymodules > '/home/arrowdevices/pda/etc/pango/pango.modules' 
Fontconfig warning: "/etc/fonts/conf.d/11-lcd-filter-lcddefault.conf", line 9: invalid constant used : lcddefault 
Fontconfig warning: "/etc/fonts/conf.d/53-monospace-lcd-filter.conf", line 17: invalid constant used : lcdlegacy 
/tmp/_MEIwDbvRA/User.py:197: PangoWarning: failed to find shape engine, expect ugly output. engine-type='PangoRenderFc', script='latin' 
/tmp/_MEIwDbvRA/User.py:197: PangoWarning: failed to find shape engine, expect ugly output. engine-type='PangoRenderFc', script='common' 
/tmp/_MEIwDbvRA/User.py:197: GtkWarning: Cannot open pixbuf loader module file '/home/arrowdevices/pda/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory 

내 질문 :

    내가 깨끗하게 pyInstaller 중에 의해 생성 된 실행에 아이콘과 글꼴을 패키지 어떻게
  1. ?
  2. Pyinstaller는 파일 경로를 실행 파일에 하드 코딩하는 것으로 보입니다. 어떻게 이것을 피할 수 있습니까?

답변

0

우분투 이진을 검색합니다. CentOS와 우분투는 매우, 매우 다른 시스템입니다. + 탈 로그 구조는 다를 수 있습니다.

+0

안녕하세요 @ 살인자 질문을 변경했습니다. pls보세요. 나는 pyinstaller를 사용하여 아이콘과 글꼴을 깨끗하게 포장해야한다. 나는 우분투와 CentOS 사이에 차이가 없어야한다고 생각한다. – user2109788

+0

좋아. 개발 GTK + 파일을 설치하십시오. PangoFC도 설치하십시오. 작동하게하려면 궁금합니다. 우분투와 CentOS 사이에 차이가 없다고 생각하는 이유는 무엇입니까? 우분투는 데비안을 기반으로하며 CentOS는 RHEL을 기반으로합니다. 그들은 다른 패키지 관리자를 사용하고 카탈로그 구조가 다릅니다. –

+0

다른 컴퓨터에 동일한 centos 5를 설치하고 응용 프로그램을 테스트했지만 동일한 오류가 발생했습니다. 어떤 아이디어? – user2109788

관련 문제