• Conky lua scripts can't find cairo lib


    Hi guys, how are you?

    I had being trying do work Conky Sea Mod and i couldn’t put works it.

    0_1454745586317_Selección_072.png
    Where are the rings?

    The problem is the cairo lib and i can’t know how solve it:

    [[email protected] ~]$ lua -V
    lua: unrecognized option '-V'
    usage: lua [options] [script [args]]
    Available options are:
      -e stat  execute string 'stat'
      -i       enter interactive mode after executing 'script'
      -l name  require library 'name'
      -v       show version information
      -E       ignore environment variables
      --       stop handling options
      -        stop handling options and execute stdin
    [[email protected] ~]$ lua -v
    Lua 5.3.2  Copyright (C) 1994-2015 Lua.org, PUC-Rio
    [[email protected] ~]$ conky -v
    conky 1.10.1_pre compiled Sun Dec  6 23:38:38 UTC 2015 for Linux 4.2.5-1-ARCH x86_64
    
    Compiled in features:
    
    System config file: /etc/conky/conky.conf
    Package library path: /usr/lib/conky
    
    
     General:
      * math
      * hddtemp
      * portmon
      * IPv6
      * Curl
      * RSS
      * Weather (METAR)
      * Weather (XOAP)
      * wireless
      * support for IBM/Lenovo notebooks
      * builtin default configuration
      * old configuration syntax
      * Imlib2
      * apcupsd
      * iostats
      * ncurses
      * Internationalization support
     X11:
      * Xdamage extension
      * XDBE (double buffer extension)
      * Xft
      * ARGB visual
      * Own window
    
     Music detection:
      * MPD
      * MOC
    
     Default values:
      * Netdevice: eth0
      * Local configfile: $HOME/.conkyrc
      * Localedir: /usr/share/locale
      * Maximum netdevices: 64
      * Maximum text size: 16384
      * Size text buffer: 256
    [[email protected] ~]$ ls /etc/conky/
    ls: no se puede acceder a /etc/conky/: No existe el fichero o el directorio
    [[email protected] ~]$ ls /usr/lib/libcairo.so
    /usr/lib/libcairo.so
    [[email protected] ~]$ lua -V
    lua: unrecognized option '-V'
    usage: lua [options] [script [args]]
    Available options are:
      -e stat  execute string 'stat'
      -i       enter interactive mode after executing 'script'
      -l name  require library 'name'
      -v       show version information
      -E       ignore environment variables
      --       stop handling options
      -        stop handling options and execute stdin
    [[email protected] ~]$ lua -v
    Lua 5.3.2  Copyright (C) 1994-2015 Lua.org, PUC-Rio
    [[email protected] ~]$ lua
    Lua 5.3.2  Copyright (C) 1994-2015 Lua.org, PUC-Rio
    > ^C
    [[email protected] ~]$ conky-manager 
    [02:14:05] Desktop: gnome
    [02:14:05] Found theme pack [installed]: /usr/share/conky-manager/themepacks/default-themes-2.1.cmtp.7z
    [02:14:05] App config loaded: '/home/salahaddin/.config/conky-manager.json'
    [02:14:06] Searching for conkyrc files... 103 found
    conky: Syntax error (/home/salahaddin/.conky/Conky Seamod/conky_seamod:2: unexpected symbol near '#') while reading config file. 
    conky: Assuming it's in old syntax and attempting conversion.
    conky: llua_load: ./seamod_rings.lua:15: module 'cairo' not found:
    	no field package.preload['cairo']
    	no file '/usr/share/lua/5.3/cairo.lua'
    	no file '/usr/share/lua/5.3/cairo/init.lua'
    	no file '/usr/lib/lua/5.3/cairo.lua'
    	no file '/usr/lib/lua/5.3/cairo/init.lua'
    	no file './cairo.lua'
    	no file './cairo/init.lua'
    	no file '/usr/lib/conky/libcairo.so'
    	no file '/usr/lib/lua/5.3/cairo.so'
    	no file '/usr/lib/lua/5.3/loadall.so'
    	no file './cairo.so'
    conky: desktop window (1200015) is subwindow of root window (d6)
    conky: window type - desktop
    conky: drawing to created window (0x2600002)
    conky: drawing to double buffer
    conky: forked to background, pid is 1240
    
    conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
    conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
    conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
    conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
    conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
    conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
    conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
    conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
    conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
    conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
    conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
    conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
    conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
    conky: received SIGINT or SIGTERM to terminate. bye!
    <^C
    [[email protected] ~]$ ls /usr/lib/lua/5.3/
    ls: no se puede acceder a /usr/lib/lua/5.3/: No existe el fichero o el directorio
    [[email protected] ~]$ ls /usr/lib/lua/
    5.2
    [[email protected] ~]$ ls /usr/lib/lua/5.2
    bit.so  lpeg.so  lxp.so  mime  socket
    [[email protected] ~]$ ls /usr/share/lua/
    5.2
    [[email protected] ~]$ ls /usr/share/lua/5.2
    json  json.lua  ltn12.lua  lxp  mime.lua  re.lua  socket  socket.lua
    [[email protected] ~]$ which cairo
    which: no cairo in (/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)
    [[email protected] ~]$ ls /usr/lib/cairo
    cairo-fdr.so  cairo-fdr.so.0  cairo-fdr.so.0.0.0  cairo-sphinx.so  cairo-sphinx.so.0  cairo-sphinx.so.0.0.0  libcairo-trace.so  libcairo-trace.so.0  libcairo-trace.so.0.0.0
    [[email protected] ~]$ ls /usr/lib/conky
    ls: no se puede acceder a /usr/lib/conky: No existe el fichero o el directorio
    [[email protected] ~]$ ls /usr/lib/libcairo.so
    /usr/lib/libcairo.so
    

    I tried do all, reinstall conky, conky-git, lua, etc… copy libcairo in seamod folder, nothing works, i don’t know why. I searched in arch wiki, in github wiki, in forums and i can’t find a fix for this.

    Can anyone help me?

  • @alaguna said:


    I tried do all, reinstall conky, conky-git, lua, etc… copy libcairo in seamod folder, nothing works, i don’t know why. I searched in arch wiki, in github wiki, in forums and i can’t find a fix for this.

    Can anyone help me?

    Installing conky-lua from AUR could the simplest and fastest way to solve lua problems. I have 44 lua conkies (but not yours though) and use them without a problem.

    Attention. Do not install conky-lua directly. Otherwise, it will use the

    tolua++-1.0.93-2-x86_64.pkg.tar.xz
    

    and will fail with it.

    Find somewhere (for example, in ALA, formerly ARM) the previous build of the package, download and install it separately:

    tolua++-1.0.93-1-x86_64.pkg.tar.xz
    

    Install conky-lua only after that. It will succeed now. You’ll immediately receive the update for tolua++ package. You may install it now. It will not damage already installed conky-lua.

  • @just Ok, and i had copy libcairo.so in a new lib/conky/ folder and doesn’t work too. I’ll try it, thanks.

conky9 cairo2 lua1 Posts 3Views 4847
Log in to reply
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.