configure: error: libopenvswitch.a was not found. Try --with-ovs-libpath
configure: error: libopenvswitch.a was not found. Try --with-ovs-libpath
当我使用这个命令时:
./configure --with-ovs-srcdir=/home/mx/SDN/openvswitch-2.10.1 PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
我得到了错误结果:
configure: error: libopenvswitch.a was not found. Try --with-ovs-libpath
但是在我的电脑中,我可以找到 libopenvswitch.a 文件:
/lib/libopenvswitch.a
/usr/local/lib/libopenvswitch.a
/home/mx/SDN/openvswitch-2.10.1/lib/.libs/libopenvswitch.a
但我使用命令:
./configure --with-ovs-srcdir=/home/mx/SDN/openvswitch-2.10.1 --with-ovs-libpath=/lib/ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
或命令:
./configure --with-ovs-srcdir=/home/mx/SDN/openvswitch-2.10.1 --with-ovs-libpath=/usr/local/lib/ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
或命令:
./configure --with-ovs-srcdir=/home/mx/SDN/openvswitch-2.10.1 --with-ovs-libpath=/home/mx/SDN/openvswitch-2.10.1/lib/.libs/ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
全部得到相同的错误结果:
configure: error: libopenvswitch.a was not found. Try --with-ovs-libpath
请帮帮我,谢谢!
您需要 Open vSwitch 2.3.1 版 来构建 OF-CONFIG。
如果我尝试使用最新版本的 Open vSwitch 安装 OF-CONFIG,我可以重现您的问题:
$ ./configure --with-ovs-srcdir=/ovs PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
...
configure: error: libopenvswitch.a was not found. Try --with-ovs-libpath
但是,如果我安装 Open vSwitch 2.3.1,一切都会按预期运行:
$ wget http://openvswitch.org/releases/openvswitch-2.3.1.tar.gz
$ tar -xf openvswitch-2.3.1.tar.gz
$ cd openvswitch-2.3.1/
$ ./configure --prefix=/ --datarootdir=/usr/share
...
$ make -j && sudo make install -j
...
$ cd /of-config
$ ./configure --with-ovs-srcdir=/openvswitch-2.3.1 PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
...
$ echo $?
0
当我使用这个命令时:
./configure --with-ovs-srcdir=/home/mx/SDN/openvswitch-2.10.1 PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
我得到了错误结果:
configure: error: libopenvswitch.a was not found. Try --with-ovs-libpath
但是在我的电脑中,我可以找到 libopenvswitch.a 文件:
/lib/libopenvswitch.a
/usr/local/lib/libopenvswitch.a
/home/mx/SDN/openvswitch-2.10.1/lib/.libs/libopenvswitch.a
但我使用命令:
./configure --with-ovs-srcdir=/home/mx/SDN/openvswitch-2.10.1 --with-ovs-libpath=/lib/ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
或命令:
./configure --with-ovs-srcdir=/home/mx/SDN/openvswitch-2.10.1 --with-ovs-libpath=/usr/local/lib/ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
或命令:
./configure --with-ovs-srcdir=/home/mx/SDN/openvswitch-2.10.1 --with-ovs-libpath=/home/mx/SDN/openvswitch-2.10.1/lib/.libs/ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
全部得到相同的错误结果:
configure: error: libopenvswitch.a was not found. Try --with-ovs-libpath
请帮帮我,谢谢!
您需要 Open vSwitch 2.3.1 版 来构建 OF-CONFIG。
如果我尝试使用最新版本的 Open vSwitch 安装 OF-CONFIG,我可以重现您的问题:
$ ./configure --with-ovs-srcdir=/ovs PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
...
configure: error: libopenvswitch.a was not found. Try --with-ovs-libpath
但是,如果我安装 Open vSwitch 2.3.1,一切都会按预期运行:
$ wget http://openvswitch.org/releases/openvswitch-2.3.1.tar.gz
$ tar -xf openvswitch-2.3.1.tar.gz
$ cd openvswitch-2.3.1/
$ ./configure --prefix=/ --datarootdir=/usr/share
...
$ make -j && sudo make install -j
...
$ cd /of-config
$ ./configure --with-ovs-srcdir=/openvswitch-2.3.1 PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
...
$ echo $?
0