1

我在 Centos 7 中使用 wxFormBuilder 和 PyDev,出于某种原因,我刚刚重新安装了我的操作系统,现在我已经用 PyDev 配置了 Ecllipse,但我无法安装 wxFormBuilder。

我尝试了 3 种不同的安装类型

第一个(1):我试过ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home%3A/Fisiu/SLE_11_SP1/x86_64/wxformbuilder-3.1.70-4.2.x86_64 .rpm

它安装得很好但是当我尝试打开 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 _ZTV12wxBufferedDC' has different size in shared object,考虑重新链接 wxformbuilder: Symbol _ZTV10wxClientDC' has different size in shared object,考虑重新链接(核心转储)

完整的动作如下

[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 ~]# 

第二(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 天但仍然没有修复,即使我在不​​同的不同桌面上安装了新操作系统并在那里尝试过,但在这里我也发现了同样的问题。
请帮助我如何解决这个问题。谢谢

4

0 回答 0