pbasm
Home
News
Download
Tutorial
Projects
Links


SourceForge.net Logo
vertical line

Windows Compilation
Solaris Compilation

Download pbasm

Download latest pre-release: pbasm_0.2_src.tar.gz

Installation

Detailed information about pbasm is contained in the README file that is part of the pbasm source package. After downloading the file, unpack it as follows:

  1. Change directory to the location of the downloaded file
    % cd <download_directory>
  2. Uncompress the downloaded file
    % gunzip <file>.tar.gz
  3. Untar the decompressed file
    % tar xvf <file>.tar
  4. Change directory to the new pbasm subdirectory
    % cd pbasm_<version>_src
  5. Follow the instructions found in the README file to build and install pbasm.

Compiling on MS Windows

It is possible to compile and run pbasm on MS Windows by using the Cygwin environment, which provides a Linux-like environment including development tools such as gcc, flex, bison and make.

  1. Download and install the Cygwin package. You will need the user environment and developer tools mentioned above.
  2. Download and unpack the pbasm package as described under the Installation section above, and follow the directions in the README file to compile pbasm.
  3. If pbasm fails to compile because of missing libgen.h, then download and install the libgen package. Download either the source libgen package or the binary. Use bunzip2 to unpack the libgen package. For the source package, use make install to install. The binary package can just be untarred from the root (/) directory.
  4. If pbasm fails to compile because of the -ll library is not found, edit the Makefile and change -ll to -lfl. If you installed the libgen package, add -lgen next to the -ll so that the installed libgen library will be linked in.
  5. You should now be able to successfully compile and install pbasm in the Cygwin MS Window environment.
Future releases of pbasm will include improvements that will make Windows/Cygwin install easier.

Compiling on Solaris

Compilation on Solaris is currently broken in pbasm 0.2. To fix the problems, download pbasm_0.2_solaris_patch, and apply it as follows:

 % cd pbasm_0.2_src
 % patch < pbasm_0.2_solaris_patch
 
After applying this fix, it will be possible to compile and install on Solaris. The patch removes the long form of the command line options, so you must use the short form. I plan to use GNU autoconf in future versions to fix these portability problems.