Hi Hisham,

Before I prepare rockspecs that build autonomously, could you revisit
the last post in the thread “HDF5 for Lua rockspec”, which asks for
adding architecture-dependent paths to LUA_PATH?

Currently the architecture-dependent files (C.lua) that contain FFI
C bindings are installed to $(LUADIR), and the resulting binary rock
is architecture all, while working on 64 bit architectures only.

The alternative is to install C.lua to $(LIBDIR), but this requires
that `luarocks path` also adds $(LIBDIR) to LUA_PATH. Further, this
introduces a maintenance headache, since multiple rocks have to be
uploaded for each OS (Linux, Mac OS X, FreeBSD, Windows) despite
having the same C.lua given the same architecture (e.g. 64 bit).

I would prefer the first solution, and point out in the installation
instructions that the pre-compiled rocks are for 64 bit systems.

Users of 32 bit systems can still install with “luarocks build”, which
requires GCC and the Lua plugin for GCC to be available.  For HDF5 and
OpenCL, this should not be a problem, since both libraries target
high-performance computing where 64 bit is used exclusively.

Peter

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to