Mar 19, 2008

0 notes

Installing lc3db on Leopard

I had to modify some stuff from Dr. Fussell’s lc3db distribution in order to install it, so I thought I’d write up the changes for anyone else using OSX.

First things first - you’ll need ddd (for the gui if you want to use it) and help2man installed before compiling lc3db. My best suggestion would be to use MacPorts. Once you’ve got that setup, just type into Terminal (without the $’s):

$ sudo port install ddd
$ sudo port install help2man

Alright, next download lc3db. In Terminal, go to wherever it’s saved, for example, if ~/Downloads is where the file is

$ cd ~/Downloads

and then extract it using tar:

$ tar -xzvf lc3db-1.0.tgz

After you’ve done that, cd into the new lc3db-1.0 directory and configure your install by typing in:

$ ./configure

Now, in lc3db-1.0/src there is a file called lc3.f. On line 55, there should be:

#include <malloc.h>

Change this line in any text editor to read:

#include <malloc/malloc.h>

and then save.

The next change will be in the lc3db-1.0 directory in the file Makefile. Open up Makefile and wherever you see (lines 47 to 50):

install -D

delete the “-D“‘s until all of those look like:

install

make expects the GNU version of make instead of the BSD version, so we can just dump out all of those “-D“‘s.

The last thing we have to do is create the directory where make dumps the man pages. In Terminal, type:

$ sudo mkdir /usr/local/share/man/man1

For anyone new to Terminal, sudo lets you do something as a superuser so it’ll require your administrator password.

Okay, so after you’ve made all those changes, you can install lc3db by typing into your Terminal:

$ sudo make install

And there you have it.

Blog comments powered by Disqus.

About