ConfD User Community

Linuxcfg application


#1

I am trying to build and run linuxcfg app under examples. I am successfully able to make it however when I try make start, I am getting below error which is looking for aaa_cdb.fxs which is not available there. Am I missing something? Any suggestion will be really helpful.

make[1]: Entering directory ‘/home/deegupt5/confd-7.1/examples.confd/linuxcfg/ietf_routing’
make[1]: Leaving directory ‘/home/deegupt5/confd-7.1/examples.confd/linuxcfg/ietf_routing’
now ssh: /home/deegupt5/confd-7.1 and .install/confd.
install: cannot stat ‘/home/deegupt5/confd-7.1/etc/confd/aaa_cdb.fxs’: No such file or directory
Makefile:135: recipe for target ‘install’ failed
make: *** [install] Error 1
deegupt5@ubuntu:~/confd-7.1/examples.confd/linuxcfg$


#2

I have tried make install (see below) and it passed OK.
In the Makefile the install target contains:

ifeq (,$(wildcard $(CONFD_DIR)/etc/confd/tailf-aaa.fxs))
     @install -m 0644 $(CONFD_DIR)/etc/confd/aaa_cdb.fxs \
          $(CONFD_INSTALLDIR)
else

Can it be that you have $CONFD_DIR/etc/confd/tailf-aaa.fxs file missing?
Please, can you check?

make install

root@confd:/opt/tailf/confd/examples.confd/linuxcfg# make install 

--------------------------------------------------------------
[linuxcfg] Current setup:
[linuxcfg] LINUXCFG_FEATURES = LINUXCFG_SYSTEM,LINUXCFG_INTERFACES,LINUXCFG_IPMIBS, LINUXCFG_IP,LINUXCFG_ROUTING
[linuxcfg] COMPONENTS =  ietf_system ipmibs ietf_interfaces ietf_ip ietf_routing
--------------------------------------------------------------

make -C ietf_system fxs
make[1]: Entering directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_system'
make[1]: Nothing to be done for 'fxs'.
make[1]: Leaving directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_system'
make -C ipmibs fxs
make[1]: Entering directory '/opt/tailf/confd/examples.confd/linuxcfg/ipmibs'
Makefile:13: "wildcard="/opt/tailf/confd/etc/confd/snmp
make[1]: Nothing to be done for 'fxs'.
make[1]: Leaving directory '/opt/tailf/confd/examples.confd/linuxcfg/ipmibs'
make -C ietf_interfaces fxs
make[1]: Entering directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_interfaces'
make[1]: Nothing to be done for 'fxs'.
make[1]: Leaving directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_interfaces'
make -C ietf_ip fxs
make[1]: Entering directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_ip'
make[1]: Nothing to be done for 'fxs'.
make[1]: Leaving directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_ip'
make -C ietf_routing fxs
make[1]: Entering directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_routing'
make[1]: Nothing to be done for 'fxs'.
make[1]: Leaving directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_routing'
make -C ietf_system
make[1]: Entering directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_system'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_system'
make -C ipmibs
make[1]: Entering directory '/opt/tailf/confd/examples.confd/linuxcfg/ipmibs'
Makefile:13: "wildcard="/opt/tailf/confd/etc/confd/snmp
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/opt/tailf/confd/examples.confd/linuxcfg/ipmibs'
make -C ietf_interfaces
make[1]: Entering directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_interfaces'
ar rU ietf_interfaces.a dyn_iface.o
make[1]: Leaving directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_interfaces'
make -C ietf_ip
make[1]: Entering directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_ip'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_ip'
make -C ietf_routing
make[1]: Entering directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_routing'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_routing'
cc -o linuxcfg linuxcfg.o components.o linuxcfg_util.o  ietf_system/ietf_system.a  ipmibs/ipmibs.a  ietf_interfaces/ietf_interfaces.a  ietf_ip/ietf_ip.a  ietf_routing/ietf_routing.a -L/opt/tailf/confd/lib -lconfd -lpthread 

Installing *.fxs files to .install/confd:

make[1]: Entering directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_system'
make[1]: Leaving directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_system'
make[1]: Entering directory '/opt/tailf/confd/examples.confd/linuxcfg/ipmibs'
Makefile:13: "wildcard="/opt/tailf/confd/etc/confd/snmp
make[1]: Leaving directory '/opt/tailf/confd/examples.confd/linuxcfg/ipmibs'
make[1]: Entering directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_interfaces'
make[1]: Leaving directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_interfaces'
make[1]: Entering directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_ip'
make[1]: Leaving directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_ip'
make[1]: Entering directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_routing'
make[1]: Leaving directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_routing'
now ssh: /opt/tailf/confd and .install/confd.

Installing linuxcfg
Installing module: ietf_system
make[1]: Entering directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_system'
make[1]: Leaving directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_system'
Installing module: ipmibs
make[1]: Entering directory '/opt/tailf/confd/examples.confd/linuxcfg/ipmibs'
Makefile:13: "wildcard="/opt/tailf/confd/etc/confd/snmp
install -m 0644 IANAifType-MIB.bin INET-ADDRESS-MIB.bin UDP-MIB.bin TCP-MIB.bin IF-MIB.bin IP-MIB.bin /opt/tailf/confd/examples.confd/linuxcfg/.install/confd
install -m 0644 init_data/vacm_init.xml init_data/community_init.xml /opt/tailf/confd/examples.confd/linuxcfg/.install/confd/cdb
make[1]: Leaving directory '/opt/tailf/confd/examples.confd/linuxcfg/ipmibs'
Installing module: ietf_interfaces
make[1]: Entering directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_interfaces'
make[1]: Leaving directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_interfaces'
Installing module: ietf_ip
make[1]: Entering directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_ip'
make[1]: Leaving directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_ip'
Installing module: ietf_routing
make[1]: Entering directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_routing'
make[1]: Leaving directory '/opt/tailf/confd/examples.confd/linuxcfg/ietf_routing'
root@confd:/opt/tailf/confd/examples.confd/linuxcfg# 

#3

Hi Michal,
Thanks for your response. Yes, I was missing that file. Your response helped to solve the problem.
-Deepak