<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Lotjuh&#039;s notes &#187; How to&#8217;s</title>
	<atom:link href="http://notes.lotjuh.winnipeg.nl/category/howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://notes.lotjuh.winnipeg.nl</link>
	<description></description>
	<lastBuildDate>Mon, 05 Oct 2009 11:36:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Freebsd unremoveable directories</title>
		<link>http://notes.lotjuh.winnipeg.nl/howto/freebsd-unremoveable-directories/</link>
		<comments>http://notes.lotjuh.winnipeg.nl/howto/freebsd-unremoveable-directories/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 11:36:08 +0000</pubDate>
		<dc:creator>Lotjuh</dc:creator>
				<category><![CDATA[How to's]]></category>
		<category><![CDATA[annoying]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[how to]]></category>

		<guid isPermaLink="false">http://notes.lotjuh.winnipeg.nl/?p=93</guid>
		<description><![CDATA[When I was trying to get my FreeBSD working as a XenU, I used the make option DESTDIR= for installworld and installkernel.
After the files had been installed in my DESTDIR directory however, I wasn&#8217;t able to remove certain directories when I tried to remove my DESTDIR for a clean new install:
rm: /usr/local/xen/current-root/bin/rcp: Operation not permitted
rm: [...]]]></description>
			<content:encoded><![CDATA[<p>When I was trying to get my FreeBSD working as a XenU, I used the make option DESTDIR= for installworld and installkernel.<br />
After the files had been installed in my DESTDIR directory however, I wasn&#8217;t able to remove certain directories when I tried to remove my DESTDIR for a clean new install:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;height:300px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>rcp: Operation not permitted<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<span style="color: #000000; font-weight: bold;">/</span>bin: Directory not empty<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libc.so.7: Operation not permitted<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libcrypt.so.5: Operation not permitted<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libthr.so.3: Operation not permitted<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<span style="color: #000000; font-weight: bold;">/</span>lib: Directory not empty<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<span style="color: #000000; font-weight: bold;">/</span>libexec<span style="color: #000000; font-weight: bold;">/</span>ld-elf.so.1: Operation not permitted<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<span style="color: #000000; font-weight: bold;">/</span>libexec: Directory not empty<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>init: Operation not permitted<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<span style="color: #000000; font-weight: bold;">/</span>sbin: Directory not empty<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>chpass: Operation not permitted<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">chfn</span>: Operation not permitted<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">chsh</span>: Operation not permitted<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ypchpass: Operation not permitted<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ypchfn: Operation not permitted<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ypchsh: Operation not permitted<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">login</span>: Operation not permitted<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>opieinfo: Operation not permitted<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>opiepasswd: Operation not permitted<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">passwd</span>: Operation not permitted<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>yppasswd: Operation not permitted<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>rlogin: Operation not permitted<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">rsh</span>: Operation not permitted<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">su</span>: Operation not permitted<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>crontab: Operation not permitted<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin: Directory not empty<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>librt.so.1: Operation not permitted<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib: Directory not empty<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<span style="color: #000000; font-weight: bold;">/</span>usr: Directory not empty<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>empty: Operation not permitted<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<span style="color: #000000; font-weight: bold;">/</span>var: Directory not empty<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root: Directory not empty</div></div>
<p>After getting really annoyed with all the directories piling up in my /usr/local/xen directory, Benv offered to try and find out why the hell these directories didn&#8217;t want to get deleted.<br />
It seemed that the directories had a flag &#8217;schg&#8217; which you can see by doing an &#8216;ls -lo&#8217; on the directory. The &#8217;schg&#8217; flag means that the directory is system immutable and only the owner and superuser are allowed to remove this flag.<br />
This is done by calling chflags 0 on the directory. This clears all it&#8217;s flags.</p>
<p>I fixed my problem by doing:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root<br />
<span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-exec</span> chflags <span style="color: #000000;">0</span> <span style="color: #ff0000;">&quot;{}&quot;</span> \;<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>current-root</div></div>
]]></content:encoded>
			<wfw:commentRss>http://notes.lotjuh.winnipeg.nl/howto/freebsd-unremoveable-directories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to build lua on Slackware 64</title>
		<link>http://notes.lotjuh.winnipeg.nl/howto/how-to-build-lua-on-slackware-64/</link>
		<comments>http://notes.lotjuh.winnipeg.nl/howto/how-to-build-lua-on-slackware-64/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 13:30:00 +0000</pubDate>
		<dc:creator>Lotjuh</dc:creator>
				<category><![CDATA[How to's]]></category>

		<guid isPermaLink="false">http://notes.lotjuh.winnipeg.nl/?p=56</guid>
		<description><![CDATA[Today I figured it was time to update my e17 installation and it seemed that they introduced a new dependency for edje: liblua. So I go to my /usr/src directory and run:
slackbuild.pl http://www.lua.org/ftp/lua-5.1.4.tar.gz
But when it tried to run configure, there was nothing to configure so I figured it was smart to quit the slackbuild script [...]]]></description>
			<content:encoded><![CDATA[<p>Today I figured it was time to update my e17 installation and it seemed that they introduced a new dependency for edje: liblua. So I go to my /usr/src directory and run:</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">slackbuild.pl http://www.lua.org/ftp/lua-5.1.4.tar.gz</div></div>
<p>But when it tried to run configure, there was nothing to configure so I figured it was smart to quit the slackbuild script and check it out myself.<br />
It seems that there was indeed no configure file, but the INSTALL file told me I had to run &#8220;make linux install&#8221; to build and install the library for my platform. Well that&#8217;s nice, but where will it install everything? Benv hinted me that I should probably edit the Makefile and change INSTALL_TOP to INSTALL_TOP= /usr/src/lua-5.1.4/pkg/usr so I could run makepkg after to create my own package. But after creating and installing the lua package, edje still complained that there was no liblua installed on my machine.<br />
Checking my config.log I found out it was searching for liblua in the pkgconfig files. Oddly enough, the lua src did have a etc/lua.pc file, but it does not install it. So I placed it in /usr/src/lua-5.1.4/pkg/usr/share/pkgconfig/ directory and I changed the paths so it would match my installation and I recreated and reinstalled the package.<br />
This time edje did find the library, but crashed with the following error:</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/usr/lib/liblua.a: could not read symbols: Bad value</div></div>
<p>After googling a little and checking the error again, I found out that the Makefile needed to be patched so it would also use the -fPIC option. So I edited the /usr/src/lua-5.1.4/src/Makefile and changed</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">CFLAGS= -O2 -Wall $(MYCFLAGS)</div></div>
<p>to</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">CFLAGS= -O2 -Wall -fPIC $(MYCFLAGS)</div></div>
<p>, ran the make linux install, created a new package, installed the package and it finally worked \o/</p>
]]></content:encoded>
			<wfw:commentRss>http://notes.lotjuh.winnipeg.nl/howto/how-to-build-lua-on-slackware-64/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to build Picard on Slackware</title>
		<link>http://notes.lotjuh.winnipeg.nl/howto/how-to-build-picard-on-slackware/</link>
		<comments>http://notes.lotjuh.winnipeg.nl/howto/how-to-build-picard-on-slackware/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 21:47:39 +0000</pubDate>
		<dc:creator>Lotjuh</dc:creator>
				<category><![CDATA[How to's]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[install on slackware]]></category>
		<category><![CDATA[picard]]></category>

		<guid isPermaLink="false">http://notes.lotjuh.winnipeg.nl/?p=7</guid>
		<description><![CDATA[Since I&#8217;ve gone through this hell a couple of months ago already, and I&#8217;m about to go through it again, I figured I should write it down this time so I might be easier to do it the next time.
If you wonder what picard is, you can check it out here: PicardTagger
To install Picard, you&#8217;ll [...]]]></description>
			<content:encoded><![CDATA[<p>Since I&#8217;ve gone through this hell a couple of months ago already, and I&#8217;m about to go through it again, I figured I should write it down this time so I might be easier to do it the next time.</p>
<p>If you wonder what picard is, you can check it out here:<a title="WikiDocs: Picard Tagger" href="http://musicbrainz.org/doc/Picard_Tagger"> PicardTagger</a></p>
<p>To install Picard, you&#8217;ll need the following software</p>
<ul>
<li><a href="http://www.fftw.org/">fftw3</a></li>
<li><a href="https://launchpad.net/ubuntu/karmic/+source/libofa/0.9.3-3">libofa (0.9.2 or later)</a></li>
<li><a title="WikiDocs: libmusicbrainz Download" href="http://musicbrainz.org/doc/libmusicbrainz_Download">Libmusicbrainz 2</a></li>
<li><a href="http://code.google.com/p/mutagen/">mutagen</a></li>
<li><a href="http://ffmpeg.org/download.html">ffmpeg</a></li>
<li><a title="WikiDocs: Picard Download" href="http://musicbrainz.org/doc/Picard_Download">Picard</a></li>
</ul>
<p><span id="more-7"></span></p>
<h3>Building fftw3</h3>
<p>When you build fftw3, make sure you run configure with &#8211;enable-shared since it&#8217;s default set to &#8216;no&#8217;.</p>
<h3>Building libofa</h3>
<p>Building libofa is not as trivial as it seems. Since it&#8217;s quite old, it&#8217;ll need some patches. What I did, was downloading the libofa src from ubuntu and use the ubuntu patches to make it compile.</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># wget --no-check-certificate https://launchpad.net/ubuntu/intrepid/+source/libofa/0.9.3-3/+files/libofa_0.9.3.orig.tar.gz<br />
# wget --no-check-certificate https://launchpad.net/ubuntu/intrepid/+source/libofa/0.9.3-3/+files/libofa_0.9.3-3.diff.gz<br />
# tar zxvf libofa_0.9.3.orig.tar.gz<br />
# gunzip libofa_0.9.3-3.diff.gz<br />
# patch -p0 &lt; libofa_0.9.3-3.diff<br />
# cd libofa-0.9.3/<br />
# patch -p1 &lt; debian/patches/01_gcc41.diff<br />
# patch -p1 &lt; debian/patches/02_example-open.diff<br />
# patch -p0 &lt; debian/patches/03_example-size_type.diff<br />
# patch -p0 &lt; debian/patches/04_libofa.pc-deps.diff<br />
# patch -p0 &lt; debian/patches/05_gcc43.diff<br />
# ./configure<br />
# make<br />
# make install</div></div>
<h3>Building libmusicbrainz</h3>
<p>For libmusicbrainz you&#8217;ll have to patch some files as well. A nice overview of files that need to be patched can be found <a href="http://bugs.musicbrainz.org/attachment/ticket/3492/musicbrainz-2.1.5-gcc43-includes.patch">here</a></p>
<p>You&#8217;ll also have to install the python library which you can find in the package it self in the python directory. Just run ./setup.py config ./setup.py build and ./setup.py install.</p>
<h3>Building mutagen</h3>
<p>I downloaded the latest version from mutagen from <a href="http://code.google.com/p/mutagen/downloads/list">the google code project site</a></p>
<p>Just unpack it and run ./setup.py install to install the package</p>
<h3>Building ffmpeg</h3>
<p>When you build ffmpeg, make sure you run configure with &#8211;enable-shared since it&#8217;s default set to &#8216;no&#8217;.</p>
<h3>Installing Picard</h3>
<p>Now you&#8217;ve finally installed all the dependencies, you can install Picard. In my case I&#8217;m installing Picard 0.11 which expect an older ffmpeg install so it needs to be patched as well to be able to find the avcodec.h and avformat.h files. Edit the setup.py file and search for  cfg.set(&#8217;avcodec&#8217;, &#8216;cflags&#8217;, cfg.get(&#8217;avcodec&#8217;, &#8216;cflags&#8217;) + &#8216; -DUSE_OLD_FFMPEG_LOCATIONS&#8217;). You&#8217;ll have to replace it with fg.set(&#8217;avcodec&#8217;, &#8216;cflags&#8217;, cfg.get(&#8217;avcodec&#8217;, &#8216;cflags&#8217;)) and all should be working.</code></p>
]]></content:encoded>
			<wfw:commentRss>http://notes.lotjuh.winnipeg.nl/howto/how-to-build-picard-on-slackware/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

