Member Site Forums Rosetta 3 Rosetta 3 – Build/Install Debian Med: Sharing Rosetta build experience with Debian and Ubuntu Reply To: Debian Med: Sharing Rosetta build experience with Debian and Ubuntu

#5914
Anonymous

    A new version is out, the one or other may profit from the following instructions for a compilation on recent Debian or Ubuntu machines.

    Getting the source to a good place

    Download tarball from your web browser

    Render it detectable to Debian build system

    ln -s rosetta3.3_source.tgz rosetta_3.3.orig.tar.gz

    Unpack it

    tar xzvf rosetta_3.3.orig.tar.gz

    Be impressed by the size of the source code

    du -sh rosetta_source

    374M rosetta_source

    Substract contribution external software from that impression

    du -sh rosetta_source/external

    make sure you have at least 4.5 GB of free disk space on that partition

    df -h .

    Adding Build instructions to the source code from Debian Med‘s subversion repository

    change to source tree

    cd rosetta_source

    get debian directory

    svn checkout svn://svn.debian.org/svn/debian-med/trunk/packages/rosetta/trunk/debian

    quickly check that the debian directory is talking about the same version and is not somewhat ‘behind’

    dpkg-parsechangelog

    Source: rosetta

    Version: 3.3-1

    Handling patches to the source code to adapt from Rosetta’s source tree for Debian/Ubuntu

    make sure all build dependencies are available

    sudo apt-get install debhelper scons zlib1g-dev quilt build-essential

    prepare patch-tool quilt to find the patches in the Debian subfolder

    QUILT_PATCHES=debian/patches; export QUILT_PATCHES

    check if all patches apply

    quilt push -a

    The very new releases won’t have any such patches. Complain here or by email to the package maintainer if something fails.

    Reserve an hour for the build on a recent machine.

    initiate build

    fakeroot ./debian/rules -j 4 binary

    the Debian package is not too big

    ls -lh ../rosetta_3.3-1_amd64.deb

    -rw-r–r– 1 moeller moeller 30M Aug 1 16:35 ../rosetta_3.3-1_amd64.deb

    install the package

    dpkg -i ../rosetta_3.3-1_amd64.deb

    quick cross-check that the libraries are indeed found

    ldd /usr/bin/FlexPepDocking

    linux-vdso.so.1 => (0x00007fff24db8000)

    libprotocols.so => /usr/lib/rosetta/lib/libprotocols.so (0x00007ffd5fd31000)

    libcore.5.so => /usr/lib/rosetta/lib/libcore.5.so (0x00007ffd5f8a0000)

    libcore.4.so => /usr/lib/rosetta/lib/libcore.4.so (0x00007ffd5ef22000)

    libcore.3.so => /usr/lib/rosetta/lib/libcore.3.so (0x00007ffd5d7f6000)

    libcore.2.so => /usr/lib/rosetta/lib/libcore.2.so (0x00007ffd5d118000)

    libcore.1.so => /usr/lib/rosetta/lib/libcore.1.so (0x00007ffd5cedf000)

    libbasic.so => /usr/lib/rosetta/lib/libbasic.so (0x00007ffd5c969000)

    libnumeric.so => /usr/lib/rosetta/lib/libnumeric.so (0x00007ffd5c681000)

    libutility.so => /usr/lib/rosetta/lib/libutility.so (0x00007ffd5c30e000)

    libObjexxFCL.so => /usr/lib/rosetta/lib/libObjexxFCL.so (0x00007ffd5c0c1000)

    libz.so.1 => /lib/libz.so.1 (0x00007ffd5be8c000)

    libcppdb.so => /usr/lib/rosetta/lib/libcppdb.so (0x00007ffd5bc32000)

    libsqlite3.so => /usr/lib/rosetta/lib/libsqlite3.so (0x00007ffd5b996000)

    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007ffd5b68c000)

    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ffd5b409000)

    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007ffd5b1f3000)

    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ffd5ae6f000)

    /lib64/ld-linux-x86-64.so.2 (0x00007ffd6328d000)