우분투 16.04의 net-snmp를 설치할 수 없습니다: 오류가 발생했습니다.

우분투 16.04의 net-snmp를 설치할 수 없습니다: 오류가 발생했습니다.

여러 번 시도했지만 Ubuntu 16.04i에 net-snmp를 설치할 수 없으며 문제가 무엇인지 전혀 이해할 수 없습니다. 어떤 도움이라도 환영합니다.

net-snmp 디렉터리 이름:

net-snmp-5.7.3+dfsg

output of ./configure

---------------------------------------------------------
            Net-SNMP configuration summary:
---------------------------------------------------------

  SNMP Versions Supported:    1 2c 3
  Building for:               linux
  Net-SNMP Version:           5.7.3
  Network transport support:  Callback Unix Alias TCP UDP IPv4Base SocketBase TCPBase UDPIPv4Base UDPBase
  SNMPv3 Security Modules:     usm
  Agent MIB code:            default_modules =>  snmpv3mibs mibII ucd_snmp notification notification-log-mib target agent_mibs agentx disman/event disman/schedule utilities host
  MYSQL Trap Logging:         unavailable
  Embedded Perl support:      disabled
  SNMP Perl modules:          building -- not embeddable
  SNMP Python modules:        disabled
  Crypto support from:        crypto
  Authentication support:     MD5 SHA1
  Encryption support:         DES AES
  Local DNSSEC validation:    disabled


Error Received :
/usr/bin/ld: cannot find -lperl
collect2: error: ld returned 1 exit status
Makefile:976: recipe for target 'libnetsnmpagent.la' failed
make[1]: *** [libnetsnmpagent.la] Error 1
make[1]: Leaving directory '/home/siaetest/net-snmp-5.7.3+dfsg/agent'
Makefile:852: recipe for target 'installsubdirlibs' failed
make: *** [installsubdirlibs] Error 1


sudo apt-cache search net-snmp
libnet-snmp-perl - Script SNMP connections
libsnmp-base - SNMP configuration script, MIBs and documentation
libsnmp-dev - SNMP (Simple Network Management Protocol) development files
libsnmp30 - SNMP (Simple Network Management Protocol) library
libsnmp30-dbg - SNMP (Simple Network Management Protocol) library debug
snmp - SNMP (Simple Network Management Protocol) applications
snmpd - SNMP (Simple Network Management Protocol) agents
libsnmp-extension-passpersist-perl - Generic pass/pass_persist extension framework for Net-SNMP
libsnmp-perl - SNMP (Simple Network Management Protocol) Perl5 support
python-netsnmp - SNMP (Simple Network Management Protocol) Python support
ruby-snmp - simple network management protocol bindings for ruby
snmptrapd - Net-SNMP notification receiver
snmptt - SNMP trap handler for use with snmptrapd
tkmib - SNMP (Simple Network Management Protocol) MIB browser

답변1

나는 일반적인 방법으로 이 문제를 해결했습니다.

./configure

make

sudo make install 

그런 다음 snmpget --version을 입력했습니다.

그리고 "NET-SNMP 버전: 5.7.3"이라는 답장을 받았습니다.

주로 문제는 ln -s /usr/lib/libperl.so.5.22 /usr/lib/libperl.so를 사용하여 심볼릭 링크를 수동으로 생성하여 올바르게 연결되는 해결 방법으로 해결되었습니다.

도움이 되었던 아래 링크를 읽어보세요:

https://stackoverflow.com/questions/17576911/cannot-find-lperl-doing-a-makefile-on-c

노력해주신 모든 분들께 감사드립니다

답변2

/usr/bin/ld: -lperl을 찾을 수 없습니다.

이것은 Perl 라이브러리를 찾을 수 없다고 불평하는 링커입니다.

Perl 라이브러리를 설치하려면 를 실행하십시오 sudo apt install libperl-devel.

하지만 인터넷에 연결되어 있지 않기 때문에 아마도 불가능할 것입니다. 다음에서 패키지를 다운로드할 수 있습니다.여기, 그러나 오프라인 시스템에서는 일부 추적이 필요한 다른 설치된 Perl 패키지와 일치해야 합니다.

당신은 DMZ에 기계가 있다고 썼습니다. 컴퓨터가 인터넷에 연결하고, 업데이트를 받고, 소프트웨어를 설치할 수 있는 방법을 구성해야 합니다. 이는 다음을 통해 이루어질 수 있습니다.적절한 프록시, 필요하지 않은 모든 패키지를 미러링하기 위한 오버헤드 없이 로컬 미러처럼 작동합니다.

업데이트에 액세스하지 않고 컴퓨터를 실행하는 것은 보안 위험으로 간주되며, 이미 알고 있듯이 소프트웨어 설치가 더 어려워집니다.

관련 정보