I have build net-snmp in ubantu 18.04.
./configure using cross compiler fsl-qoriql arrch64-fsl-linux-gnu, i am able to run service in ubuntu 18.04 successfully, but target machine is showing ./snmpd: error while loading shared libraries: libpcre.so.1: cannot open shared object file: no such file or directory.
before this in ubuntu 18.04 cross compiling i got ./config.sub aarch64-fsl-linux machine aarch64-fsl is not recognized. for this i have installed autoconf using apt install autoconf command then autoreconf --install i have run inside net-snmp folder then I used following commands as shown in screenshots.
please help to get it sort it out.
Solved! Go to Solution.
$ wget https://ftp.pcre.org/pub/pcre/pcre-8.44.tar.gz
$ tar -xzvf pcre-8.44.tar.gz
$ cd pcre-8.44
$ source /opt/fsl-qoriq/3.x/environment-setup-aarch64-fsl-linux
$ ./configure --host aarch64-fsl-linux
$ make
You will get libpcre.so.1 in .libs folder, please copy the content in .libs folder to /usr/lib folder on the target board.
$ wget https://ftp.pcre.org/pub/pcre/pcre-8.44.tar.gz
$ tar -xzvf pcre-8.44.tar.gz
$ cd pcre-8.44
$ source /opt/fsl-qoriq/3.x/environment-setup-aarch64-fsl-linux
$ ./configure --host aarch64-fsl-linux
$ make
You will get libpcre.so.1 in .libs folder, please copy the content in .libs folder to /usr/lib folder on the target board.