1. 라이브러리 파일 다운로드
아래 사이트에서 라이브리리 파일을 다운
libmodbus
Download July 29, 2019 Two branches of libmodbus are currently maintained: development release v3.1.6 , released on 2019-07-31. See the release notes. This development version is very stable and will be marked as stable very soon. old release v3.0.8 . See
libmodbus.org
2. 개발 환경은 우분투 16.04 라이브러리 설치
- 파일을 넣어주고 압축을 아래와 같이 풀어 줍니다.
- root 계정 상태에서 폴더로 진입 후 ./configure && make && make install 명령으로 라이브러리 파일 설치를 진행합니다. 정상적으로 설치가 되면 아래와 같이 어떤 폴더에 라이브러리 파일이 생성되었는지 보여줍니다.
[경로 설정]
[root@localhost ~]# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
[파일 수정]
위와 같이 /usr/local/lib 경로를 설정 후 wq!로 저장하고 빠져나옵니다.
수정한 파일을 확정하는 명령을 아래와 같이 입력해줍니다.
728x90