3.1.2. Open vSwitch 安装于 NetBSD¶
On NetBSD, you might want to install requirements from pkgsrc. In that case, you need at least the following packages.
- automake
- libtool-base
- gmake
- python27
- py27-six
- py27-xml
- pkg_alternatives
Some components have additional requirements. Refer to Open vSwitch 安装于 Linux 系统–FreeBSD 和 NetBSD for more information.
Assuming you are running NetBSD/amd64 6.1.2, you can download and install pre-built binary packages as the following:
$ PKG_PATH=http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/7.0.2/All/
$ export PKG_PATH
$ pkg_add automake libtool-base gmake python27 py27-six py27-xml \
pkg_alternatives
Note
You might get some warnings about minor version mismatch. These can be safely ignored.
NetBSD’s /usr/bin/make is not GNU make. GNU make is installed as
/usr/pkg/bin/gmake by the above mentioned gmake package.
As all executables installed with pkgsrc are placed in /usr/pkg/bin/
directory, it might be a good idea to add it to your PATH. Or install ovs by
gmake and gmake install.
Open vSwitch on NetBSD is currently “userspace switch” implementation in the sense described in Open vSwitch 用户空间支持 and Open vSwitch 移植到新的软硬件平台上.