{"id":391,"date":"2007-03-16T12:32:24","date_gmt":"2007-03-16T17:32:24","guid":{"rendered":"http:\/\/ywwg.com\/wordpress\/?p=391"},"modified":"2007-03-16T12:32:25","modified_gmt":"2007-03-16T17:32:25","slug":"building-pylucene-on-ubuntu-edgy","status":"publish","type":"post","link":"https:\/\/ywwg.com\/wordpress\/archives\/391","title":{"rendered":"Building PyLucene on Ubuntu Edgy"},"content":{"rendered":"<p>PenguinTV actually has a good search feature, but it&#8217;s rarely used because it requires PyLucene, and installing PyLucene is extremely hard.  Here&#8217;s the HOWTO for Ubuntu Edgy:<br \/>\n<!--more--><\/p>\n<ul>\n<li>Make sure you have the following packages installed (may not be enough): gcj, libdb4.4, libdb4.4-dev, libdb4.4-java, libdb4.4-java-dev, libdb4.4-java-gcj<\/li>\n<li>download and extract pylucene<\/li>\n<li>Also download berkeleydb 4.4.20, and extract it inside the extracted pylucene folder<\/li>\n<li>change to db-4.4.20\/build_unix<\/li>\n<li>run\n<pre>..\/dist\/configure<\/pre>\n<\/li>\n<li>do not make or install db-4.4, it&#8217;s not necessary.  Pylucene just needs the sources<\/li>\n<li>edit Makefile and insert the following:\n<pre>PREFIX=\/usr\r\nPREFIX_PYTHON=$(PREFIX)\r\nLIBDIR_NAME=lib\r\nGCJ_HOME=\/usr\r\nGCJ_LIBDIR=$(GCJ_HOME)\/$(LIBDIR_NAME)\r\nGCJ_STATIC=0\r\nDB=$(PYLUCENE)\/db-$(DB_VER)\r\nPREFIX_DB=$(PREFIX)\r\nANT=ant\r\nPYTHON=$(PREFIX_PYTHON)\/bin\/python<\/pre>\n<\/li>\n<li>Then try running Make and see if it works<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>PenguinTV actually has a good search feature, but it&#8217;s rarely used because it requires PyLucene, and installing PyLucene is extremely hard. Here&#8217;s the HOWTO for Ubuntu Edgy:<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,13,25],"tags":[],"_links":{"self":[{"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/posts\/391"}],"collection":[{"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/comments?post=391"}],"version-history":[{"count":0,"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/posts\/391\/revisions"}],"wp:attachment":[{"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/media?parent=391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/categories?post=391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/tags?post=391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}