我在Centos 7中使用wxFormBuilder和PyDev,出于某些原因我刚刚重新安装了我的操作系统,现在我已经使用PyDev配置了Ecllipse,但是我无法安装wxFormBuilder。
我尝试了3种不同的安装类型
它安装完美,但当我尝试打开wxformbuilder时它回复我
wxformbuilder: error while loading shared libraries: libwx_gtk2u_flatnotebook-2.8_wxfb.so: cannot open shared object file: No such file or directory
然后我检查并将该文件从/usr/lib64/wxformbuilder/libwx_gtk2u_flatnotebook-2.8_wxfb.so
复制到/usr/lib64/libwx_gtk2u_flatnotebook-2.8_wxfb.so
以及另外3个文件,然后回复
wxformbuilder:符号_ZTV12wxBufferedDC'在共享对象中有不同的大小,考虑重新链接wxformbuilder:符号_ZTV10wxClientDC'在共享对象中有不同的大小,考虑重新链接wxformbuilder:符号_ZTV10wxMemoryDC'在共享对象中有不同的大小,考虑重新链接分段故障(核心转储)
完整行动如下:
[root@dell ~]# wxformbuilder
wxformbuilder: error while loading shared libraries: libwx_gtk2u_flatnotebook-2.8_wxfb.so: cannot open shared object file: No such file or directory
[root@dell ~]# cp /usr/lib64/wxformbuilder/libwx_gtk2u_flatnotebook-2.8_wxfb.so /usr/lib64/
[root@dell ~]# wxformbuilder
wxformbuilder: error while loading shared libraries: libwx_gtk2u_propgrid-2.8_wxfb.so: cannot open shared object file: No such file or directory
[root@dell ~]# cp /usr/lib64/wxformbuilder/libwx_gtk2u_propgrid-2.8_wxfb.so /usr/lib64/
[root@dell ~]# wxformbuilder
wxformbuilder: error while loading shared libraries: libwx_gtk2u_scintilla-2.8_wxfb.so: cannot open shared object file: No such file or directory
[root@dell ~]# cp /usr/lib64/wxformbuilder/libwx_gtk2u_scintilla-2.8_wxfb.so /usr/lib64/
[root@dell ~]# wxformbuilder
wxformbuilder: Symbol `_ZTV12wxBufferedDC' has different size in shared object, consider re-linking
wxformbuilder: Symbol `_ZTV10wxClientDC' has different size in shared object, consider re-linking
wxformbuilder: Symbol `_ZTV10wxMemoryDC' has different size in shared object, consider re-linking
Segmentation fault (core dumped)
[root@dell ~]#
SECOUND(2): 之后我搜索并找到了rpm-sphere的存储库
[rpm-sphere]
name=RPM Sphere
baseurl=http://download.opensuse.org/repositories/home:/zhonghuaren/Fedora_22/
gpgkey=http://download.opensuse.org/repositories/home:/zhonghuaren/Fedora_22/repodata/repomd.xml.key
enabled=1
gpgcheck=1
并尝试从此处安装
[root@dell ~]# yum install wxformbuilder
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: centos.excellmedia.net
* epel: epel.mirror.net.in
* extras: centos.excellmedia.net
* linuxtech-release: pkgrepo.linuxtech.net
* nux-dextop: mirror.li.nux.ro
* remi: remi.check-update.co.uk
* remi-php55: remi.check-update.co.uk
* remi-php56: remi.check-update.co.uk
* remi-safe: remi.check-update.co.uk
* remi-test: remi.check-update.co.uk
* rpmforge: mirror.smartmedia.net.id
* updates: centos.excellmedia.net
Resolving Dependencies
--> Running transaction check
---> Package wxformbuilder.x86_64 0:3.1.70-31.1 will be installed
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.20)(64bit) for package: wxformbuilder-3.1.70-31.1.x86_64
--> Finished Dependency Resolution
Error: Package: wxformbuilder-3.1.70-31.1.x86_64 (rpm-sphere)
Requires: libstdc++.so.6(GLIBCXX_3.4.20)(64bit)
You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
numactl-libs-2.0.9-5.el7_1.x86_64 is a duplicate with numactl-libs-2.0.9-2.el7.x86_64
[root@dell ~]#
再次失败..
第三(3): 并且我尝试从源代码和运行命令
[root@dell ~]# make
并且在8到10分钟之后它说
/usr/include/wx-2.8/wx/debug.h:224:9: note: in expansion of macro ‘wxFORCE_SEMICOLON’
wxFORCE_SEMICOLON /* just to force a semicolon */
^
/usr/include/wx-2.8/wx/debug.h:186:38: note: in expansion of macro ‘wxCHECK2_MSG’
#define wxCHECK_MSG(cond, rc, msg) wxCHECK2_MSG(cond, return rc, msg)
^
/usr/include/wx-2.8/wx/valtext.h:103:9: note: in expansion of macro ‘wxCHECK_MSG’
wxCHECK_MSG( m_validatorWindow->IsKindOf(CLASSINFO(wxTextCtrl)), false,
^
stack.cpp
md5.cc
Linking wxFormBuilder
g++: error: unrecognized command line option ‘-mwindows’
make[1]: *** [../output/bin/wxformbuilder] Error 1
make: *** [wxFormBuilder] Error 2
[root@dell wxformbuilder-3.1.59]#
现在我研究了2天,但仍然没有修复,即使我在不同的桌面上安装了新操作系统并尝试过,但在这里我也发现了同样的问题。
请帮助我如何解决这个问题。感谢