LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-26-2023, 09:25 AM   #1
notpua
LQ Newbie
 
Registered: Aug 2023
Distribution: slackware
Posts: 13

Rep: Reputation: 3
Question Lua Bug: Weechat installation failed on slackware-current


So i am trying to build WeeChat (IRC client). I went to slackbuilds and grabbed the source and the slackbuilds,
and ran it using
Code:
 # ./weechat.SlackBuild
.

The README does say that to enable lua support install one of the lua packages which I did install lua, lua-filesystem packages.

And I'm sure it is fully installed and works, for instance I even installed luacheck using:
Code:
sudo luarocks install luacheck
.

And here's lua -v output.

Code:
$ lua -v

Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio
. The compilations gives error:
Code:
/usr/bin/ld: cannot find -llua$MAJVER: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [src/plugins/lua/CMakeFiles/lua.dir/build.make:114: src/plugins/lua/lua.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:1744: src/plugins/lua/CMakeFiles/lua.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
Here's the full output. pastebin.

Things I have tried.
  • Build lua from source
  • Install lua53 or lua52

Add system inforamtion:
Code:
$ uname -r

Linux iuseotherswifi.notpua 6.1.61 #1 SMP PREEMPT_DYNAMIC Thu Nov  2 15:01:07 CDT 2023 x86_64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz GenuineIntel GNU/Linux

Last edited by notpua; 12-26-2023 at 09:29 AM. Reason: add system information
 
Old 12-26-2023, 10:17 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,109

Rep: Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179
lua 5.4 is already shipped with Slackware current and weechat will build fine against it, you don't need to replace it with lua 5.1.5
 
Old 12-26-2023, 10:27 AM   #3
notpua
LQ Newbie
 
Registered: Aug 2023
Distribution: slackware
Posts: 13

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by ponce View Post
lua 5.4 is already shipped with Slackware current and weechat will build fine against it, you don't need to replace it with lua 5.1.5

But the first time I built it still showed the same error, maybe lua package is not the problem.

Maybe I'm missing a symlink or something.
 
Old 12-26-2023, 11:16 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,109

Rep: Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179
IMHO you could try removing all the lua* packages installed and also the versions you installed from source, reinstall slackware current's lua then try again the build: if it doesn't work then post the new build log and the output of this command
Code:
grep -i lua /tmp/SBo/weechat-4.1.2/build/CMakeCache.txt

Last edited by ponce; 12-26-2023 at 11:17 AM.
 
Old 12-26-2023, 11:31 AM   #5
notpua
LQ Newbie
 
Registered: Aug 2023
Distribution: slackware
Posts: 13

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by ponce View Post
IMHO you could try removing all the lua* packages installed and also the versions you installed from source, reinstall slackware current's lua then try again the build: if it doesn't work then post the new build log and the output of this command
Code:
grep -i lua /tmp/SBo/weechat-4.1.2/build/CMakeCache.txt
Alright, I removed all the older packages and freshly built official lua from here.

And the install still didn't work.

Here's the output of

Code:
$ grep -i lua /tmp/SBo/weechat-4.1.2/build/CMakeCache.txt
pastebin
 
Old 12-26-2023, 12:10 PM   #6
notpua
LQ Newbie
 
Registered: Aug 2023
Distribution: slackware
Posts: 13

Original Poster
Rep: Reputation: 3
Update: I gave up, and built weechat from source by specifying -DOPTION=ENABLE_LUA=OFF, the program seems to work fine, but I won't be able to use lua scripts and plugins sadly.
 
Old 12-26-2023, 12:19 PM   #7
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,388

Rep: Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108
Here, only ruby <= 3.2 seems to be supported
Code:
-- Checking for one of the modules 'ruby-3.2;ruby-3.1;ruby-3.0;ruby-2.7;ruby-2.6;ruby-2.5;ruby-2.4;ruby-2.3;ruby-2.2;ruby-2.1;ruby-2.0;ruby-1.9;ruby'
CMake Error at src/plugins/CMakeLists.txt:140 (message):
  Ruby not found
 
Old 12-26-2023, 12:34 PM   #8
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,109

Rep: Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179
Quote:
Originally Posted by notpua View Post
you have some serious broken lua installation as the scanned pkgconfig files (from the weechat build system) expose some nonexistent system paths, like /usr/lib$LIBDIRSUFFIX, or library versions names, like -llua$MAJVER, that are maybe ok in a SlackBuild where those variables might be defined but aren't in a pkgconfig file where those are (apparently) not.
if you want to use weechat's lua plugins I suggest you to clean up the lua stuff you have built from source and the spurious pkgconfig files (lua*.pc) you most probably have in /usr/lib64/pkgconfig/, /usr/local/lib64/pkgconfig, /usr/local/lib/pkgconfig, /usr/share/pkgconfig or /usr/local/share/pkgconfig, then reinstall the official Slackware current lua package (you don't need to download stuff from pkgs.org, just use the official mirrors) with "slackpkg install lua" (use "reinstall" if you have it already installed).

also, like marav said, ruby 3.3 isn't "officially" supported yet, but luckily for you you seem to have an older Slackware current where ruby 3.3 isn't there yet...
Quote:
Originally Posted by marav View Post
Here, only ruby <= 3.2 seems to be supported
Code:
-- Checking for one of the modules 'ruby-3.2;ruby-3.1;ruby-3.0;ruby-2.7;ruby-2.6;ruby-2.5;ruby-2.4;ruby-2.3;ruby-2.2;ruby-2.1;ruby-2.0;ruby-1.9;ruby'
CMake Error at src/plugins/CMakeLists.txt:140 (message):
  Ruby not found
...and, BTW, one can also "cheat it" with something like this in the SlackBuild
Code:
sed -i "s|ruby-3.2|ruby-3.3 ruby-3.2|" cmake/FindRuby.cmake

Last edited by ponce; 12-26-2023 at 01:38 PM.
 
  


Reply

Tags
slackware -current



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mpv - How to automatically slow down 𝑜𝑛𝑙𝑦 25fps videos to 24fps? autospeed.lua is doing nothing despite other lua scripts working NM64 Linux - Software 11 04-27-2023 04:49 AM
[SOLVED] Anyone using -current and have trouble with weechat connecting to SSL servers? coralfang Slackware 17 08-23-2018 01:35 PM
Help! Problem installing WeeChat on Centos4 ia64. Squerl101 Linux - Software 3 11-21-2011 02:01 PM
Weechat 0.3.5 doesn't accept self-signed SSL-certificates thosch97 Linux - Software 1 10-18-2011 09:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration