Monday July 20, 2009 Running Open Web Server on FreeBSD
Downloaded Free BSD from ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/7.2/7.2-RELEASE-i386-dvd1.iso.gz
and installed it.
For reference, see http://wikis.sun.com/display/wsFOSS/Checkout+and+Build+Instructions
To search for a package, I used cd /usr/ports; make search name="mercurial" and so on.
First make sure that you already have these components
| GNU make 3.81 | /usr/local/bin/gmake |
| C/C++ Compiler 4.2.1 | /usr/bin/g++ and gcc |
| Zlib | /usr/lib/libz.so already installed |
| Perl 5.8.9 | /usr/bin/perl |
| CVS 1.11.22.1 | /usr/bin/cvs |
| Mercurial |
cd /usr/ports/devel/mercurial; make install |
|
Java SE 5 or 6 |
Due to license problems had to manually download and putting
it in /usr/ports/distfiles
|
| Ant | cd /usr/ports/devel/apache-ant; make install
|
| NSPR | cd /usr/ports/devel/nspr; make install |
| NSS | cd /usr/ports/security/nss; make install |
|
Xerces C++ |
cd
/usr/ports/textproc/xerces-c2; make install cd /usr/ports/textproc/xerces-c2-devel; make install selected Use ICU transcoder option. Build thread safe version of library. Got an error "/usr/bin/ld: can not find -lgcc_pic" For this we need to manually modify "files/filepatch-src-xercesc-Makefile.incl" and change "-lgcc_pic" to "-lgcc" |
|
Xalan C++ |
cd
/usr/ports/textproc/xalan; make install Selected INMEN and TRANSCODER_ICU options. |
| PCRE |
cd /usr/ports/devel/pcre; make install |
| ICU | cd /usr/ports/devel/icu; make install |
| SASL | cd /usr/ports/security/cyrus-sasl2; make install |
|
Mozilla C SDK* |
--with-sasl-lib=/usr/local/lib --with-nspr-lib=/usr/local/lib --with-nspr-inc=/usr/local/include/nspr/ --with-nspr --with-nss-lib=/usr/local/lib/nss --with-nss-inc=/usr/local/include/nss/nss/ --with-nss
|
*Note There is one /usr/ports/net/ldapsdk. It downloads and builds ldapsdk_12311998.tar.gz.
But I can see it in ancient now from mozilla site http://ftp.mozilla.org/pub/mozilla.org/directory/c-sdk/ancient/
So I built Mozilla C SDK myself.
One manual hack you need to do in "/usr/local/include/prinet.h"
#if defined(FREEBSD) || defined(BSDI) || defined(QNX)
#include <rpc/types.h> /* the only place that defines INADDR_LOOPBACK */
#endif
replace it by
#ifndef INADDR_LOOPBACK
#define INADDR_LOOPBACK (u_long)0x7F000001
#endif
Go to work/FreeBSD7.2-RELEASE_OPT.OBJ/https-test/bin/ directory and start the server instance using startserv script.
For the last two gmake commands, you can add WS_INSTALL_ROOT=/opt/ws if you want the server instance to be installed in /opt/ws/https-test
References:
This blog copyright 2009 by meena