https://wiki.archlinux.org/index.php/Fo … bumping.22
Closing.
]]>...You should see this line in the config_linux.py file...
Hi, I know this is a bit too late, but I have the same problem installing conky-lua, except I have no clue where to find the config_linux.py file. I would appreciate it if you could shed some light on this..
TIA,
Regards
Hello I have retried and it worked.
I checked the AUR, there are no comments since May. You might consider posting your updated PKGBUILD, and what you did to allow it to compile.
]]>/usr/bin/ld: cannot find -llua50
/usr/bin/ld: cannot find -llualib50
collect2: error: ld returned 1 exit status
scons: *** [bin/tolua++_bootstrap] Error 1
scons: building terminated because of errors.
Regards DoubleU
]]>Thanks again, your post is still coming in useful, glad you updated with the email details.
The package still isn't fixed for 64 bit after a release, I think I need to raise the issue with the author maybe...
]]>Thank you very much
As always, glad to be of help
]]>-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Run "yaourt -S conky-lua". Amongst other things this will try to install a dependancy which you need to mess about with, the package you need to edit is "toluapp".
When the "toluapp" package is downloaded by yaourt answer y to the edit question and provide something like gedit or kate as the editor to use
You'll now see the PKGBUILD file in the editor, this doesn't need editing just yet. But if you open file from the editor you'll see the directory thie PKGBUILD is in, and you want to edit the config_linux.py file you'll see there.
You should see this line in the config_linux.py file:
CCFLAGS = ['-O2', '-ansi', '-Wall']
Change it so it is like this:
CCFLAGS = ['-O2', '-ansi', '-Wall', '-fPIC']
Now, back to the PKGBUILD file, you'll see this line:
md5sums=('100aa6907b8108582080b37d79c0afd7' 'bab107cdd2d18d3453a2344341b77c45')
These checksums line up with tarball and config_linux.py files, and this will stop you're edit from working if not amended because the .py file isn't what it should be, we changed it. So run md5sum against the .py file and update the second checksum in the line appropriately.
Carry on with the package installation and conky should have lua support
]]>How the heck do I mark a topic as solved???
You can append [SOLVED] on the end of the title by editing the opening post. And please use the edit function instead of bumping your own posts. The first bump was fine because it was a day later. The last few could have been kept in the same post.
]]>I wont make that mistake again, just a different one...
]]>When running the following:
yaourt -Sy conky-lua
I get the following error:
/usr/bin/ld: /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../lib/libtolua++.a(tolua_is.o): relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../lib/libtolua++.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [libcairo.la] Error 1
make[1]: Leaving directory `/tmp/yaourt-tmp-mark/aur-conky-lua/conky-lua/src/conky-1.7.2/lua'
make: *** [all-recursive] Error 1
==> ERROR: Build Failed.
Aborting...
Error: Makepkg was unable to build conky-lua package.
I have read through what search results I can find on the topic (both here and via google) and have attempted to remedy the situation by adding build options to the toluapp build to provide for the conky-lua build. I have tried this by adding CCFLAGS = '-fPIC' to the scons call in the PKGBUILD file, I have also tried editing the config_linux.py file, which sits along side the main build file, to include the -fPIC switch also, which doesn't work either. i.e. I have this in the config_linux.py now:
CCFLAGS = ['-O2', '-ansi', '-Wall', '-fPIC']
Which doesn't work, it results in:
==> Validating source files with md5sums...
tolua++-1.0.93.tar.bz2 ... Passed
config_linux.py ... FAILED
==> ERROR: One or more files did not pass the validity check!
Error: Makepkg was unable to build toluapp package.
Can someone help me through a build as I have never come across scons before and maybe I am providing directives to the toluapp build incorrectly? I am still thinking in "make" terms...
I NEED lua in conky
Thanks in advance
Regards,
Kaivalagi