{"id":145,"date":"2013-01-08T09:49:02","date_gmt":"2013-01-08T16:49:02","guid":{"rendered":"http:\/\/bclary.com\/blog\/?p=145"},"modified":"2013-01-08T09:57:44","modified_gmt":"2013-01-08T16:57:44","slug":"building-python-2-7-3-on-rhel6","status":"publish","type":"post","link":"https:\/\/bclary.com\/blog\/2013\/01\/08\/building-python-2-7-3-on-rhel6\/","title":{"rendered":"Building Python 2.7.3 on RHEL6"},"content":{"rendered":"<p><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=804865\">bug 804865<\/a> recently introduced the requirement to use Python 2.7 when building Firefox Nightly (Firefox 21). Since only Python 2.6 is available on  Redhat Enterprise Linux 6 (RHEL6) you will need to build Python. A working version can be built by:<\/p>\n<pre>\r\ncd ~\/Downloads\r\nsudo yum install bzip2-devel sqlite-devel ncurses-devel openssl-devel readline-devel tkinter tk-devel\r\ncurl -O http:\/\/www.python.org\/ftp\/python\/2.7.3\/Python-2.7.3.tar.bz2\r\nif ! md5sum Python-2.7.3.tar.bz2 | grep c57477edd6d18bd9eeca2f21add73919; then\r\n    echo \"Failed md5sum check\"\r\nelse\r\n    tar xjvf Python-2.7.3.tar.bz2 && \\\r\n    cd Python-2.7.3 && \\\r\n    .\/configure && \\\r\n    make && \\\r\n    sudo make altinstall\r\nfi\r\n<\/pre>\n<p>This will produce a working version of Python that can be used to build Firefox Nightly though the following modules will not be built. <\/p>\n<ul>\n<li>_bsddb<\/li>\n<li>bsddb185<\/li>\n<li>dbm<\/li>\n<li>gdbm<\/li>\n<li>sunaudiodev<\/li>\n<\/ul>\n<p>See <a href=\"http:\/\/www.python.org\/download\/releases\/2.7.3\/\">Python 2.7.3 Release<\/a> for more details.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>bug 804865 recently introduced the requirement to use Python 2.7 when building Firefox Nightly (Firefox 21). Since only Python 2.6 is available on Redhat Enterprise Linux 6 (RHEL6) you will need to build Python. A working version can be built by: cd ~\/Downloads sudo yum install bzip2-devel sqlite-devel ncurses-devel openssl-devel readline-devel tkinter tk-devel curl -O &hellip; <a href=\"https:\/\/bclary.com\/blog\/2013\/01\/08\/building-python-2-7-3-on-rhel6\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Building Python 2.7.3 on RHEL6&#8221;<\/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":[1],"tags":[],"class_list":["post-145","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/bclary.com\/blog\/wp-json\/wp\/v2\/posts\/145","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bclary.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bclary.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bclary.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bclary.com\/blog\/wp-json\/wp\/v2\/comments?post=145"}],"version-history":[{"count":6,"href":"https:\/\/bclary.com\/blog\/wp-json\/wp\/v2\/posts\/145\/revisions"}],"predecessor-version":[{"id":151,"href":"https:\/\/bclary.com\/blog\/wp-json\/wp\/v2\/posts\/145\/revisions\/151"}],"wp:attachment":[{"href":"https:\/\/bclary.com\/blog\/wp-json\/wp\/v2\/media?parent=145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bclary.com\/blog\/wp-json\/wp\/v2\/categories?post=145"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bclary.com\/blog\/wp-json\/wp\/v2\/tags?post=145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}