OpenFastPath / ofp

OpenFastPath project
BSD 3-Clause "New" or "Revised" License
349 stars 126 forks source link

Compiling errors of OFP #201

Closed bestgen closed 6 years ago

bestgen commented 6 years ago

Hello. My development environment is CentOS7 and have manually installed ODP before. Then I download ofp codes and try to compile OFP. I type in ./configure --with-libconfig=/usr/local/lib --with-odp=/usr/local/bin, then the terminal shows:

checking libconfig.h presence... yes
checking for libconfig.h... yes
checking for library containing config_init... no
configure: error: Unable to find libconfig library

While I have successfully installed libconfig and use it to compile ODP.

[admin@localhost ofp]$ rpm -qa| grep libconfig
libconfig-1.4.9-5.el7.x86_64

And there is config_init funciton in libconfig.h. extern LIBCONFIG_API void config_init(config_t *config); Does anyone have some ideas ? I am a noob. Thx.

RadulescuValentin commented 6 years ago

Hi,

Did you try to install libconfig-dev? https://github.com/OpenFastPath/ofp/blob/master/README.md specify you need to install libconfig-dev.

bestgen commented 6 years ago

Hello Radulescu and thanks for your reply. I have installed the development package before but it still doesn't work.

[admin@localhost ofp]$ rpm -qa|grep libconfig-devel
libconfig-devel-1.4.9-5.el7.x86_64

=================updates================= Problem solved. I installed odp manually without using git instruction before. I use git to get and install odp again and it works right away. I also download ofp manually at first. When I try to configure, system cannot find gcc to compile the codes. I suppose that the configure files are closely integrated to git?

Anyway. Thanks for the help.