Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close
INSTRUCTIONS FOR BUILDING GNUFDISK
==================================

This document explains how to build the gnufdisk package from source code.

Gnufdisk package depends on other packages, some of these are mandatory
others are optional. Required packages are: 
  
  * guile 
    
    Go to http://www.gnu.org/software/guile/guile.html and follow help.

Optional packages are:


BUILD FROM REPOSITORY SOURCE
----------------------------

After downloading the source code from the repository you need to rebuild the
configuration files. To do this run autoreconf:

  user@localhost:~/gnufdisk$ autoreconf

This command will run aclocal, automake, autoconf, etc.. 
Do not worry if you see a lot of messages, they are just notifications.

Now that you have the files you can run `configure'. I personally prefer to
start the configuration with some preset variables. In detail, I use these flags:

  * CPPFLAGS='-DGNUFDISK_DEBUG' 

    This flag causes the macro GNUFDISK_DEBUG be defined. 
    This macro enables support for debugging in gnufdisk.

  * CFLAGS='-g -ggdb -gdwarf-2 -Wall'

    These flags enable the debugging support into the compiled code (including
    extensions of GNU gdb) and enable all kinds of warning of gcc.

So the command to configure the package:

  user@localhost:~/gnufdisk$ CPPFLAGS='-DGNUFDISK_DEBUG' \
    CFLAGS='-g -ggdb -gdwarf-2 -Wall' ./configure

Now that the package is configured, you can compile it by running make:

  user@localhost:~/gnufdisk$ make

Now that the package is built and running you can decide to install it. If you
want to install the package into your computer you must run the command 
`make install' as root:

  user@localhost:~/gnufdisk$ sudo make install
  [sudo] password for user: 
  
If you want to improve the package gnufdisk you can start by reading the documentation.
To build the reference guide you can run the command `make doc', `make pdf', `make html' and so on:

  user@localhost:~/gnufdisk$ make doc

Happy hacking! :)

BUILD FROM PACKAGE
------------------

See `INSTALL'.

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.