On Wed, Dec 7, 2011 at 6:38 PM, Thijs Schreijer <[email protected]> wrote:
> Need some help setting stuff up.
>
>
>
> 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.

> If I uninstall (the broken) luasockets it gives me a warning about breaking
> copas dependencies (also installed using rocks).
>
> On a VM I installed ubuntu and cross compiled luasockets (just typed
> instructions, but in the end it said ‘success’ and it gave me some .so
> files). If I now manually install luasockets using these files, then
> luarocks will probably still consider the dependency un-fullfilled and hence
> I can’t use rocks to install anything depending on luasockets (or any other
> binary module)
>
> How can I get this fixed? With this I mean;
>
> -          Luasockets binaries installed and working
>
> -          Luarocks installed and working (it knowing that the luasocket
> dependency is fulfilled)

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. :(

It may be already possible to setup LuaRocks to cross compile a rock,
but I never tried this.

-- Hisham

------------------------------------------------------------------------------
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