On 18 May 2014 08:27, Peter Billam <p...@pjb.com.au> wrote:

> ShadowNinja wrote:
> > The "Readline" package
>
> Oh dear... that's one of mine...
>
> > installs "readline.lua" as "Readline.lua" (capitalized R).
> > This makes "require('readline')" fail, and the all-lowercase
> > name appears to be standard.
>
> Indeed, the doc:
>   http://www.pjb.com.au/comp/lua/readline.html
> specifies:
>   local RL = require 'readline'
> So I've just removed readline and reinstalled it:
>   luarocks --force remove readline
>   luarocks install readline
> and I run my test_rl.lua which begins
>   local M = require 'readline'
> and it works just fine...  What's happening here ?
>
> Regards,  Peter Billam
>
> http://www.pjb.com.au      p...@pjb.com.au     (03) 6278 9410
> "Follow the charge, not the particle."  --  Richard Feynman
>  from The Theory of Positrons, Physical Review, 1949
>
>
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform
> available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> Luarocks-developers mailing list
> Luarocks-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/luarocks-developers
>

I just installed the rock on an Ubuntu VM with a fresh copy of LuaRocks and
the Lua file was installed as "Readline.lua" rather than "readline.lua",
which caused `require("readline")` to fail. Renaming the file to
"readline.lua" allowed it to work.

I believe it's installed this way because of the `Readline =
"readline.lua"` line in the Rockspec.

If you have a case-insensitive file system (which I think OS X uses by
default), the case of the file probably doesn't matter to `require`.
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to