{"id":980,"date":"2010-12-23T17:39:33","date_gmt":"2010-12-23T22:39:33","guid":{"rendered":"http:\/\/www.matthewgkeller.com\/blog\/?p=980"},"modified":"2011-01-03T08:40:27","modified_gmt":"2011-01-03T13:40:27","slug":"installing-openqrm-4-7-on-fedora-14","status":"publish","type":"post","link":"http:\/\/www.matthewgkeller.com\/blog\/2010\/12\/23\/installing-openqrm-4-7-on-fedora-14\/","title":{"rendered":"Installing OpenQRM 4.7 on Fedora 14"},"content":{"rendered":"<p><a href=\"http:\/\/openqrm.com\/\">OpenQRM<\/a> 4.7 doesn&#8217;t compile cleanly on <a href=\"http:\/\/fedoraproject.org\/\">Fedora<\/a> 14 (x64, but I don&#8217;t think that matters for this bug), and coercing it to do so isn&#8217;t the cleanest trick. The problem is actually with Busybox 1.14.2 that is automatically downloaded and compiled, but we have to work around that.<\/p>\n<p>Download the openqrm source, or check out the code from their repo, change into the working directory and do a &#8216;make rpm&#8217; (or &#8216;make&#8217; &#8230; and <em>then<\/em> &#8216;make rpm&#8217; if you prefer). <strong>NOTE:<\/strong> you&#8217;ll probably need to do a &#8216;mkdir -p \/usr\/src\/redhat\/SOURCES&#8217; to get the rpmbuild process to get anywhere.<\/p>\n<p><em>After<\/em> &#8216;make rpm&#8217; fails to make anything other than openqrm-entire.rpm (which is <em>not<\/em> all you need) I recommend &#8216;cd ~\/rpmbuild; rm -Rf SOURCES; ln -s \/usr\/src\/redhat\/SOURCES .\/&#8217; &#8211; this will save you from having to manually copy stuff because of path inconsistencies in the openqrm build system.<\/p>\n<p>Regardless as to whether you follow my tip above, you&#8217;ll need to go into the buildtmp\/busybox\/ folder that openqrm has created. There&#8217;s likely two folders there, source\/ and busybox-1.14.2\/ &#8230; &#8216;rm -Rf busybox-1.14.2&#8217; to clean that out, and the &#8216;cd source&#8217;. There you&#8217;ll find the source archive. &#8216;tar -xjf busybox-1.14.2.tar.bz2&#8217; to extract it, then delete the archive &#8216;rm -f busybox-1.14.2.tar.bz2&#8217;. Change into the source directory root, edit the Makefile with your favorite text editor, and at <strong>line 422, replace &#8216;config %config&#8217; with just &#8216;%config&#8217;. At line 1270, replace &#8216;\/ %\/&#8217; with just &#8216;%\/&#8217;<\/strong>. When done, &#8216;cd ..&#8217; and &#8216;tar -cjf busybox-1.14.2.tar.bz2 busybox-1.14.2\/&#8217; to create a new archive of the modified source we have. &#8216;rm -Rf busybox-1.14.2\/&#8217; to clean up, and you&#8217;re practically done.<\/p>\n<p>Change your directory back to the root of the source build, and do a &#8216;make rpm&#8217; again. OpenQRM&#8217;s intelligent build system will notice it has already downloaded busybox, and just unpack and build it&#8230; correctly this time. After some more waiting you&#8217;ll have three useful RPMs in the rpmbuild\/RPMS\/ folder &#8211; and can install them anywhere.<\/p>\n<p><strong>OH, one more thing:<\/strong> when you install it at launch the web interface, you&#8217;ll probably notice a whole lot of PHP code as ambient background. You may not prefer this. edit &#8216;\/usr\/share\/openqrm\/web\/base\/class\/htmlobject.form.class.php&#8217; and the very first line which says &#8216;&lt;?&#8217; should be &#8216;&lt;?php&#8217; and you should now be able to clearly read your webpages. Magical.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OpenQRM 4.7 doesn&#8217;t compile cleanly on Fedora 14 (x64, but I don&#8217;t think that matters for this bug), and coercing it to do so isn&#8217;t the cleanest trick. The problem is actually with Busybox 1.14.2 that is automatically downloaded and &hellip; <a href=\"http:\/\/www.matthewgkeller.com\/blog\/2010\/12\/23\/installing-openqrm-4-7-on-fedora-14\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/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":[10,13,17],"tags":[93,91,92],"class_list":["post-980","post","type-post","status-publish","format-standard","hentry","category-linuxy","category-products","category-work","tag-compile-problems","tag-openqrm","tag-source"],"_links":{"self":[{"href":"http:\/\/www.matthewgkeller.com\/blog\/wp-json\/wp\/v2\/posts\/980","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.matthewgkeller.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.matthewgkeller.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.matthewgkeller.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.matthewgkeller.com\/blog\/wp-json\/wp\/v2\/comments?post=980"}],"version-history":[{"count":0,"href":"http:\/\/www.matthewgkeller.com\/blog\/wp-json\/wp\/v2\/posts\/980\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.matthewgkeller.com\/blog\/wp-json\/wp\/v2\/media?parent=980"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.matthewgkeller.com\/blog\/wp-json\/wp\/v2\/categories?post=980"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.matthewgkeller.com\/blog\/wp-json\/wp\/v2\/tags?post=980"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}