我在centos7中使用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:Symbol“ztp12wxbufferedc”在共享对象中具有不同的大小,请考虑重新链接wxformbuilder:Symbol“ZTV10wxClientDC”在共享对象中具有不同的大小,请考虑重新链接wxformbuilder:Symbol“ZTV10wxMemoryDC”在共享对象中具有不同的大小,请考虑重新链接分段错误(核心转储)
完整操作如下所示
^{pr2}$
第二部分(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]#
现在我研究了两天,但仍然没有修复,甚至我在不同的桌面上安装了新的操作系统,并在那里进行了尝试,但在这里我也发现了同样的问题。
请帮我怎么解决这个问题。谢谢