export LUAJIT_LIB=/usr/local/lib/
export LUAJIT_INC=/usr/local/include/luajit-2.0/
./configure --with-http_geoip_module --with-http_stub_status_module --with-http_ssl_module --add-module=/home/ubuntu/ngx_devel_kit --add-module=/home/ubuntu/lua-Nginx-module --add-module=/home/ubuntu/redis2-Nginx-module --add-module=/home/ubuntu/form-input-Nginx-module
make -j2
sudo make install
似乎编译好了.
sudo /etc/init.d/Nginx start
Starting Nginx: /usr/local/Nginx/sbin/Nginx: error while loading shared libraries: libluajit-5.1.so.2: cannot open shared object file: No such file or directory
然后我找到有问题的文件,它位于/usr/local/lib/libluajit-5.1.so.2
然后我补充说:
LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH
sudo /etc/init.d/Nginx start
我仍然得到错误.我没有想法.
谢谢
最佳答案
# Export the Library Path
export LD_LIBRARY_PATH=/usr/local/lib/:/opt/drizzle/lib/:$LD_LIBRARY_PATH