Skip to content

Commit

Permalink
add build examples for FreeBSD and Raspbian. use sudo in examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
bovine committed Jul 21, 2014
1 parent 50788c8 commit 84bfd54
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,16 +283,40 @@ Building
Unix
----------

Building under most UNIX systems is easy, just run the configure script
and then run make.
Building under most UNIX systems is easy, just run the configure script and then run make.
You will need to have the yajl library itself already installed, since it is not included with yajl-tcl.
In some cases, you may also need to specify where your Tcl library directory is located.

```bash
$ cd yajl-tcl
$ ./configure
$ make
$ make install
$ sudo make install
```


FreeBSD
----------
```bash
$ sudo portinstall devel/yajl
$ cd yajl-tcl
$ ./configure --with-tcl=/usr/local/lib/tcl8.5
$ make
$ sudo make install
```


Debian/Raspbian
----------
```bash
$ sudo apt-get install libyajl-dev
$ cd yajl-tcl
$ ./configure --with-tcl=/usr/lib/tcl8.5
$ make
$ sudo make install
```


Windows
----------

Expand Down

1 comment on commit 84bfd54

@gahr
Copy link
Contributor

@gahr gahr commented on 84bfd54 Jul 22, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps the best way to build the software under FreeBSD is to use binary packages or ports. Both methods deal with dependencies (yajl, tcl) automatically.

From packages:

# pkg install yajl-tcl

From ports:

# make -C /usr/ports/devel/yajl-tcl install clean

Please sign in to comment.