問題タブ [apxs2]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
apache - apxs2 を使用して、付属の sds ライブラリで apache モジュールをコンパイルする方法
ここで apache2 モジュールの例を取得します。
https://httpd.apache.org/docs/2.4/developer/modguide.html
そこでこのsdsライブラリを使用したいhttps://github.com/antirez/sds
そこで、新しいモジュールを作成し、モジュール ディレクトリに移動します。
mod_mymodule.c の 44 行目に追加:
49行目のmymodule_handlerに追加します
また、ライブラリ ファイル (sds.c、sds.h、sdsalloc.h) をモジュール ソース コード ファイルと同じディレクトリに配置し、次を呼び出します。
次に、Apache を再起動しますが、次の理由で起動に失敗します。
質問: apxs コマンドを変更して、新しいモジュールが含まれているライブラリで動作するようにするにはどうすればよいですか?