Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

luajit support #37

Closed
radiospiel opened this issue Dec 5, 2016 · 4 comments
Closed

luajit support #37

radiospiel opened this issue Dec 5, 2016 · 4 comments

Comments

@radiospiel
Copy link

This is more a question that a real issue: is it possible to integrate luajit using rufus-lua?

@jmettraux
Copy link
Owner

Hello,

I'm sorry, I have never tried, I cannot answer.

Kind regards.

@radiospiel
Copy link
Author

Thanks for your quick answer. FYI: I just gave it a try, it does not work:

LUA_LIB=/usr/local/lib/libluajit-5.1.dylib ruby hello-lua.rb

fails with a crash. Only tried that on OSX 10.11.

@jmettraux
Copy link
Owner

Thanks!

@radiospiel
Copy link
Author

A final addition to whoever stumples across this entry: it seems that luajit, on MacOS, requires the main executable (which I guess to mean the ruby binary itself, when embedding into ruby) to be compiled with extra options, or else luaL_newstate cannot create a state: see http://stackoverflow.com/questions/20858911/lua-open-returns-null-using-luajit

This, I guess, means there is no way to embed luajit into any ruby on MacOS, unless one custom-builds ruby

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants