{"id":943,"date":"2015-04-16T13:52:01","date_gmt":"2015-04-16T05:52:01","guid":{"rendered":"http:\/\/ufqi.com\/blog\/?p=943"},"modified":"2015-04-16T13:57:03","modified_gmt":"2015-04-16T05:57:03","slug":"libstdc-conflicts-itself","status":"publish","type":"post","link":"https:\/\/ufqi.com\/blog\/libstdc-conflicts-itself\/","title":{"rendered":"libstdc++ conflicts itself\uff0c perl\uff0c yast\uff0c git"},"content":{"rendered":"<p>Issue\uff1a \u5728 openSuSE 11, 12, 13\u7684\u67d0\u4e9b\u7248\u672c\u4e2d\uff0c\u901a\u8fc7yast\u5b89\u88c5 git \u5de5\u5177\u5305\uff0c\u4f1a\u9047\u5230\u7c7b\u4f3c\u95ee\u9898\uff1a<\/p>\n<p>Problem: solvable libstdc++6-4.8.1_20130909-3.2.1.i586 conflicts with libstdc++6 provided by itself<\/p>\n<p>&#8212;-<\/p>\n<p><a href=\"http:\/\/askubuntu.com\/questions\/106203\/why-do-some-packages-conflict-with-themselves\">Why do some packages conflict with themselves?<br \/>\n<\/a>\u201cOneiric supports Multi-Arch, that is, allowing you to install packages of different architectures simultaneously (currently i386 and amd64 a.k.a. 32-bit and 64-bit). <span style=\"color: #ff0000\">Some packages cannot be installed simultaneously (like libc6:i386 and libc6:amd64).<\/span>\u00a0<code>aptitude<\/code>\u00a0<a href=\"https:\/\/bugs.launchpad.net\/ubuntu\/+source\/aptitude\/+bug\/831768\">cannot handle these cases<\/a>\u00a0and therefore thinks that it may be a good idea to remove those packages. It&#8217;s recommended to use\u00a0<code>apt-get<\/code>\u00a0now.\u201d<\/p>\n<p>&#8212;-<\/p>\n<p>\u89e3\u51b3\u529e\u6cd5\uff1a<\/p>\n<h3><a href=\"http:\/\/blog.gmane.org\/gmane.linux.suse.zypp.devel\/month=20131101\" target=\"_blank\">Package conflicting with itself\uff1f<\/a><\/h3>\n<pre>&gt;&gt; You somehow need an upgraded zypp stack, which will ignore the self\r\n&gt;&gt; conflict.\r\n&gt;\r\n&gt; Yeah, but it's kind of tough as the new zypp stack requires new libstdc++ \r\n&gt; and a bunch of other things which I don't really want to force install.\r\n\r\nCan't you just force-install libstdc++6-4.8.1_20130909-3.2.1.i586?<\/pre>\n<p>\u5f3a\u5236\u91cd\u65b0\u5b89\u88c5<\/p>\n<pre>libstdc++6-4.8.1_20130909-3.2.1.i586<\/pre>\n<p>shell&gt; wget &#8220;ftp:\/\/bo.mirror.garr.it\/pub\/1\/opensuse\/distribution\/13.1\/repo\/oss\/suse\/i586\/libstdc++6-4.8.1_20130909-3.2.1.i586.rpm&#8221;<br \/>\nshell&gt;\u00a0rpm -ivh &#8211;nodeps &#8211;force libstdc++6-4.8.1_20130909-3.2.1.i586.rpm<br \/>\n\u7136\u540e\u518d\u5b89\u88c5 perl\u76f8\u5173\u7684\u4e00\u4e9b\u5de5\u5177\u5305<br \/>\nshell&gt;\u00a0zypper -v install &#8211;force-resolution yast2-perl-bindings<\/p>\n<p>\u4e4b\u540e\u53ef\u80fd\u4f1a\u78b0\u5230\u4e00\u4e9b\u5176\u4ed6\u5f02\u5e38\u6216\u8005\u4e22\u5931\uff0c\u7f3a\u5565\u5c11\u5565\u8865\u5565\u3002<\/p>\n<p>\u8fd9\u4e00\u8fc7\u7a0b\u4e2d\uff0c\u8fd8\u53ef\u80fd\u9047\u5230 yast \u65e0\u6cd5\u4f7f\u7528\uff0c\u6216\u8005<br \/>\nshell&gt; perl -MCPAN -eshell<br \/>\n\u65e0\u6cd5\u8c03\u7528\u7684\u60c5\u51b5\uff0c\u5747\u662f\u7531\u4e8e\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d libstdc++ \u7684\u7248\u672c\u95ee\u9898\u9047\u5230\u6545\u969c\uff0c\u53ef\u4ee5\u5728\u89e3\u51b3\u4e0a\u6765\u4e0a\u9762\u7684\u95ee\u9898\u4e4b\u540e\uff0c\u91cd\u65b0\u5b89\u88c5 perl \u5373\u53ef\u3002<\/p>\n<p>\u672c\u8d28\u4e0a\uff0c\u6bcf\u4e2a\u8f6f\u4ef6\u7684\u7248\u672c\u90fd\u6709\u4e0e\u4e4b\u540c\u671f\u7684\u5bf9\u5e94\u7684\u7248\u672c\u76f8\u914d\u5408\uff0c\u8de8\u65f6\u671f\u7684\u8f6f\u4ef6\u7248\u672c\u5f88\u96be\u878d\u5408\u3002\u8fd9\u662f\u672c\u6b21\uff0c\u4e5f\u662f\u4e0a\u6b21 <a href=\"https:\/\/ufqi.com\/blog\/apache-httpd-resin-mod_caucho-hmux\/\" target=\"_blank\">apache \u548c resin\u878d\u5408<\/a>\u9047\u5230\u7684\u95ee\u9898\u7684\u5171\u540c\u7279\u5f81\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Issue\uff1a \u5728 openSuSE 11, 12, 13\u7684\u67d0\u4e9b\u7248\u672c\u4e2d\uff0c\u901a\u8fc7yas &hellip; <a href=\"https:\/\/ufqi.com\/blog\/libstdc-conflicts-itself\/\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7,6,2],"tags":[],"_links":{"self":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/943"}],"collection":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/comments?post=943"}],"version-history":[{"count":5,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/943\/revisions"}],"predecessor-version":[{"id":948,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/943\/revisions\/948"}],"wp:attachment":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/media?parent=943"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/categories?post=943"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/tags?post=943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}