Skip to content

Commit

Permalink
Fix issue 59: Does not build on FreeBSD 9.0-CURRENT
Browse files Browse the repository at this point in the history
  • Loading branch information
winks committed Jun 23, 2011
1 parent fd4d67f commit fe2d47e
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Expand Up @@ -152,6 +152,7 @@ netbsd: dev

freebsd: OPTFLAGS += -I/usr/local/include
freebsd: OPTLIBS += -L/usr/local/lib -pthread
freebsd: LIBS=-lzmq -lsqlite3 $(OPTLIBS)
freebsd: all

openbsd: OPTFLAGS += -I/usr/local/include
Expand Down
13 changes: 13 additions & 0 deletions docs/manual/inputs/install_freebsd.sh
@@ -0,0 +1,13 @@
# install ZeroMQ
cd /usr/ports/devel/zmq
make
make install

# install sqlite3
cd /usr/ports/databases/sqlite3
make
make install

# install mongrel2
cd /where/you/extracted
gmake freebsd install
19 changes: 19 additions & 0 deletions docs/manual/installing.tex
Expand Up @@ -98,6 +98,25 @@ \section{Building And Installing}
If any of these stages fail, then you can simply try to fix them and then
run: \shell{make clean all \&\& sudo make install} which will do everything all over again.
\subsection{Other platforms than Linux}
If you aren't running Linux chances are good this standard procedure will not work for you.
The ``Makefile`` lists several targets for various platforms, as of writing this there are:
\begin{itemize}
\item freebsd
\item netbsd
\item openbsd
\item macports
\end{itemize}
So for example you would probably install zeromq and sqlite3 as ports and then compile it like so:
\begin{code}{Installing Mongrel2 on FreeNSD}
<< d['docs/manual/inputs/install_freebsd.sh|pyg|l'] >>
\end{code}
\section{Testing The Installation}
When you are done, you probably want to make sure that it installed correctly.
Expand Down

0 comments on commit fe2d47e

Please sign in to comment.