Rate This Document
Findability
Accuracy
Completeness
Readability

annobin.so File Missing When Compiling Nginx

Symptom

During the Nginx 1.14.2 compilation and installation, the message "Inaccessible plugin file /usr/local/lib/gcc/aarch64-unknown-linux-gnu/8.5.0/plugin/annobin.so." is displayed.

Key Process and Cause Analysis

The annobin.so file is missing. You need to manually install the file.

Conclusion and Solution

  1. Install annobin using the Yum source.
    1
    yum install -y annobin
    
  2. Set the soft link.
    1
    2
    3
    cd /usr/local/lib/gcc/aarch64-unknown-linux-gnu/8.5.0/plugin
    ln -sf /usr/lib/gcc/aarch64-redhat-linux/8/plugin/annobin.so.0.0.0 annobin.so.0
    ln -sf /usr/lib/gcc/aarch64-redhat-linux/8/plugin/annobin.so.0.0.0 annobin.so
    
  3. Recompile Nginx.
    1
    2
    3
    4
    5
    cd /home/nginx-1.14.2
    make clean
    ./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gzip_static_module --with-http_perl_module --with-pcre --with-cc-opt="-fPIC"
    make -j60
    make install