lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Am 13.06.2013 01:58 schröbte Graham Henstridge:

$$ lua
Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio
  > require"test11"
stdin:1: module 'test11' not found:
	no field package.preload['test11']
	no file 'test11.lua'
'       no file '/usr/local/lib/lua/5.1/test11.lua   -- but this file is there! ...

^ this single quote usually is at the end of the line, so I suspect that you have an extra carriage return (\r) at the end of the LUA_PATH variable definition.

You can use the following command to strip carriage returns:

    perl -pi -e 's/\r\n/\n/g' file_where_you_set_LUA_PATH


HTH,
Philipp

p.s.: Please create a new message instead of replying to an existing one if you intend to start a new topic. Otherwise you mess up message threading. Your email has nothing to do with LuLPeg, and I nearly didn't find it again when I tried to reply ...