{"id":1978,"date":"2009-08-04T03:41:07","date_gmt":"2009-08-04T11:41:07","guid":{"rendered":"http:\/\/www.oeconomist.com\/blogs\/daniel\/?p=1978"},"modified":"2010-03-29T01:33:42","modified_gmt":"2010-03-29T09:33:42","slug":"installing-firefox-3-5-under-red-hat-enterprise-linux-5-x","status":"publish","type":"post","link":"https:\/\/www.oeconomist.com\/blogs\/daniel\/?p=1978","title":{"rendered":"Installing Firefox 3.5 under Red Hat Enterprise Linux 5.x"},"content":{"rendered":"<p style=\"text-align: center ; font-weight: bolder ;\">If you're actually trying to install another version of Firefox, then click on <a href=\"?tag=firefox\">the <q>Firefox<\/q> tag<\/a>, as there may be an entry on that other version.<\/p> <p><a href=\"http:\/\/www.mozilla.com\/en-US\/firefox\/all.html\">Firefox<\/a> 3.5.2 has been released.  I imagine that someone will soon provide an <code>.rpm<\/code>; but, for now, Red Hat users will have to install things from a tarball.  Since a fair number of the hits to this &#39;blog are from searches as to <a href=\"http:\/\/www.oeconomist.com\/blogs\/daniel\/?p=166\">how to install Firefox 3.0 under <abbr title=\"Red Hat Enterprise Linux\" style=\"font-size: smaller ;\">RHEL<\/abbr> 5.x<\/a>, I'm going to infer that people are and will be surfing the <abbr title=\"World-Wide\">WW<\/abbr>Web for instructions on how to install <a href=\"http:\/\/www.mozilla.com\/en-US\/firefox\/all.html\">Firefox<\/a> 3.5 under <abbr title=\"Red Hat Enterprise Linux\" style=\"font-size: smaller ;\">RHEL<\/abbr> 5.x.<\/p> <p>My first piece of advice is that one <em>not<\/em> install <a href=\"http:\/\/www.mozilla.com\/en-US\/firefox\/all.html\">Firefox<\/a> 3.5.<em>1<\/em>.  When I tried using it, it would do something that caused the Linux user account to be logged-out.  However, I've being trying version 3.5.<em>2<\/em>, and so far I've not had that problem with it. <span style=\"font-weight: bolder ;\">[<span style=\"font-variant: small-caps ;\">Up-Date<\/span><\/span> (2009:08\/17)<span style=\"font-weight: bolder ;\">:<\/span> Unfortunately, I have since had some problems with version 3.5.<em>2<\/em> logging me out of the system, and on one occasion it screw-up the display resolution.  But these problems have not been so frequent as to move me to stop using this version.<span style=\"font-weight: bolder ;\">]<\/span> That said, here are the steps that I recommend:<\/p> <ol><li>Download <a href=\"http:\/\/www.mozilla.com\/en-US\/firefox\/all.html\">the archive, firefox-3.5.<var>n<\/var>.tar.bz2<\/a>.<\/li><li>The tarball contains a directory, <code>firefox<\/code>, which should be dropped-in as a sub-directory of <em>something<\/em>.  If you want to <em>ponder<\/em> where, then study <a href=\"http:\/\/www.pathname.com\/fhs\/\">the <abbr title=\"Filesystem Hierarchy Standard\">FHS<\/abbr><\/a>.  As for me, <em>as root<\/em>, I put it in <code>\/opt<\/code>: <blockquote style=\"width: 100%; overflow: auto;\"><code>tar&nbsp;-xjvf&nbsp;firefox-3.5.<u><var>n<\/var><\/u>.tar.bz2&nbsp;-C&nbsp;\/opt\/<\/code><\/blockquote> (Replace that <q><var>n<\/var><\/q> with the actual number from the archive that you downloaded.)<\/li><li>Make sure that you have <code>compat-libstdc++-33<\/code> (a Gnome C++ compatibility library): <blockquote style=\"width: 100%; overflow: auto;\"><code>rpm&nbsp;-qa&nbsp;|&nbsp;grep&nbsp;compat-libstdc++-33<\/code><\/blockquote> If not, then <em>as root<\/em> install it:<blockquote style=\"width: 100%; overflow: auto;\"><code>yum&nbsp;install&nbsp;compat-libstdc++-33<\/code><\/blockquote><\/li><li>To avoid conflicts with <a href=\"http:\/\/www.nsa.gov\/selinux\/\"><abbr title=\"Security-Enhanced\">SE<\/abbr>Linux<\/a>, <em>as root<\/em> run<blockquote style=\"width: 100%; overflow: auto;\"><code><a href=\"http:\/\/www.linuxcommand.org\/man_pages\/chcon1.html\">chcon<\/a>&nbsp;-t&nbsp;textrel_shlib_t&nbsp;\/opt\/firefox\/libxul.so<\/code><\/blockquote> (If you didn't install the directory in <code>\/opt<\/code>, or renamed the <code>firefox<\/code> directory, then you'll need to modify the above final argument to <a href=\"http:\/\/www.linuxcommand.org\/man_pages\/chcon1.html\"><code>chcon<\/code><\/a> accordingly.)<\/li><li>You'll need a <a href=\"http:\/\/www.redhat.com\/magazine\/012oct05\/features\/freedesktop\/\"><code>.desktop<\/code> file<\/a> for <a href=\"http:\/\/www.mozilla.com\/en-US\/firefox\/all.html\">Firefox<\/a> (though you may already have one).  <em>As root<\/em>, edit\/create <code>\/usr\/share\/applications\/firefox.desktop<\/code>, ensuring that it reads<blockquote style=\"width: 100%; overflow: auto;\"><pre>[Desktop Entry]\r\nCategories=Application;Network;X-Red-Hat-Base;\r\nType=Application\r\nEncoding=UTF-8\r\nName=Firefox\r\nComment='WWW browser'\r\nExec='\/opt\/firefox\/firefox'\r\nIcon='\/opt\/firefox\/icons\/mozicon128.png'\r\nTerminal=false<\/pre><\/blockquote> (Again, if you didn't install in <code>\/opt<\/code>, or changed the name of the <code>firefox<\/code> directory, then you'll need to change the above accordingly.)<\/li><li>Log out and back in or restart the system (to up-date the <abbr title=\"graphic user interface\">GUI<\/abbr>).<\/li><\/ol>","protected":false},"excerpt":{"rendered":"If you're actually trying to install another version of Firefox, then click on the Firefox tag, as there may be an entry on that other version. Firefox 3.5.2 has been released. I imagine that someone will soon provide an .rpm; but, for now, Red Hat users will have to install things from a tarball. Since [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[69,104,4],"tags":[253,72,140,143,142,141],"class_list":["post-1978","post","type-post","status-publish","format-standard","hentry","category-information-technology","category-news","category-public","tag-firefox","tag-linux","tag-red-hat","tag-redhat","tag-rhel","tag-selinux"],"_links":{"self":[{"href":"https:\/\/www.oeconomist.com\/blogs\/daniel\/index.php?rest_route=\/wp\/v2\/posts\/1978","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oeconomist.com\/blogs\/daniel\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oeconomist.com\/blogs\/daniel\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oeconomist.com\/blogs\/daniel\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oeconomist.com\/blogs\/daniel\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1978"}],"version-history":[{"count":0,"href":"https:\/\/www.oeconomist.com\/blogs\/daniel\/index.php?rest_route=\/wp\/v2\/posts\/1978\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.oeconomist.com\/blogs\/daniel\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1978"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oeconomist.com\/blogs\/daniel\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1978"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oeconomist.com\/blogs\/daniel\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1978"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}