fb for Unices


Downloads

File: fb_tar.Z ( 35,418 bytes ) -- a compressed tar file. Download fb_tar.Z to your system.

File: fb_tar.gz ( 23,444 bytes ) -- a gzip compressed tar file. Download fb_tar.gz to your system.


Installation

1a. Uncompress the file: uncompress fb_tar (assuming the name of the downloaded file is "fb_tar.Z"). The Unix uncompress utility requires that the name of the file end with a ".Z" extension but it is not necessary to include this extension when passing the file name to uncompress. If the downloaded file name does not have the ".Z" extension, you will need to rename it using the mv command so that it does.

1b. Un-gzip the file: gunzip fb_tar (assuming the name of the downloaded file is "fb_tar.gz"). The GNU gunzip utility requires that the name of the file end with an extension it recognizes but it is not necessary to include this extension when passing the file name to gunzip. If the downloaded file name does not have the ".gz" extension, you should rename it using the mv command so that it does. (Also gzip -d fb_tar will work.)

2. Untar the file: tar xf fb_tar

3. Compile and link: cc fb.c -o fb (this is the simplest way but, if you are familiar with your C compiler, you may wish to add additional options).

4. If this does not work (i.e. doesn't compile, doesn't link, or cores or has unusual behavior during runtime), you may need to uncomment some of the pre-processor #define directives near the top of the code, just after the no-warranty statement (see the README file for details). For instance, your compiler may not support the long long data type; in which case, you should uncomment the "#define LONG_ONLY" pre-processor directive.

5. Finally, be aware that some pre-processors expect the octothorpe (#) in pre-processor directives to be in the first column of the line. If this is the case with your pre-processor, you can correct the code using sed as follows:

        sed 's/^  *#/#/' fb.c > fb.c.fix
        mv fb.c.fix fb.c

fb home