When running the buildout, which uses the package plone.recipe.pound by the way, it ended with this:
An internal error occurred due to a bug in either zc.buildout or in a recipe being used:
Traceback (most recent call last):
File "/private/var/folders/jt/jtv7gTB4GgqMNrztzYnFoU+++TI/-Tmp-/tmpWzlOWE/zc.buildout-1.5.0b2-py2.4.egg/zc/buildout/buildout.py", line 1660, in main
File "/private/var/folders/jt/jtv7gTB4GgqMNrztzYnFoU+++TI/-Tmp-/tmpWzlOWE/zc.buildout-1.5.0b2-py2.4.egg/zc/buildout/buildout.py", line 532, in install
File "/private/var/folders/jt/jtv7gTB4GgqMNrztzYnFoU+++TI/-Tmp-/tmpWzlOWE/zc.buildout-1.5.0b2-py2.4.egg/zc/buildout/buildout.py", line 1204, in _call
File "/Users/mark/projects/prettigpersoneel/svn_trunk/eggs/plone.recipe.pound-0.5.5-py2.4.egg/plone/recipe/pound/build.py", line 78, in install
installed = CMMIRecipe.install(self)
File "/Users/mark/projects/prettigpersoneel/svn_trunk/eggs/zc.recipe.cmmi-1.3.1-py2.4.egg/zc/recipe/cmmi/__init__.py", line 159, in install
self.cmmi(dest)
File "/Users/mark/projects/prettigpersoneel/svn_trunk/eggs/zc.recipe.cmmi-1.3.1-py2.4.egg/zc/recipe/cmmi/__init__.py", line 187, in cmmi
system("make")
File "/Users/mark/projects/prettigpersoneel/svn_trunk/eggs/zc.recipe.cmmi-1.3.1-py2.4.egg/zc/recipe/cmmi/__init__.py", line 32, in system
raise SystemError("Failed", c)SystemError: ('Failed', 'make')
Looking a bit further back, I saw this:
pound.h:188:2: error: #error "You have libpcreposix, but the header files are missing. Use --disable-pcreposix"
And before that:
checking pcreposix.h usability... nochecking pcreposix.h presence... nochecking for pcreposix.h... nochecking pcre/pcreposix.h usability... nochecking pcre/pcreposix.h presence... nochecking for pcre/pcreposix.h... no
Okay, now we’re getting somewhere… Apparently I had to make sure
pcreposix.h
was available. However, I had already installed pcre
and pcre++
via MacPorts. Google also
didn’t turn up any hints on where to get the needed header file.
Luckily I remembered that I had installed Homebrew a while back. A quick
brew install pcre
solved my problem: Pound compiled and the buildout ran without problems again.
]]>This time I decided to not wait for four months before updating to the new Ubuntu version. Especially since colleagues reported to work successfully with this new version. I’ve worked with this setup for a week or two now and everything seems to work. Here’s what I encountered:
I expected to run into problems with Python since the Ubuntu packages for e.g. Python imaging and XML (which I need for my day-to-day work) aren’t available for version 2.4 anymore. While Maurits van Rees and Sam Stainsby chose to work with virtualenv, I installed the required packages globally.
Setuptools and
PIL were relatively easy to
install. Just a matter of downloading and running “/usr/bin/python2.4 setup.py install
” (IIRC, to be honest I didn’t document this.)
However, the libxml2
python bindings proved to be a bit harder. I
needed the following steps to get it up and running (thanks to
Hedley Roos and Izak Burger):
limxml2
package../configure
” and “make
”$ CFLAGS=-I/usr/include/libxml2 /usr/bin/python2.4 setup.py build
$ sudo CFLAGS=-I/usr/include/libxml2 /usr/bin/python2.4 setup.py install
The new version of Ubuntu also brought a loud surprise: every time I powered down my laptop a beep was audible. Since it seemed to bypass the sound driver (muting the sound didn’t help) I could not even turn it down. Changing the Gnome settings as recommended did not work; my Dell Precision M65 kept on making the noise.
Luckily the solution provided on
another thread did
work. I added the following line to /etc/modpobe.d/blacklist.conf
:
blacklist pcspkr
And I enjoy the silence once again. As an additional benefit: no more lound beeps if I make mistakes (e.g. trying to scroll pas the end of my Tomboy note, try to use backspace at the beginning of a line in XChat, et cetera). So in a way I’m grateful of the loud beeps at shutdown: I wasn’t annoyed enough by the other beeps to silence them but I’m glad I got rid of them. And so do the people in my environment. :)
At Zest we use the thin (wired) Apple keyboards. They look slick and work quite well. The problem I had with them (besides that we’ve got the Dutch keyboard layout, which has the tilde placed near the “z” instead of where if should be: next to the “1” key) is that the function keys didn’t work. That is: I had to push the “fn” key. Otherwise pressing F12 turned up the volume instead of bringing up Firebug.
On Intrepid I solved this already by having a file called
/etc/modprobe.d/applekeyboard
with the following contents:
options hid pb_fnmode=2
Apparently this didn’t work anymore. Brian K. White on the other hand presented a solution that worked for me.
I’ve now got /etc/modprobe.d/hid_apple.conf
with this line:
options hid_apple fnmode=2
After updating initramfs (“update-initramfs -k `uname -r` -u
”) and rebooting
the machine, the function keys worked the way I like them. (While writing this
blog entry and checking my sources, I see that this information is now also
available on the
AppleKeyboard
page in the Ubuntu Community Documentation.)