Hi Luciano,

 There are two things going on.

 First you are using a standard Lua distribution, not the LuaBinaries
distribution. No problem, but I suggest you to take a look at the IUP
documentation in "IUP/Guide/Lua Binding" the topic "IupLua Initialization".

 Then if you are not going to use LuaBinaries, nor change the CPATH, then
there still a third option to use the "config_lua_module" script that came
along the binaries package. See the "IUP/Guide/Building in Linux" guide,
the topic "Installation (Lua Modules)" will also help you.

  BTW, don't forget to download the iup-3.16-Linux313_64_lib.tar.gz file
which contains the main libraries, the iup-3.16-Lua51_Linux313_64_lib.tar.gz
package contains only the Lua 5.1 binding.

Best,
Scuri



On Wed, Nov 18, 2015 at 8:58 PM, luciano de souza <[email protected]>
wrote:

> Antônio,
>
> The package you have indicated, when installed, produces no error.
> However, when I did "require('iuplua')" in a script, I got the
> following error:
>
> lua: z.lua:1: module 'iuplua' not found:
>         no field package.preload['iuplua']
>         no file './iuplua.lua'
>         no file '/usr/local/share/lua/5.1/iuplua.lua'
>         no file '/usr/local/share/lua/5.1/iuplua/init.lua'
>         no file '/usr/local/lib/lua/5.1/iuplua.lua'
>         no file '/usr/local/lib/lua/5.1/iuplua/init.lua'
>         no file '/usr/share/lua/5.1/iuplua.lua'
>         no file '/usr/share/lua/5.1/iuplua/init.lua'
>         no file './iuplua.so'
>         no file '/usr/local/lib/lua/5.1/iuplua.so'
>         no file '/usr/lib/x86_64-linux-gnu/lua/5.1/iuplua.so'
>         no file '/usr/lib/lua/5.1/iuplua.so'
>         no file '/usr/local/lib/lua/5.1/loadall.so'
> stack traceback:
>         [C]: in function 'require'
>         z.lua:1: in main chunk
>         [C]: ?
>
> After this message, I tried to search the installed files. I did:
>
> sudo updatedb
> sudo locate iuplua
>
> Among several files, I found /usr/lib64/libiuplua51.so.
>
> Well, it seems IUP is installed but it's not found by Lua. So I tried:
>
> package.cpath = package.cpath .. '/usr/lib64/?.so'
>
> require('iuplua')
>
> iup.Message('An IUP test')
>
> Lua follows not finding IUP libraries.
>
> 2015-11-17 19:48 GMT-02:00, luciano de souza <[email protected]>:
> > hello all,
> >
> > I want to install IUP and CD, however, when browsing Sourceforge
> > files, I don't know which of the uncountable packages I should
> > download.
> >
> > I tried:
> > iup-3.16-Lua51_Linux32_64_lib.tar.gz
> > iup-3.16-Lua51_Linux26g4_64_lib.tar.gz
> >
> > In both cases, I got errors.
> >
> > My configuration is:
> > Linux luciano 3.13.0-39-lowlatency #66+7.0trisquel2 SMP PREEMPT Wed
> > Oct 29 17:10:10 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
> > GCC 4.1.8.4
> > lua 5.1
> >
> > Regarding this, which packages of IUP and CD should I download?
> >
> > Best regards,
> >
> > --
> > Luciano de Souza
> >
>
>
> --
> Luciano de Souza
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Iup-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
------------------------------------------------------------------------------
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to