gibuu is hosted by Hepforge, IPPP Durham
GiBUU

Changes between Initial Version and Version 1 of bzip2


Ignore:
Timestamp:
Mar 8, 2009, 7:45:30 PM (16 years ago)
Author:
jweil
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • bzip2

    v1 v1  
     1= libbzip2 =
     2
     3Since r2814 (March 2009) GiBUU depends on libbz2 for reading compressed bz2 files. GiBUU is usually compiled statically (exception: Mac), so the static library libbz2.a is required. This is a standard library, and may already be present on your system. If it is not, you have the following options:
     4
     5 * The most convenient way is to install the libbz2 packages (usually 'libbz2' and 'libbz2-devel' or similar) via your Linux distribution's package management tool (which requires root access or a friendly admin).
     6
     7 * If you don't have root access, your admin is not friendly or your OS is not Linux, you may instead get the bzip2 sources from http://www.bzip.org/ and compile it yourself. libbz2.a must be put someplace where the compiler can find it (e.g. in /usr/lib, /usr/lib64 or GiBUU/workingCode/objects/LIB/lib).
     8
     9This should usually be sufficient for compiling GiBUU. However, in the case that you want to compile a 32-bit GiBUU binary on a 64-bit system, you may get errors like:
     10
     11{{{
     12ld: skipping incompatible /usr/lib64/libbz2.a when searching for -lbz2
     13ld: cannot find -lbz2
     14}}}
     15
     16If this happens, you need to build a 32-bit version of libbz2.a in addition to the 64-bit version that comes with your system. This requires the following steps:
     17
     18 1. Get the the bzip2 sources from http://www.bzip.org/ and unpack them somewhere.
     19 2. In the bzip2 Makefile add "-m32" to CFLAGS (which tells the compiler to generate 32-bit code).
     20 3. Type 'make' to build the library.
     21 4. Copy the just built libbz2.a to /usr/lib or GiBUU/workingCode/objects/LIB/lib.
     22