lua-users home
lua-l archive

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


Hi,
after removing the 5.1.3 files, I can run lua with 5.0 version, but then I still can't get the mysql to load:

Lua 5.0.3  Copyright (C) 1994-2006 Tecgraf, PUC-Rio
> require "luasql.mysql"
stdin:1: could not load package `luasql.mysql' from path `/root/.lua50/?.lua;/root/.lua50/?;/root/share/lua/50/?.lua;/root/share/lua/50/?;/root/share/lua50/?.lua;/root/share/lua50/?;/usr/share/lua/50/?.lua;/usr/share/lua/50/?;/usr/share/lua50/?.lua;/usr/share/lua50/?;/usr/local/share/lua50/?.lua;/usr/local/share/lua50/?;?.lua;?'
stack traceback:
    [C]: in function `require'
    stdin:1: in main chunk
    [C]: ?
>


The current versions are all obtained from debian's apt-get.

How do i fix this?

Thanks alot for all your help.

Pete

On Sun, May 11, 2008 at 10:11 PM, Enrico Tassi <gareuselesinge@libero.it> wrote:
On Sun, May 11, 2008 at 09:58:08PM +0800, Pete Kay wrote:
> Hi,
>
> I think the lua is still 5.1.3 and that may be the reason why the luasql I
> installed with apt-get does not work:
>
> ser:/usr/src# lua
> Lua 5.1.3  Copyright (C) 1994-2008 Lua.org, PUC-Rio
> >
> ser:/usr/src# which lua
> /usr/local/bin/lua
>
>
> The linux is a stable release so I think I will stick to the debian version
> and upgrade to Lenny later on.  For now, as long as I can get luasql
> running, it is sufficient to get me started.
>
> Any idea on how I can remove the previously installed lua 5.1.3?

IIRC there is no uninstall target in the lua Makefile, you thus have to
remove it by hand. type su to became root and then do something like
that (but be careful, you are root not):
 rm /usr/loca/bin/lua*
 rm /usr/local/lib/liblua*
 rm /usr/loca/include/lua*

Cheers
--
Enrico Tassi