{"id":148,"date":"2015-11-28T13:39:06","date_gmt":"2015-11-28T13:39:06","guid":{"rendered":""},"modified":"2015-11-28T13:39:06","modified_gmt":"2015-11-28T13:39:06","slug":"","status":"publish","type":"post","link":"http:\/\/weizn.net\/?p=148","title":{"rendered":"Centos\u5b89\u88c5Code::Blocks"},"content":{"rendered":"<p>\n\t<span style=\"font-size:16px;\">1.\u5b89\u88c5gcc,\u9700\u8981c\u548cc++\u4e24\u90e8\u5206,\u9ed8\u8ba4\u5b89\u88c5\u4e0b,CentOS\u4e0d\u5b89\u88c5\u7f16\u8bd1\u5668\u7684,\u5728\u7ec8\u7aef\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef:<\/span><br \/>\n<span style=\"font-size:16px;\">yum install gcc<\/span><br \/>\n<span style=\"font-size:16px;\">yum install gcc-c++<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:16px;\"><\/span><span style=\"font-size:16px;\">&nbsp;<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:16px;\">2.\u5b89\u88c5gtk2-devel,\u56e0\u4e3a\u9ed8\u8ba4\u5df2\u7ecf\u5b89\u88c5\u4e86\u6b63\u5f0f\u4ea7\u54c1<\/span><span style=\"font-size:16px;\"><\/span><span style=\"font-size:16px;\">\u9700\u8981\u7684\u652f\u6301\u5e93,\u4f46\u662f\u6ca1\u6709\u5b89\u88c5\u5f00\u53d1\u6240\u9700\u8981\u7684\u6587\u6863.<\/span><br \/>\n<span style=\"font-size:16px;\">yum install gtk2*<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:16px;\"><\/span><span style=\"font-size:16px;\">&nbsp;<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:16px;\">3. \u5b89\u88c5wxGTK<\/span>\n<\/p>\n<p>\n\t<a href=\"http:\/\/prdownloads.sourceforge.net\/wxwindows\/wxWidgets-2.8.12.tar.gz\"><span style=\"font-size:16px;\">http:\/\/prdownloads.sourceforge.net\/wxwindows\/wxWidgets-2.8.12.tar.gz<\/span><\/a>\n<\/p>\n<p>\n\t<span style=\"font-size:16px;\">\u5efa\u7acb\u4e00\u4e2a\u5f00\u53d1\u76ee\u5f55\u5e76\u5c06\u5176\u89e3\u538b\u7f29\u5230\u8be5\u76ee\u5f55\uff1a<\/span><br \/>\n<span style=\"font-size:16px;\">mkdir wxWidgets<\/span><br \/>\n<span style=\"font-size:16px;\">cd wxWidgets<\/span><br \/>\n<span style=\"font-size:16px;\">tar xvzf wxWidgets-2.8.12.tar.gz<\/span><br \/>\n<span style=\"font-size:16px;\">cd wxWidgets-2.8.12<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:16px;\">\u7f16\u8bd1\u6e90\u4ee3\u7801:<\/span><br \/>\n<span style=\"font-size:16px;\">.\/configure &#8211;with-gtk &#8211;enable-unicode &#8211;disable-shared<\/span><br \/>\n<span style=\"font-size:16px;\">make<\/span><br \/>\n<span style=\"font-size:16px;\">\u5b89\u88c5wxWidgets:<\/span><br \/>\n<span style=\"font-size:16px;\">sudo make install<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:16px;\">\u8bbe\u7f6e\u5176\u52a8\u6001\u5e93\u76ee\u5f55\uff1a<\/span><br \/>\n<span style=\"font-size:16px;\">cd \/etc\/ld.so.conf.d\/<\/span><br \/>\n<span style=\"font-size:16px;\">sudo touch wxWidgets.conf<\/span><br \/>\n<span style=\"font-size:16px;\">vi wxWidgets.conf&nbsp; #\u589e\u52a0\u5176\u5185\u5bb9\u4e3a\/usr\/local\/lib<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:16px;\">\u91cd\u65b0\u52a0\u8f7d\u52a8\u6001\u5e93\u914d\u7f6e\u4fe1\u606f\uff1a<\/span><br \/>\n<span style=\"font-size:16px;\">sudo ldconfig<\/span> <\/p>\n<p><span style=\"font-size:16px;\">4.\u6700\u540e,\u4e0b\u8f7dcodeblocks\uff0c\u4f7f\u7528\u6e90\u7801\u7f16\u8bd1\u5b89\u88c5\u3002\u8fdb\u5165\u89e3\u538b\u7684\u76ee\u5f55\uff0c\u952e\u5165\u547d\u4ee4:<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:16px;\">.\/configure &#8211;prefix=\/usr&#8211;with-contrib-plugins=all<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:16px;\">make<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:16px;\">make install<\/span><br \/>\n<span style=\"font-size:16px;\">\u6ce8\u610f\u9700\u8981root\u6743\u9650\u5b89\u88c5<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:16px;\">&nbsp;<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:16px;\">\u4e00\u5207\u6b63\u5e38\u5bf9\u8bdd\u5c31\u5b89\u88c5\u597d\u6765\uff0c\u5728 \u5e94\u7528\u7a0b\u5e8f-&gt;\u7f16\u7a0b \u4e2d\u5c31\u6709\u4e86Codelocks\uff01<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\n\t<span style=\"font-size:16px;\">1.\u5b89\u88c5gcc,\u9700\u8981c\u548cc++\u4e24\u90e8\u5206,\u9ed8\u8ba4\u5b89\u88c5\u4e0b,CentOS\u4e0d\u5b89\u88c5\u7f16\u8bd1\u5668\u7684,\u5728\u7ec8\u7aef\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef:<\/span><br \/>\n<span style=\"font-size:16px;\">yum install gcc<\/span><br \/>\n<span style=\"font-size:16px;\">yum install gcc-c++<\/span>\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<p>\n\t<span style=\"font-size:16px;\">2.\u5b89\u88c5gtk2-devel,\u56e0\u4e3a\u9ed8\u8ba4\u5df2\u7ecf\u5b89\u88c5\u4e86\u6b63\u5f0f\u4ea7\u54c1<\/span><span style=\"font-size:16px;\">\u9700\u8981\u7684\u652f\u6301\u5e93,\u4f46\u662f\u6ca1\u6709\u5b89\u88c5\u5f00\u53d1\u6240\u9700\u8981\u7684\u6587\u6863.<\/span><br \/>\n<span style=\"font-size:16px;\">yum install gtk2*<\/span>\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<p>\n\t<span style=\"font-size:16px;\">3. \u5b89\u88c5wxGTK\uff0c\u4e0b\u8f7d\u5730\u5740<\/span><a href=\"http:\/\/pkgs.repoforge.org\/wxGTK\/\"><span style=\"font-size:16px;\">http:\/\/pkgs.repof&#8230;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[332],"tags":[],"class_list":["post-148","post","type-post","status-publish","format-standard","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Centos\u5b89\u88c5Code::Blocks - Wayne&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/weizn.net\/?p=148\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Centos\u5b89\u88c5Code::Blocks - Wayne&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"1.\u5b89\u88c5gcc,\u9700\u8981c\u548cc++\u4e24\u90e8\u5206,\u9ed8\u8ba4\u5b89\u88c5\u4e0b,CentOS\u4e0d\u5b89\u88c5\u7f16\u8bd1\u5668\u7684,\u5728\u7ec8\u7aef\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef: yum install gcc yum install gcc-c++    &nbsp;    2.\u5b89\u88c5gtk2-devel,\u56e0\u4e3a\u9ed8\u8ba4\u5df2\u7ecf\u5b89\u88c5\u4e86\u6b63\u5f0f\u4ea7\u54c1\u9700\u8981\u7684\u652f\u6301\u5e93,\u4f46\u662f\u6ca1\u6709\u5b89\u88c5\u5f00\u53d1\u6240\u9700\u8981\u7684\u6587\u6863. yum install gtk2*    &nbsp;    3. \u5b89\u88c5wxGTK\uff0c\u4e0b\u8f7d\u5730\u5740http:\/\/pkgs.repof...\" \/>\n<meta property=\"og:url\" content=\"http:\/\/weizn.net\/?p=148\" \/>\n<meta property=\"og:site_name\" content=\"Wayne&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2015-11-28T13:39:06+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"zinan\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/weizn.net\/#website\",\"url\":\"http:\/\/weizn.net\/\",\"name\":\"Wayne&#039;s Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/weizn.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/weizn.net\/?p=148#webpage\",\"url\":\"http:\/\/weizn.net\/?p=148\",\"name\":\"Centos\\u5b89\\u88c5Code::Blocks - Wayne&#039;s Blog\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/#website\"},\"datePublished\":\"2015-11-28T13:39:06+00:00\",\"dateModified\":\"2015-11-28T13:39:06+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/weizn.net\/?p=148#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/weizn.net\/?p=148\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/weizn.net\/?p=148#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\\u9996\\u9875\",\"item\":\"http:\/\/weizn.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Centos\\u5b89\\u88c5Code::Blocks\"}]},{\"@type\":\"Article\",\"@id\":\"http:\/\/weizn.net\/?p=148#article\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/?p=148#webpage\"},\"author\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"headline\":\"Centos\\u5b89\\u88c5Code::Blocks\",\"datePublished\":\"2015-11-28T13:39:06+00:00\",\"dateModified\":\"2015-11-28T13:39:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/weizn.net\/?p=148#webpage\"},\"wordCount\":81,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"articleSection\":[\"Linux\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/weizn.net\/?p=148#respond\"]}]},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\",\"name\":\"zinan\",\"logo\":{\"@id\":\"http:\/\/weizn.net\/#personlogo\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Centos\u5b89\u88c5Code::Blocks - Wayne&#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/weizn.net\/?p=148","og_locale":"zh_CN","og_type":"article","og_title":"Centos\u5b89\u88c5Code::Blocks - Wayne&#039;s Blog","og_description":"1.\u5b89\u88c5gcc,\u9700\u8981c\u548cc++\u4e24\u90e8\u5206,\u9ed8\u8ba4\u5b89\u88c5\u4e0b,CentOS\u4e0d\u5b89\u88c5\u7f16\u8bd1\u5668\u7684,\u5728\u7ec8\u7aef\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef: yum install gcc yum install gcc-c++    &nbsp;    2.\u5b89\u88c5gtk2-devel,\u56e0\u4e3a\u9ed8\u8ba4\u5df2\u7ecf\u5b89\u88c5\u4e86\u6b63\u5f0f\u4ea7\u54c1\u9700\u8981\u7684\u652f\u6301\u5e93,\u4f46\u662f\u6ca1\u6709\u5b89\u88c5\u5f00\u53d1\u6240\u9700\u8981\u7684\u6587\u6863. yum install gtk2*    &nbsp;    3. \u5b89\u88c5wxGTK\uff0c\u4e0b\u8f7d\u5730\u5740http:\/\/pkgs.repof...","og_url":"http:\/\/weizn.net\/?p=148","og_site_name":"Wayne&#039;s Blog","article_published_time":"2015-11-28T13:39:06+00:00","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"zinan"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"http:\/\/weizn.net\/#website","url":"http:\/\/weizn.net\/","name":"Wayne&#039;s Blog","description":"","publisher":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/weizn.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"WebPage","@id":"http:\/\/weizn.net\/?p=148#webpage","url":"http:\/\/weizn.net\/?p=148","name":"Centos\u5b89\u88c5Code::Blocks - Wayne&#039;s Blog","isPartOf":{"@id":"http:\/\/weizn.net\/#website"},"datePublished":"2015-11-28T13:39:06+00:00","dateModified":"2015-11-28T13:39:06+00:00","breadcrumb":{"@id":"http:\/\/weizn.net\/?p=148#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/weizn.net\/?p=148"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/weizn.net\/?p=148#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/weizn.net\/"},{"@type":"ListItem","position":2,"name":"Centos\u5b89\u88c5Code::Blocks"}]},{"@type":"Article","@id":"http:\/\/weizn.net\/?p=148#article","isPartOf":{"@id":"http:\/\/weizn.net\/?p=148#webpage"},"author":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"headline":"Centos\u5b89\u88c5Code::Blocks","datePublished":"2015-11-28T13:39:06+00:00","dateModified":"2015-11-28T13:39:06+00:00","mainEntityOfPage":{"@id":"http:\/\/weizn.net\/?p=148#webpage"},"wordCount":81,"commentCount":0,"publisher":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"articleSection":["Linux"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/weizn.net\/?p=148#respond"]}]},{"@type":["Person","Organization"],"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264","name":"zinan","logo":{"@id":"http:\/\/weizn.net\/#personlogo"}}]}},"_links":{"self":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=148"}],"version-history":[{"count":0,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/148\/revisions"}],"wp:attachment":[{"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=148"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}