Last active
August 29, 2015 14:05
-
-
Save Aricg/e170cca23beca2028e16 to your computer and use it in GitHub Desktop.
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
I installed libnetconf from source, when compiling /netopeer/server-sl the library is not found due to some requirements in its make file. | |
Steps to reproduce | |
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 libevent-devel openssh-server | |
git clone https://code.google.com/p/libnetconf/ | |
git clone https://code.google.com/p/netopeer/ | |
cd /libnetconf && ./configure --with-nacm-recovery-uid=0 | |
true | |
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 | |
cd /netopeer/server-sl && ./configure && make && make install | |
Step that fails: (final configure) | |
./configure | |
checking for LIBNETCONF... no | |
configure: error: Package requirements (libnetconf) were not met: | |
No package 'libnetconf' found | |
Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
installed software in a non-standard prefix. | |
Alternatively, you may set the environment variables LIBNETCONF_CFLAGS | |
and LIBNETCONF_LIBS to avoid the need to call pkg-config. | |
See the pkg-config man page for more details | |
My attempt to set LIBNETCONF* | |
vim configure | |
LIBNETCONF_LIBS '/lib/libnetconf.so.0' | |
LIBNETCONF_CFLAGS '-g -O2' | |
Config.log showing them as set. | |
vim config.log | |
ac_cv_env_LIBNETCONF_CFLAGS_set=set | |
ac_cv_env_LIBNETCONF_CFLAGS_value= | |
ac_cv_env_LIBNETCONF_LIBS_set=set | |
ac_cv_env_LIBNETCONF_LIBS_value=/lib/libnetconf.so.0 | |
Still get the same package checking for LIBNETCONF... no |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment