Jump to: navigation, search

OpenDaylight Controller:Config:Examples:Netconf:Manual netopeer installation

Manual libnetconfd/netopeer installation

  1. Download, compile and install libnetconfd/netopeer. The instructions below are for Ubuntu 14.04
  2. Configure netconf client and server as described in:


In general compiling libnetconf and netopeer on Ubuntu should not be more
difficult than compiling any other software from its source code.

10. Install libxml2 (http://xmlsoft.org/)

        sudo apt-cache search libxml2
        sudo apt-get install libxml2

20. Install libxslt

        sudo apt-cache search libxslt
        sudo apt-get install libxslt1.1

	You might find this error when 

	config.status: executing libtool commands
	/bin/rm: cannot remove 'libtoolT': No such file or directory


	edit file <configure> and change this line:

	$RM "$cfgfile"


	$RM -f "$cfgfile"

30. Install libssh (www.libssh.org/)
        Unfortunately at least version 0.6.4 is required and as long as
        there is not a package with this version or higher available, you
        must compile it from source.

        git clone http://git.libssh.org/projects/libssh.git
        cd libssh
        mkdir build
        cd build
        cmake ..
        sudo make install
  It will need openssl or libgcrypt

40. Install doxygen (optionally, this one's a big one ... took 50 minutes
                     to download on my system)

	sudo apt-get install doxygen

51. Install libcurl-dev

	sudo apt-get install libcurl4-gnutls-dev

60. Pull, Compile and Install libnetconf (github.com/CESNET/libnetconf/)

	git clone https://github.com/CESNET/libnetconf
        cd libnetconf
	sudo make install

        Note: in some Ubuntu distributions (14.10, for example) you may have to
        install libxml2-dev and libxslt-dev.

70. Pull netopeer, you will get 4 directories.

	git clone https://github.com/CESNET/netopeer

71. Compiling server

	netopeer/server: ./configure --sysconfdir=/etc
	sudo make install

80. Compiling cli

	If you get this error:

	checking for readline in -lreadline... no
	configure: error: Missing libreadline

	You might need to install ncurses (http://ftp.gnu.org/pub/gnu/ncurses/)
        and readline (http://ftp.gnu.org/gnu/readline/). 
        If you already have these installed, you might need the dev version of
        the libraries.

        sudo apt-get install libncurses5-dev
	sudo apt-get install libreadline-dev

	After each step you should do <sudo ldconfig>

        make install