lua-users home
lua-l archive

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


I will try. The problem is not exactly the instalation commands are
complicated. The problem is that I want to use Lua to develop some
routines of accessibility. In other words, for that people, blind
user, who does not knows the terminal, who is acquainted to Windows
and starts on the Linux world, to whom terminal commands is a reason
to not migrate to Linux, for that people completely resistent to use
terminal is that I want to create some dialogs I want to install
luarocks.

when Luarocks was automatically installed in a deb package, the user
could not be  informed about the fact. I will try the automatize all
the steps: downloadin, decompressing and instalation, but I hav never
done it. If I am not successful, it's really inviable for me. I can
use terminal commands, but I can suppose other blind users will do the
same. All steps need to be automatized.

Well, let me try.


2014-05-22 0:55 GMT-03:00, Peng Zhicheng <pengzhicheng1986@gmail.com>:
> On 05/20/2014 01:19 PM, luciano de souza wrote:
>> Yes, I have a more serious problem. I added /usr/local/lib/lua/5.1 in
>> PATH in /etc/environment. However, it's not produce any effect.
>
> you are not supposed to add it to the PATH environment. it can be added to
> either LUA_CPATH or LUA_CPATH_5_1. but normally you don't need to do this,
> since the default configuration of Lua have that path already built into Lua
> itself,
>
>> Using the command "man luarocks", I verified is really outdated: 15 june
>> 2012.
>
> that is a really old release. you'd better download a newer version from
> the
> luarocks website[http://luarocks.org/releases/].
>
>> The problem is newer deb packages is not available on Ubuntu. C
>> compilations are a nightmare. I am not a C programmer.
>
> well, you don't need to be a C programmer to be able to use software
> released
> in the source code form (instead of the binary form or pre-compiled form).
> it is usually done in 2 or 3 steps -- configure (maybe optional), build,
> install.
> mostly, they are very simple commands.
>
> for luarocks, see
> [http://luarocks.org/en/Installation_instructions_for_Unix]
> IIRC, luarocks contains no C code (written entirely in pure Lua), you don't
> even
> need any C compilers -- only `make' is needed.
>
>>   Even though, when you get to install, it's not easy to uninstall.
>>
> I had never need to `uninstall' a package from my system, but I guess I
> know
> what your concern is. maybe you used to be a Windows user?
> if you really cares, one simple way is to install the package in a so called
> `portable'
> manner or `self-contained' manner. e.g. in the configure step,
>      ./configure --prefix=/opt/luarocks
> thus in order to `uninstall' the package, you simply remove that directory
> tree.
>
>
>


-- 
Luciano de Souza