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

Lua compatibility issue [Documentation] #5

Open
nmtadam opened this issue Feb 25, 2013 · 4 comments
Open

Lua compatibility issue [Documentation] #5

nmtadam opened this issue Feb 25, 2013 · 4 comments

Comments

@nmtadam
Copy link
Contributor

nmtadam commented Feb 25, 2013

I had lua5.1 and 5.2 installed on my machine and we should make it a point to indicate what version of lua to be using with this project. I noticed you were using 5.1 a long time ago, but I left 5.2 sitting on my system. After I followed N's following instructions:

1. autoreconf -I m4 -ivf
2. ./configure && make
3. sudo apt-get install luarocks
4. sudo luarocks install busted
5. eval `luarocks path`
6. export LUA_CPATH="$PWD/.libs/?.so;$LUA_CPATH"
7. export CEPH_CONF=/path/to/ceph.conf
8. busted test.lua

to build and test lua-rados. I had errors when I would try to run step 8. I then removed lua5.2 and started at step 3 and then I was able to get the test to run.

@dotnwat
Copy link
Owner

dotnwat commented Feb 25, 2013

I think we can support 5.1 and 5.2, but I want to remain 5.1 compatible because LuaJIT only works with 5.1 (LuaJIT gets us to about 97% of the speed of C). Poking around a bit on the change log for 5.2 should reveal the parts that are different.

-Noah

On Feb 24, 2013, at 10:19 PM, Adam Manzanares notifications@github.com wrote:

I had lua5.1 and 5.2 installed on my machine and we should make it a point to indicate what version of lua to be using with this project. I noticed you were using 5.1 a long time ago, but I left 5.2 sitting on my system. After I followed N's following insturctions:

• autoreconf -I m4 -ivf
• ./configure && make
• sudo apt-get install luarocks
• sudo luarocks install busted
• eval luarocks path
• export LUA_CPATH="$PWD/.libs/?.so;$LUA_CPATH"
• export CEPH_CONF=/path/to/ceph.conf
• busted test.lua
to build and test lua-rados. I had errors when I would try to run step 8. I then removed lua5.2 and started at step 3 and then I was able to get the test to run.


Reply to this email directly or view it on GitHub.

@dotnwat
Copy link
Owner

dotnwat commented Feb 25, 2013

Do you have the errors handy from when you were running with lua5.2?

@nmtadam
Copy link
Contributor Author

nmtadam commented Feb 25, 2013

I don't but it was something like the following:

error loading module 'lfs' from file '/usr/local/lib/lua/5.1/lfs.so':
/usr/local/lib/lua/5.1/lfs.so: undefined symbol: luaL_register

In my case I believe 5.1 was replaced by 5.2

@dotnwat
Copy link
Owner

dotnwat commented Feb 25, 2013

Ok, I think that rings a bell. I'll play with 5.2 tomorrow and see if I can make the code work with both versions.

On Feb 24, 2013, at 11:42 PM, Adam Manzanares notifications@github.com wrote:

I don't but it was something like the following:

error loading module 'lfs' from file '/usr/local/lib/lua/5.1/lfs.so':
/usr/local/lib/lua/5.1/lfs.so: undefined symbol: luaL_register

In my case I believe 5.1 was replaced by 5.2


Reply to this email directly or view it on GitHub.

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

No branches or pull requests

2 participants