hello モジュールを使用して nginx をインストールする場合 (このモジュールは #include を使用します)
nginxをインストールする前に、yum -y install json-c json-c-develを使用します
make && make install 成功です。しかし、nginxテストを実行すると
/usr/sbin/nginx -t
エラーメッセージが表示されます:
nginx: [emerg] dlopen() "/etc/nginx/modules/ngx_http_hello_module.so" failed (/etc/nginx/modules/ngx_http_hello_module.so: undefined symbol: json_object_to_json_string) in /etc/nginx/nginx.conf:5
nginx: configuration file /etc/nginx/nginx.conf test failed
ldd /usr/sbin/nginx
json-c ライブラリがロードされていません! 私に何ができる?