> > I used IPKG to install lua and luarocks on to a NAS (WD MyBook World
> > Edition). It doesn’t have a compiler, so luasockets installation
> (using
> > rocks) failed, with a lot of errors, but it now lists luasockets as
> > installed.
> 
> Odd, this shouldn't have happened. I'll take a look at this.
> 
Well maybe not completely odd, because what I did was that I used a different 
IPKG repository, one that does contain the GCC compiler (unstable), installed 
it, and ran the luarocks installation of luasockets again.
This compiled the library, but with enough warnings to be sure it won't work.
So I guess LuaRocks got the final verdict 'succeeded' on the make and assumed 
all to be well.


> As a workaround, since you have the binaries, it should be possible to
> build a binary rock by hand which you can then install.
> 
> A .rock file is a .zip file. You can run "luarocks install luasocket"
> and then "luarocks pack luasocket" to generate a binary rock file in
> your host system (such as luasocket-2.0.2-4.linux-x86.rock), and then
> unzip it, replace the .so files, edit the rock_manifest file to
> replace the md5sum of these two files, zip it again named as
> luasocket-2.0.2-4.linux-`uname -m of your NAS`.rock and then you
> should be able to run "luarocks install" on that file there and it
> should work. Ugly, I know. :(
>
As the binaries are there, can I also replace the current binaries on the NAS 
(as build by LuaRocks) with the ones I got properly compiled? Or will there 
also be MD5 clashes that will prevent it from working?




------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
Luarocks-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to