Building biblatex-biber

The biblatex-biber project provides probably the best way for biblatex users to switch to pure UTF-8 bibliography information. However, getting it to build can cause problems: biblatex-biber is a Perl programme, and needs various downloads from CPAN. I thought it would therefore be useful to put some simple recipes here, explaining what I’ve done to get a working biblatex-biber on Windows, Ubuntu and Mac OS X. I’m assuming that the latest biblatex-biber release has been downloaded and unzipped somewhere, and that the Command Prompt/Terminal/Shell is open in that directory (folder).

Mac OS X 10.6 (Snow Leopard)

Mac OS X comes with Perl installed, so life is relatively easy. At the Terminal, you need to run the cpan script as root:

sudo cpan

The cpan script has its own prompt, but this is very similar to the Terminal one. First, I updated cpan itself and installed a helper module with

install CPAN
reload cpan
install YAML

That done, the various requirements for biblatex-biber can be installed, using the single call

install Data::Dump List::AllUtils Readonly Text::BibTeX Readonly::XS

For the more cautious person (such as me), each install instruction can be given on a separate line: this keeps things a bit more controlled. I accepted the standard settings, except when asked about installing items that were only needed for testing, where I said no.

Once cpan has done all of the installing, you can leave it by typing


So now back at the Terminal prompt, a few simple instructions

perl Build.PL
sudo ./Build install

That put biblatex-biber onto the path for all users: everything then worked correctly.

Ubuntu 9.10

Once again, Perl is installed as standard in Linux distributions: I’m using Ubuntu as a representative system. Before starting cpan, there is an additional step, which is to install an extra Ubuntu package. So at the Terminal, you need to do

sudo apt-get install libxml2-dev

This is needed as otherwise you get some very odd errors in a bit. Now, essentially the same recipe works as for the Mac. First run cpan running and update and install YAML. Then there is a long list of items to install

install Data::Dump List::AllUtils Readonly Text::BibTeX Readonly::XS XML::Writer XML::LibXML File::Slurp

which can again be done one at a time, for the more cautious.

After exiting cpan, the same three lines at the Terminal should work as in the Mac section.

perl Build.PL
sudo ./Build install

Windows (XP, Vista and 7)

To date, my attempts to build biblatex-biber on Windows (using Strawberry Perl) have failed as I can’t get the Perl module Text::BibTeX to install. This is supposed to be optional, but without it biblatex-biber does not seem to work, although I do get it to build. Luckily, there is a self-contained binary for Windows available from the project site. This includes its own Perl system, so there is no need to get Perl set up before trying it. Everything seems to work for me with this version. Any ideas on what is necessary would be helpful!

25 thoughts on “Building biblatex-biber

  1. Hello tobig,

    I can only report what I can test :-) I’d seen the c.t.t thread, hence the post here. To be honest, things seem easiest on Mac OS X. Running the Build.PL script gave a list of items which were needed but not available, which I then installed, and after that everything worked. As I’ve said, no joy at all on Windows and the Ubuntu issue was a bit awkward to solve.

  2. Well i also followed the README and got a quite nice Error Message while trying to execute biber. So after installing IPC:Cmd it works…
    I presume that you already installed the Module for other Reasons or that Snow Leo contains it per default.
    I dont use Perl so often, so i only have a basic set of Modules…

  3. Hello tobig,

    I started with a completely “vanilla” Mac OS X 10.6 Perl set up, ran “perl Build.PL” for biblatex-biber and got a list of missing modules. Then I installed them using cpan, and re-ran “perl Build.PL” which did not give any errors. So I’ve no idea about IPC::Cmd – perhaps some other people might report back?

  4. Well that may corospondend withh the perl Versions. I just read that Snow Leopard is shipped with 5.10. where IPC::Cmd is a Core Module and Leopard comes with 5.8.8 where IPC::Cmd is not a Core Module. If Core Module means that it is installed per default we got the answer.

  5. In my case, the problem on Snow Leopard was that an older Perl version was installed by MacPorts due to weird dependencies, so I had to install IPC::Cmd separately.

  6. Hello Philipp,

    I’ve so far avoided MacPorts entirely as I don’t need it. Either there is a proper Mac version of the software, or I have the tools to build the source and use Terminal or X11 apps. Needing to install Perl twice sounds like a bad idea to me :-)

  7. Thanks! Worked like a charm. I have filed a bug with ubuntu, because using utf-8-bibtex files with biblatex prevents them from properly sorting the bibliography (at least in non-english languages). Following your instructions has solved that bothersome problem.

  8. Can’t seem to get the Windows version installed though… downloaded the special Windows package but can’t get it to compile with ActivePerl….

  9. Hi, I just followed your guide and noticed that under MacOSX 10.6.3 two additional Perl packages are needed not to build but to run biber: Config::General and Log::Log4perl
    Best, Georg

  10. Just tried it out and everything went fine until I got the following error message:

    cpan[10]> install YAML
    Running install for module ‘YAML’
    Running make for A/AD/ADAMK/YAML-0.71.tar.gz
    Has already been unwrapped into directory /Users/jon/.cpan/build/YAML-0.71-6dqx2a
    Could not make: Unknown error
    Warning (usually harmless): ‘YAML’ not installed, will not store persistent state
    Running make test
    Can’t test without successful make
    Running make install
    Make had returned bad status, install seems impossible

    So where do I go from here? How should I interpret the above statement?

  11. In my tests I’ve always got away without YAML (with some warnings about it not being installed). Could you say what platform you are on and exactly what steps you took (apart from when I chose to do it deliberately I’ve never seen YAML get installed by my route to building biber).

  12. I’d like to mention that nowadays precompiled binaries for Mac and Linux are available on SourceForge and from TLcontrib, so manual compilation is usually not necessary any more.

  13. Hi, I’ve just tried to follow your instructions and everything just went fine until i give the command
    perl Build.PL
    It gives out the error message:

    perl Build.PL
    Can’t open perl script “Build.PL”: No such file or directory
    Can anyone tell me what is the problem.
    I´m running a OS 10.6.8 Snow Leopard system.

  14. @Thabang It’s been a while since I’ve needed to build Biber myself: it’s now included in TeX Live/MacTeX, so there really isn’t much need for most of us to worry about this. (I’m no Perl exper!)

Leave a Comment