Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running nginx fails on luajit so after build #8

Closed
Industrial opened this issue Nov 25, 2010 · 7 comments
Closed

running nginx fails on luajit so after build #8

Industrial opened this issue Nov 25, 2010 · 7 comments

Comments

@Industrial
Copy link

@Industrial Industrial commented Nov 25, 2010

Hi.

$ export LUAJIT_LIB=/home/tom/Applications/LuaJIT-2.0.0.beta5/lib

$ export LUAJIT_INC=/home/tom/Applications/LuaJIT-2.0.0.beta5/include/luajit-2.0

$ ./configure --prefix=/home/tom/Applications/nginx-0.8.53 --add-module=/home/tom/Downloads/ngx_devel_kit --add-module=/home/tom/Downloads/lua-nginx-module

$ make -j

$ make install

$ /home/tom/Applications/nginx-0.8.53/sbin/nginx

nginx: error while loading shared libraries: libluajit-5.1.so.2: cannot open shared object file: No such file or directory

$

@chaoslawful

This comment has been minimized.

Copy link
Contributor

@chaoslawful chaoslawful commented Nov 25, 2010

Hi,

Have you installed LuaJIT and made its shared library in your OS library search path?

@agentzh

This comment has been minimized.

Copy link
Member

@agentzh agentzh commented Nov 25, 2010

Try

export LD_LIBRARY_PATH=/home/tom/Applications/LuaJIT-2.0.0.beta5/lib:$LD_LIBRARY_PATH

before starting nginx.

Cheers,
-agentzh

@chaoslawful

This comment has been minimized.

Copy link
Contributor

@chaoslawful chaoslawful commented Jan 7, 2011

consider solved.

@jianfengye

This comment has been minimized.

Copy link

@jianfengye jianfengye commented May 22, 2012

it is useful to me.

@maanas

This comment has been minimized.

Copy link

@maanas maanas commented Aug 4, 2012

Thanks. How can i add this in boot parameters so that i do not have to do it again.

@agentzh

This comment has been minimized.

Copy link
Member

@agentzh agentzh commented Aug 5, 2012

Hello!

On Sat, Aug 4, 2012 at 1:16 PM, maanas
reply@reply.github.com
wrote:

Thanks. How can i add this in boot parameters so that i do not have to do it again.

One way is to specify RPATH while building Nginx, for example,

./configure --with-ld-opt="-Wl,-rpath,$LUAJIT_LIB"

This should work on almost everywhere, including Linux, Mac OS X,
FreeBSD, and Solaris.

My OpenResty bundle also uses this trick, see:

http://openresty.org

Best regards,
-agentzh

@sinabs

This comment has been minimized.

Copy link

@sinabs sinabs commented Jun 2, 2015

ln -s /usr/local/lib/libluajit-5.1.so.2 /lib64/libluajit-5.1.so.2

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants
You can’t perform that action at this time.