Skip to content

编译 ipvsadm 时报错了:usr/bin/ld: cannot find -lnl #40

@lobo-a

Description

@lobo-a

虚拟机、centos7 mini版,使用的是lvs v2,kernel和keepalived都编译安装成功了,但是编译 ipvsadm 时报错了

报错如下:
gcc -Wall -Wunused -Wstrict-prototypes -g -o ipvsadm ipvsadm.o config_stream.o dynamic_array.o ../keepalived/keepalived/libipvs-2.6/libipvs.a -lpopt -lnl
/usr/bin/ld: cannot find -lnl
collect2: error: ld returned 1 exit status
make: *** [ipvsadm] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions