Rate This Document
Findability
Accuracy
Completeness
Readability

"ngx_user.c" Displayed When Compiling and Installing Tengine

Symptom

During the Tengine compilation and installation, the message "src/os/unix/ngx_user.c" is displayed.

Key Process and Cause Analysis

The possible cause is that the Tengine version does not match the system.

Conclusion and Solution

  1. Open the ngx_user.c file:
    vim src/os/unix/ngx_user.c
  2. Press i to enter the insert mode and comment out line 36.
    /*cd.current_salt[0] = ~salt[0];*/

  3. Press Esc, type :wq!, and press Enter to save the file and exit.
  4. Run the command for compiling and installing the Tengine.
    make && make install