Last active
August 29, 2015 14:05
-
-
Save Aricg/666f197bf015d4e6db78 to your computer and use it in GitHub Desktop.
Install netopeer-sl on centos 6.5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| yum -y update | |
| yum -y install libxml2 libssh2-devel dbus-devel doxygen libcurl-devel git readline-devel gcc gcc-c++ make libxml2-devel libxslt-devel openssh-server libtool | |
| git clone https://code.google.com/p/libnetconf/ | |
| git clone https://code.google.com/p/netopeer/ | |
| cd /libnetconf && ./configure --with-nacm-recovery-uid=0 | |
| cd /libnetconf && sed -i "/cd dev-tools\/lncdatastore/ s/$/ CPPFLAGS='\$(CPPFLAGS)' CFLAGS='\$(CFLAGS)'/" Makefile | |
| cd /libnetconf && make && make install | |
| ln -s /usr/local/lib/libnetconf.so.0 /lib | |
| export LIBNETCONF_LIBS="/usr/local/lib/libnetconf.so.0" | |
| export LIBNETCONF_CFLAGS="-g -O2" | |
| scp [email protected]:/srv/www/localhost/lfrpm/6/x86_64/libevent* . | |
| rpm -i libevent2-2.0.18-1.el6.x86_64.rpm | |
| rpm -i libevent2-devel-2.0.18-1.el6.x86_64.rpm | |
| yum remove libevent-devel-1.4.13-4.el6.x86_64 | |
| ln -s /opt/libevent2/usr/lib64/libevent.so /lib64/ | |
| ldconfig | |
| cd /netopeer/server-sl | |
| export CPPFLAGS="-I/opt/libevent2/usr/include/event2 -I/opt/libevent2/usr/include/" | |
| ./configure --with-libevent-dir=/opt/libevent2/usr/include/event2 && make && make install | |
| libtool --finish /usr/local/lib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment